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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
SonaliDhotre
Advocate I
Advocate I

Dynamic matrix visual column headers

We want the column names in the matrix should be dynamic and the data shown should also be dynamic

Snapshot Date

<last year><this year><next year>R3MR6MR9MR12M
Jan 20211,755,6922,298,2842,298,2842,298,2842,528,0692,148,8432,148,843
Feb 20211,755,6921,685,6141,998,5301,998,5302,198,3221,868,6081,868,608
March 20211,755,6921,685,6141,969,5871,998,5302,198,3221,868,6081,868,608
April 20211,755,6921,685,6141,969,5871,804,4552,198,3221,868,6081,868,608

 

in the above example <last year>, <this year>, <next year> should show actual year and other column headers are static.
can you please help me with how I can achieve this?
The row data is in the following format

Snapshot DatePeriodKey figureValue
Jan 2021Jan 2021k1

200

Feb 2021Feb 2021k2300
March 2021March 2021k1500
April 2021April 2021k2550


Column headers are based on period year

2 ACCEPTED SOLUTIONS
AlexisOlson
Super User
Super User

I can't think of a nice clean way to do this.

 

For a less clean method, you may be interested in my answer here:
https://stackoverflow.com/questions/52632713/custom-aggregate-column-in-power-bi-matrix

View solution in original post

VahidDM
Super User
Super User

Hi @SonaliDhotre 

 

Not sure, but I think you can use calculated Group.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @SonaliDhotre 

 

Not sure, but I think you can use calculated Group.

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

AlexisOlson
Super User
Super User

I can't think of a nice clean way to do this.

 

For a less clean method, you may be interested in my answer here:
https://stackoverflow.com/questions/52632713/custom-aggregate-column-in-power-bi-matrix

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.