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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Young_G_Han
Helper III
Helper III

Matrix with changeable year column headers

  Dear Super Users

 

I am trying to make a matrix table with 3 years sales values.

Currently, I use table visuals with three headers, Current Year, Last Year, 2Yrs Ago.

However, users sent a request to me to change the header to real years, like 2021, 2020, and 2019.

There is a slicer to change years, so I cannot input a text.

I have reviewed some videos that were using unpivot table function, but I don't want to use it because the data is too big.

Is there a simpler way I can have dynamic column headers in Matrix visual?

 

2019  |  2020  |  2021  | 21-20 Growth | %Grw 21-20 | % A Group | % B Group |

 

Those are the column headers that I want. Anybody can help me?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Young_G_Han , Please check my video where I have shared how can do this using an independent data table, but you have default slicer on this year.

 

Also, this growth % need to be with measure(repeat together), else you need a Hybrid table

 

Rolling display with selected value

https://www.youtube.com/watch?v=44fGGmg9fHI

 

Default to this year: https://www.youtube.com/watch?v=hfn05preQYA

 

 

Hybrid table

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

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

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi, @Young_G_Han 

Please correct me if I misunderstood your question.

I am not sure if there is a way to dynamically change the column header name, however, I think you can try to use the calculation group by using Tabular Editor in Power BI.

The below picture is what I have created by using just a very simple sample data, and readers can select whatever measure they want to see.

 

the link to the sample pbix file is down below, and please try to have a look.

 

Picture1.png

 

 

https://www.dropbox.com/s/l1t7cgqgscuozdf/sample%20april.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

 

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

It is a little bit different from my needs. What I need is... When I select a month or a year, the table shows all relevant data. Let's say, I select the year 2021, the table shows the sales amount of 2019, 2020 and 2021. And also showing the % growth of the current year, the % mix of product group A and B. This is what I want.

Anyways, thank you for your help.

Young_G_Han
Helper III
Helper III

Thank you. I have reviewed the posting already which is the same link you give me. I partly understand and try to improve for my own needs. I will study more about it.

Yes, The hybrid table function is very needed.

Have a good day!

amitchandak
Super User
Super User

@Young_G_Han , Please check my video where I have shared how can do this using an independent data table, but you have default slicer on this year.

 

Also, this growth % need to be with measure(repeat together), else you need a Hybrid table

 

Rolling display with selected value

https://www.youtube.com/watch?v=44fGGmg9fHI

 

Default to this year: https://www.youtube.com/watch?v=hfn05preQYA

 

 

Hybrid table

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

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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