Hi,
I am having a query like this
SELECT NON EMPTY { [Measures].[Check Status],
[Measures].[Payment Amount], [Measures].[Check Type] }
ON COLUMNS, NON EMPTY
{ ([Activity].[Activity Identity].[Activity Identity].ALLMEMBERS *
[Activity].[Activity Description].[Activity Description].ALLMEMBERS
* [Faculty].[Faculty Name].[Faculty Name].ALLMEMBERS ) }
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM [cubActivity]
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE,
FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
Now i want to add a filter condition for this.
Where [Measures].[Payment Amount] > 4500 and [Measures].[Check Type] = 1
how to add and where to add this line the above MDX query
Can you please help me
Thanks
Dinesh
Something like the following might work
SELECT NON EMPTY { [Measures].[Check Status],
[Measures].[Payment Amount], [Measures].[Check Type] }
ON COLUMNS, NON EMPTY
FILTER({ ([Activity].[Activity Identity].[Activity Identity].ALLMEMBERS *
[Activity].[Activity Description].[Activity Description].ALLMEMBERS
* [Faculty].[Faculty Name].[Faculty Name].ALLMEMBERS ) }
, [Measures].[Payment Amount] > 4500 and [Measures].[Check Type] = 1)
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM [cubActivity]
CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE,
FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
No comments:
Post a Comment