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).

enter image description here

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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -