Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Display Value and Percentage in Matrix Power BI

Hi Everyone, I am trying to create a Matrix where i need to Display number like value (%). Could you please advise what is the best way to derive that. Really appreciate your help.

Here is my Model Matrix and desired Matrix.

 

Model Matrix.

Category SubCategory 1SubCategory 2SubCategory 3SubCategory 4SubCategory 5Total

cat A12 6 523
Cat B  16 1733
Cat C 15 1 16

 

Desired Matrix.

Category SubCategory 1SubCategory 2SubCategory 3SubCategory 4SubCategory 5Total

cat A12 (52%)0 (0%)6(26%)0 (0%)5 (21%)23
Cat B0 (0%)0 (0%)16 (48%)0 (0%)17 (6%)33
Cat C0 (0%)15(94%)0 (0%)1 (6%)0 (0%)16

 

Thank you so much in advance.

2 Replies

  • v-kkf-msft's avatar
    v-kkf-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    Maybe you can try the measure.

     

    Measure = SUM('Table'[Value]) / CALCULATE(SUM('Table'[Value]), ALLSELECTED('Table'[SubCategory]))

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.