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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Combine multiple measures in a single matrix

 

I have a product table:

__Marc___1-1635944627459.png

 

On this table I have 4 measures:

  1. Lowest Sales Price = MIN([Sales price])
  2. Highest Sales Price = MAX([Sales price])
  3. Lowest Cost Price = MIN([Cost price])
  4. Highest Cost Price = MAX([Cost price])

I want to see the results in one single matrix:

__Marc___2-1635944701520.png

 

 I'm struggling with finding a way to accomplish this. I guess it can be done with DAX table functions?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous Perhaps take a look at "Show measures on rows" functionality or you may need to go down the path of a customer matrix hierarchy. I'll have to see if I can find some time to play with it. https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

Here is one way:

1) Create a new unrelated table with the following using "Enter Data" in the ribbon. I've called the table "RowTable"

Table.JPG

 

2) Create the following measures:

 

Lowest =
IF ( SELECTEDVALUE ( RowTable[Row] ) = "Sales", [Min Sales], [Min Cost] )
Highest =
IF ( SELECTEDVALUE ( RowTable[Row] ) = "Sales", [Max Sales], [Max Cost] )

 

 

3) Create the matrix using the Row table as rows and the Category as columns. Add both the new measures to the values bucket and you will get:

matrix.JPG

 I've attached the sample PBIX file

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

The solution works beautifully. There's only one minor thing. If possible I would like to sort the measures on the, not in matrix included, Index field. I guess this isn't possible, but if you know a way let me know :).

Sorry, I'm not sure what you mean. Can you post a depiction?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Great! Thank you!

Greg_Deckler
Community Champion
Community Champion

@Anonymous Perhaps take a look at "Show measures on rows" functionality or you may need to go down the path of a customer matrix hierarchy. I'll have to see if I can find some time to play with it. https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.