Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Slycls
Frequent Visitor

Column grouping several measures in a matrix

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 :

Slycls_0-1647341296475.png

 

Thanks a lot for your help.

 

1 ACCEPTED SOLUTION
Nahid_3152
Helper I
Helper I

Hi @Slycls 

U can create 2 disconnected table 

Table-1 
IDColumn
1QTY
2CA A-1

 

IDColumn
1QT A-1
2QT CFA-1
3CQT CF
4CAA A-1
5CA CFA-1
6CA 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.

 

 

 

View solution in original post

1 REPLY 1
Nahid_3152
Helper I
Helper I

Hi @Slycls 

U can create 2 disconnected table 

Table-1 
IDColumn
1QTY
2CA A-1

 

IDColumn
1QT A-1
2QT CFA-1
3CQT CF
4CAA A-1
5CA CFA-1
6CA 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.

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors