Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Previous day calculation in MDX

$
0
0

I am new with MDX query and came up with the following with a hardcoded date.

SELECT NON EMPTY { [Measures].[Rejected], [Measures].[Withdrawn], [Measures].[Expired], [Measures].[Approval Rate], [Measures].[Approved], [Measures].[Received], [Measures].[Processed Total] } ON COLUMNS, NON EMPTY { ([Application].[Channel Name].[Channel Name].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM ( SELECT ( { [Calendar].[Year Month Day].&[20131211] } ) ON COLUMNS FROM [AcquisitionApplication]) 
WHERE ( [Calendar].[Year Month Day].&[20131211] ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

Can somebody please help me with getting the previous day data based on the query I came up with? Any help will be greatly appreciated.

Thanks.


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>