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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CloudMonkey
Post Prodigy
Post Prodigy

Changing table column name using variable

Hello,

 

I have a column which I've renamed "Year to Date" in a table visualisation. If I set a variable somewhere to May is there a way to program the column heading to be "May YTD" (i.e. put the month name in automatically)

 

Thanks for your help,

 

CM

1 REPLY 1
Ruksuro
Helper III
Helper III

I don't beleive this is possible to make dynamic for the end-user as it is defined at load stage.

 

I would recommend adding a new measure which returns a string which you can then use as a title, either in the visual itself or on a card above.

 

I don't know your specifics but something like:

 

Title = if(hasonevalue([Month]),min([Month])&" YTD","YTD")

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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