Hi Milind,
As Darren mentioned, more information about the structure of your cube
would be needed to suggest precise MDX.
Assuming that each column of your table represents a dimension (in AS
2000), and that a person can only have one answer for a given
combination of Question and QuestionSet:
Quote:
|
With [Measures].[AnswerText] as
|
'NonEmptyCrossJoin([Answer].[Answer].Members,
{[Person].CurrentMember}, {[Question].CurrentMember},
1).Item(0).Item(0).Name'
Select {[Measures].[AnswerText]} on columns,
NonEmptyCrossJoin([Person].[Person].Members,
[Question].[Question].Members,
{[QuestionSet].[Assessment]}, 2) on rows
from QuestionCube
where (QuestionSet].[After3Months])
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
*** Sent via Developersdex http://www.developersdex.com ***