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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
NadiaLR1234
Helper I
Helper I

Dynamic Column Change in a Graph

Hi

I have this simple visual where it dynamically changes the dates according to dates selected in a slicer, however how do I get the field headings to also change as per selection - thus I want Current and Previous  to show the dates like the cards ?

 

NadiaLR1234_0-1648038591486.png

 

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @NadiaLR1234 ,

 

You cannot dynamically change the name of legend, but you can dynamically change the visual title.

https://mitchellpearson.com/2020/12/29/dynamically-changing-title-names-in-power-bi/ 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

NadiaLR1234
Helper I
Helper I

Thanks but not what I require - I already have the months dax formulas sorted - I need the field names to change on selection - not sure if this can be a feature in the future 

amitchandak
Super User
Super User

@NadiaLR1234 , I doubt you can change legend.

 

But based on dates used on formula you can get month year etc

 

example

current period =   format(maxx(allselected('Date'), 'Date'[Date]), "MMM-YYYY")

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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