Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

how to write a mdx query for first date of every week by using the result for parameter propogation..

$
0
0

any body help me yaar

it needs very much for me yaar

WITH
MEMBER
[Measures].[ParameterCaption] AS
[Date].[Calendar Week].CURRENTMEMBER.MEMBER_CAPTION
MEMBER
[Measures].[ParameterValue] AS
[Date].[Calendar Week].CURRENTMEMBER.UNIQUENAME
MEMBER
[Measures].[ParameterLevel] AS
[Date].[Calendar Week].CURRENTMEMBER.LEVEL.ORDINAL
member [Measures].[newParameterLevel] AS
[Date].[Calendar Date].CURRENTMEMBER.MEMBER_CAPTION

SELECT
{
[Measures].[ParameterCaption],
[Measures].[ParameterValue],
[Measures].[ParameterLevel],
[Measures].[newParameterLevel]


}
ON COLUMNS  ,

 { Order([Date].[Calendar Quarter].CHILDREN, ([Date].[Calendar Quarter].currentmember.member_key), DESC)  * 

Order([Date].[Calendar Week].CHILDREN, ([Date].[Calendar Week].currentmember.uniquename), DESC)*
Order([Date].[Calendar Date].CHILDREN, ([Date].[Calendar Date].currentmember.uniquename), DESC)
}
 
 
ON ROWS 

from [APACDataMart]

first date of every week in the columns corresponding weeks yaar..

thanks

sarvam



Viewing all articles
Browse latest Browse all 2472

Trending Articles



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