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
Veblengood
Helper I
Helper I

Combining multiple sections in a matrix

I have a matrix with sales by category in rows and by years (from date table) in columns. At the same time I have a different matrix showing indexes comparing this year sales to last year sales and so on using the same categories.

 

What I want is to combine those matrices (as you would do in excel) into one, without repeating the indeces for each year. Is this possible? Another solution would be to make one matrix dependent on the other so that the same categories are always displayed in either matrix.

 

Category202120222023
A123
B405060

 

CategoryIndex YAIndex vs 2 YA
A50%300%
B  

 

 Year  Index 
Category202120222023Index YaIndex 2 Ya
A12350%300%
B405060  

 

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Veblengood 

According to your description, you want to combine two Matix visual to one . Right?
In Power BI Desktop , if you want to realize it , you need to create  a new table as the column headers , like this:

vyueyunzhmsft_0-1672971133665.png

Then we need use this table as the Matrix's column headers . And then we need to create a measure to judge the column name(We can use SWITCH() or IF() function) and calculate the value in the logic.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @Veblengood 

According to your description, you want to combine two Matix visual to one . Right?
In Power BI Desktop , if you want to realize it , you need to create  a new table as the column headers , like this:

vyueyunzhmsft_0-1672971133665.png

Then we need use this table as the Matrix's column headers . And then we need to create a measure to judge the column name(We can use SWITCH() or IF() function) and calculate the value in the logic.

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@Veblengood , Try if this hybrid visual approch can help

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

 

 

unpivot column is another approch

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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.

Top Kudoed Authors