ssas - How to get the Percentage using MDX -
i want find percentage of claims in run time.
learn can achieved using calculated measure, not know how that. please guide me how find percentage of claims((line count/grandtotoal) *100).
try following:
with member [measures].[percentageofall] [tmp claim dim].[claimno].currentmember / ([tmp claim dim].[claimno].[all]) ,format_string = 'percent'; select {[measures].[tmp claim dim count], [measures].[percentageofall]} on 0, [tmp claim dim].[claimno].members on 1 [acoe pi];
if want above apply measure [tmp claim dim count]
use tuples measure in new measure:
with member [measures].[percentageofall_claimcnt] ([tmp claim dim].[claimno].currentmember, [measures].[tmp claim dim count]) / ([tmp claim dim].[claimno].[all], [measures].[tmp claim dim count]) ,format_string = 'percent'; select {[measures].[tmp claim dim count]} on 0, [tmp claim dim].[claimno].members on 1 [acoe pi];
Comments
Post a Comment