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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
omarluna17
Frequent Visitor

Column Grouping in Matrix Visual

Hello all!

 

I was wondering if the following can be achieved in PowerBI:

 

I currently have a matrix that looks like this. 

omarluna17_0-1692199196697.png

omarluna17_1-1692199276112.png

As you can see, I had to create a different measure for every column. 

 

I want to achieve something like the following:

omarluna17_0-1692200197556.png

 

Prior Week Prior WeekMTD MTD MTD MTD MTD MTDYTD YTD YTD YTD YTD YTD
Rev# of Deals2023#2022#2021#2023#2022#2021#
  100,00010       100,00010       100,00010       100,00010       100,00010       100,00010       100,00010
  200,00020       200,00020       200,00020       200,00020       200,00020       200,00020       200,00020
  300,00030       300,00030       300,00030       300,00030       300,00030       300,00030       300,00030
  400,00040       400,00040       400,00040       400,00040       400,00040       400,00040       400,00040

 

The rows would be cities and the columns would be grouped by Prior Week, MTD, and YTD. The second row is the revenue and deal count for every year. 

 

Appreciate your help!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@omarluna17 , You have to try column header grouping in the calculation group or use the dynamic segment

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display: https://youtu.be/qMNv67P8Go0

 

column header grouping
https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905
https://community.powerbi.com/t5/Desktop/grouping-measure-results/td-p/456795

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@omarluna17 , You have to try column header grouping in the calculation group or use the dynamic segment

 

Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display: https://youtu.be/qMNv67P8Go0

 

column header grouping
https://www.daxpatterns.com/dynamic-segmentation/
https://community.powerbi.com/t5/Desktop/Matrix-Display-Values-above-Columns/td-p/256905
https://community.powerbi.com/t5/Desktop/grouping-measure-results/td-p/456795

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Very informative and helpful video. Thank you for your help!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.