Forum Discussion
Dynamic Column Header in Visualisation
Hi,
I have made a column in my table and added it to visualization. It's name is "Short Descr". I have changed it to "Deliverables". I want to change it automatically every month like "Deliverables | February", if the current month is March.
Hi IshaDahra,
It's not possible to give dynamic name to a column header, you can give table a dynamic title though using below DAX
Dynamic Header =
"Deliverables | " &
FORMAT(EOMONTH(TODAY(), -1), "MMMM")Not add this measure to Table title
if you still want to show dynamic title, create a card visual and place it above the column name and hide actual column name.
"Deliverables | " & FORMAT(EOMONTH(TODAY(), -1), "MMMM")
๐ I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
๐ก Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
๐ As a proud SuperUser and Microsoft Partner, weโre here to empower your data journey and the Power BI Community at large.
๐ Curious to explore more? [Discover here].
Letโs keep building smarter solutions together!You cannot make a native table/matrix column header fully dynamic with a DAX measure when the column is a regular field like 'Table'[Short Descr].
Option 1) Rename it manually in the visual
If this is just for presentation, you can rename the field in the visual, but it stays static.
Option 2) Use a dynamic title above the visual
This is usually the cleanest workaround.
Create a measure like:
Dynamic Header = "Deliverables | " & FORMAT ( EOMONTH ( TODAY(), -1 ), "MMMM" )Hi IshaDahra ,
as suggested by others, creating dynamic column headers is not posssible in PowerBI.
However if your ask is to show current month then there are multiple ways to do this.
You can create a measure below for title and show that in table visual.
Dynamic Title= "Deliverables | " & FORMAT(EDATE(TODAY(), -1), "MMMM")- Then do below steps in your Visual.
- Select your visual
- Go to Format pane โ General โ Title
- Click the fx button next to "Title text"
- Set Format style = Field value
- Select your Dynamic Title measure โ OK
Please give kudos or mark it as solution once confirmed
Thanks and Regards,
Praful
6 Replies
- grazitti_sapnaSuper User
Hi IshaDahra,
It's not possible to give dynamic name to a column header, you can give table a dynamic title though using below DAX
Dynamic Header =
"Deliverables | " &
FORMAT(EOMONTH(TODAY(), -1), "MMMM")Not add this measure to Table title
if you still want to show dynamic title, create a card visual and place it above the column name and hide actual column name.
"Deliverables | " & FORMAT(EOMONTH(TODAY(), -1), "MMMM")
๐ I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
๐ก Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
๐ As a proud SuperUser and Microsoft Partner, weโre here to empower your data journey and the Power BI Community at large.
๐ Curious to explore more? [Discover here].
Letโs keep building smarter solutions together!- grazitti_sapnaSuper User
- cengizhanarslanSuper User
You cannot make a native table/matrix column header fully dynamic with a DAX measure when the column is a regular field like 'Table'[Short Descr].
Option 1) Rename it manually in the visual
If this is just for presentation, you can rename the field in the visual, but it stays static.
Option 2) Use a dynamic title above the visual
This is usually the cleanest workaround.
Create a measure like:
Dynamic Header = "Deliverables | " & FORMAT ( EOMONTH ( TODAY(), -1 ), "MMMM" ) - Praful_PotphodeSuper User
Hi IshaDahra ,
as suggested by others, creating dynamic column headers is not posssible in PowerBI.
However if your ask is to show current month then there are multiple ways to do this.
You can create a measure below for title and show that in table visual.
Dynamic Title= "Deliverables | " & FORMAT(EDATE(TODAY(), -1), "MMMM")- Then do below steps in your Visual.
- Select your visual
- Go to Format pane โ General โ Title
- Click the fx button next to "Title text"
- Set Format style = Field value
- Select your Dynamic Title measure โ OK
Please give kudos or mark it as solution once confirmed
Thanks and Regards,
Praful
- V-yubandi-msftCommunity Support
Hi IshaDahra ,
If you get a chance, please review the response shared by cengizhanarslan , Praful_Potphode and let us know if it aligns with your expectations. Should you need any additional details or clarification, feel free to let us know.
Thank you for your valuable input.
Regards,
Yugandhar. - V-yubandi-msftCommunity Support
Hi IshaDahra ,
We havenโt received a response from your end yet. Please let us know whether the issue has been resolved or if youโre still facing any difficulties. Feel free to reach out if you need further assistance.