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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.