Forum Discussion
rajasekar_o
2 years agoHelper V
hierarchy level contribution
hi team, How to calculate hierarchy level contribution expected output office group sales is 33774 - 63.97% ink -25.79% note- 31.2...
- Anonymous2 years ago
Hi rajasekar_o ,
I create a table as you mentioned.
Then I use it in the Matrix visual.
I create a measure and here is the DAX code.
Measure = IF ( HASONEVALUE ( 'Table'[AMOUNT] ), MAX ( 'Table'[Column] ), SUM ( 'Table'[AMOUNT] ) / CALCULATE ( SUM ( 'Table'[AMOUNT] ), ALL ( 'Table' ) ) )Finally I get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Hi rajasekar_o ,
I create a table as you mentioned.
Then I use it in the Matrix visual.
I create a measure and here is the DAX code.
Measure =
IF (
HASONEVALUE ( 'Table'[AMOUNT] ),
MAX ( 'Table'[Column] ),
SUM ( 'Table'[AMOUNT] ) / CALCULATE ( SUM ( 'Table'[AMOUNT] ), ALL ( 'Table' ) )
)
Finally I get what you want.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.