Forum Discussion
Visual Level Totals in Table/Matrix
Hi Here is the requirement where its not feasible in power bi table/matrix visual but which is possible in Excel.
| Column 1 | Measure 1 | Column 2 | Measure 2 | Measure 1 / Measure 2 | Need this Output in Table/ Matrix |
| 1 | 3% | 2 | 5% | 54% | 54% |
| 4 | 11% | 6 | 15% | 72% | 72% |
| 5 | 14% | 9 | 23% | 60% | 60% |
| 6 | 17% | 7 | 18% | 93% | 93% |
| 8 | 22% | 3 | 8% | 289% | 289% |
| 9 | 25% | 4 | 10% | 244% | 244% |
| 3 | 8% | 8 | 21% | 41% | 41% |
| 36 | 100% | 39 | 100% | 100% | 853% |
Need this 853% as Output in Visual
| Column 1 | Measure 1 | Column 2 | Measure 2 | Measure 1 / Measure 2 | Need this Output |
| 1 | =A2/$A$9 | 2 | =C2/$C$9 | =B2/D2 | =C2/E2 |
| 4 | =A3/$A$9 | 6 | =C3/$C$9 | =B3/D3 | =C3/E3 |
| 5 | =A4/$A$9 | 9 | =C4/$C$9 | =B4/D4 | =C4/E4 |
| 6 | =A5/$A$9 | 7 | =C5/$C$9 | =B5/D5 | =C5/E5 |
| 8 | =A6/$A$9 | 3 | =C6/$C$9 | =B6/D6 | =C6/E6 |
| 9 | =A7/$A$9 | 4 | =C7/$C$9 | =B7/D7 | =C7/E7 |
| 3 | =A8/$A$9 | 8 | =C8/$C$9 | =B8/D8 | =C8/E8 |
| =SUM(A2:A8) | =SUM(B2:B8) | =SUM(C2:C8) | =SUM(D2:D8) | =B9/D9 | =SUM(E2:E8) |
- Anonymous3 years ago
Hi gma ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create measures.
Measure 1:
Measure 1 = VAR _1=SUMX(ALL('Table'),'Table'[Column 1]) RETURN ROUND(MAX('Table'[Column 1])/_1,2)Measure 1RE = VAR _2=SUMMARIZE('Table','Table'[Index],"AAA",[Measure 1]) RETURN IF(ISINSCOPE('Table'[Index]),[Measure 1],SUMX(_2,[AAA]))Measure 2:
Measure 2 = VAR _1=SUMX(ALL('Table'),'Table'[Column 2]) RETURN ROUND(MAX('Table'[Column 2])/_1,2)Measure 2RE = VAR _2=SUMMARIZE('Table','Table'[Index],"AAA",[Measure 2]) RETURN IF(ISINSCOPE('Table'[Index]),[Measure 2],SUMX(_2,[AAA]))and so on.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ PollyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- AnonymousNot applicable
Hi gma ,
I have created a simple sample, please refer to my pbix file to see if it helps you.
Create measures.
Measure 1:
Measure 1 = VAR _1=SUMX(ALL('Table'),'Table'[Column 1]) RETURN ROUND(MAX('Table'[Column 1])/_1,2)Measure 1RE = VAR _2=SUMMARIZE('Table','Table'[Index],"AAA",[Measure 1]) RETURN IF(ISINSCOPE('Table'[Index]),[Measure 1],SUMX(_2,[AAA]))Measure 2:
Measure 2 = VAR _1=SUMX(ALL('Table'),'Table'[Column 2]) RETURN ROUND(MAX('Table'[Column 2])/_1,2)Measure 2RE = VAR _2=SUMMARIZE('Table','Table'[Index],"AAA",[Measure 2]) RETURN IF(ISINSCOPE('Table'[Index]),[Measure 2],SUMX(_2,[AAA]))and so on.
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ PollyIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Bambang_SonoFrequent Visitor
I can't download the file
- gmaFrequent Visitor
Fantastic, it worked extactly matched with requirement.