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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.