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
Anonymous
Not applicable

Dynamic column header in matrix visual (based on date filter)

Hi, 

I have 6 measures like:

 

measure1 = calculate(sum(data[value]), filter(calendar, format(eomonth(today(), 1), "YYYYMM") = calendar[month]))

measure2 = calculate(sum(data[value]), filter(calendar, format(eomonth(today(), 2), "YYYYMM") = calendar[month]))

 

Is it possible to make dynamic column headers in matrix visual (measure1 is March this month, but April next month)? 

 

I understand I can create, for instance, dynamic cards above the matrix, but I'd like to avoid that.

I could also create a pivoted table for these 6 months (though not sure how to make column headers and values dynamic there either), but adding another table with such complexity seems too much. 

 

Please advise. Thanks. 

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

Hi,

 

You can try this column:

Column = Data[Date].[Month]

Then apply relative date filter to the matrix visual:

115.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

4 REPLIES 4
sathishramuk33
Frequent Visitor

hi , i have same this type of requirments now so can you got any solutions in this scenario(dynamic header change)

v-gizhi-msft
Community Support
Community Support

Hi,

 

You can try this column:

Column = Data[Date].[Month]

Then apply relative date filter to the matrix visual:

115.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

amitchandak
Super User
Super User

Refer: if these can help

https://www.youtube.com/watch?v=yEemVBiaTuk

https://community.powerbi.com/t5/Desktop/Dynamic-column-name-from-its-value/td-p/189442

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin

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
Anonymous
Not applicable

Hey, i have the same issue i didn't find any solution. I think dynamic columns titles is not available for now

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.