Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
My need seems simple, but I can't find a solution. I have multiple quantity measures and multiple turnover measures in the same matrix. I would like to add a column above that groups the measurements.
Here is an example :
Thanks a lot for your help.
Solved! Go to Solution.
Hi @Slycls
U can create 2 disconnected table
| Table-1 | |
| ID | Column |
| 1 | QTY |
| 2 | CA A-1 |
| ID | Column |
| 1 | QT A-1 |
| 2 | QT CFA-1 |
| 3 | CQT CF |
| 4 | CAA A-1 |
| 5 | CA CFA-1 |
| 6 | CA CFA |
2. Then do a two-measure max id for two tables.
3. Use the switch case in a measure.
as like
measure = switch( true(),
[table-1_max_ID]=1 && [table-2_max_ID]=1,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=2,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=3,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=4,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=5,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=1,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=2,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=3,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=4,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=5,[QTY]
)
Then plot 2 disconnected table columns in the matrix column section.
Hope it will help you.
Hi @Slycls
U can create 2 disconnected table
| Table-1 | |
| ID | Column |
| 1 | QTY |
| 2 | CA A-1 |
| ID | Column |
| 1 | QT A-1 |
| 2 | QT CFA-1 |
| 3 | CQT CF |
| 4 | CAA A-1 |
| 5 | CA CFA-1 |
| 6 | CA CFA |
2. Then do a two-measure max id for two tables.
3. Use the switch case in a measure.
as like
measure = switch( true(),
[table-1_max_ID]=1 && [table-2_max_ID]=1,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=2,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=3,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=4,[QTY],
[table-1_max_ID]=1 && [table-2_max_ID]=5,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=1,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=2,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=3,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=4,[QTY],
[table-1_max_ID]=2 && [table-2_max_ID]=5,[QTY]
)
Then plot 2 disconnected table columns in the matrix column section.
Hope it will help you.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 44 | |
| 40 | |
| 29 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 130 | |
| 102 | |
| 72 | |
| 55 |