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

Column wise total in MDX

$
0
0

HI,

I want to find percentage as below specified sample. can anyone tell me how to get this output?

12 percentage
00.00%
3964415.78%
13767454.80%
7090728.23%
29851.19%
251210100.00%

to calculate % each column / entire column total ie.=39644/251210

with
MEMBER MEASURES.CONSTANTVALUE AS ([Period Incur Rank].[Period Incur Rank].&[12],measures.ptct)/measures.ptct

select {measures.ptct,MEASURES.CONSTANTVALUE} on columns,
{[Region].[Regioname].[Regioname].ALLMEMBERS} on rows
FROM ( SELECT ( { [Category].[Category - Category].&[All] } ) ON COLUMNS
FROM ( SELECT ( { [Period Rptd Rank].[Period Incur Rank].&[12] } ) ON COLUMNS FROM [ADW]))
WHERE ( [Period Rptd Rank].[Period Incur Rank].&[12], [Category].[Category - Category].&[All] )


Viewing all articles
Browse latest Browse all 14337

Trending Articles



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