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

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.

Reply
as1195
Helper I
Helper I

Need help with Grouping Different Measures under different custom column headers

Hi,

There is a requirement from business to group different measures under different custom columns in the Matrix .Please help me to achieve this.Currently all of the measures are individually dragged into value field having rows as geography and Brand.

expected matrix:
Rows:Geography & Brand
Column : Value Growth,Volume Growth,V Share,Price Growth
values: A1,A2,B1,B2,C1,D1,D2,D3,D4


as1195_0-1664521929487.png

 

Any help would be much appreciated 🙂
Thanks

1 ACCEPTED SOLUTION
ValtteriN
Super User
Super User

Hi,

It isn't possible to have a different measure for different columns in a matrix visual, but what you can do is to modify your data so that column1 + column2 + column3 data is in one category column then create a switch measure which will select different results/calculation logics based on "column"

e.g.

Here depending on the column my measure returns 1,2 or 3. You can replace these values with measures to achieve your goal.

Measure 20 =
var _s = MAX('Table (8)'[Column1]) return

SWITCH(TRUE(),
        _s="X",1,
        _s="Y",2,
        _s="Z",3) //replace 1,3 and 3 with your measures/values



ValtteriN_1-1664524469414.png



Note that the matrix is showing blanks if the selected column doesn't have the correct geography. 

ValtteriN_0-1664524416370.png

So to summarize: user powerquery or other methods to get your data into a suitable format (pivot your data) and then create a switch + true measure structure to create the calculation logic.



I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ValtteriN
Super User
Super User

Hi,

It isn't possible to have a different measure for different columns in a matrix visual, but what you can do is to modify your data so that column1 + column2 + column3 data is in one category column then create a switch measure which will select different results/calculation logics based on "column"

e.g.

Here depending on the column my measure returns 1,2 or 3. You can replace these values with measures to achieve your goal.

Measure 20 =
var _s = MAX('Table (8)'[Column1]) return

SWITCH(TRUE(),
        _s="X",1,
        _s="Y",2,
        _s="Z",3) //replace 1,3 and 3 with your measures/values



ValtteriN_1-1664524469414.png



Note that the matrix is showing blanks if the selected column doesn't have the correct geography. 

ValtteriN_0-1664524416370.png

So to summarize: user powerquery or other methods to get your data into a suitable format (pivot your data) and then create a switch + true measure structure to create the calculation logic.



I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.