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
obriaincian
Resolver I
Resolver I

Dynamic header in calculated table

Is there a way to make column headers in calculated tables dynamic?

 

Heres the code I have to create a calculated table

 

CalcTable = 

SUMMARIZECOLUMNS(Data[Company],
"No. Employees",CALCULATE(DISTINCTCOUNT(Data[Employee_Number])))

 

 

 
 
I'd like to change the column name to reflect the current date e.g. "No. Emplyees as of" & Today(), is this possible?
 
I have also tried to add a variable when creating the calculated table but from what I gather that only works when you use Union
1 ACCEPTED SOLUTION
MFelix
Super User
Super User

I know but this can be adjusted to a table visualization, if you use on the columns value that new column created the header will be dynamic.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

I know but this can be adjusted to a table visualization, if you use on the columns value that new column created the header will be dynamic.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



obriaincian
Resolver I
Resolver I

@MFelix Thank you for the suggestion but I'm looking to see if column headers can be dynamic rather than legends in a visual

MFelix
Super User
Super User

Hi @obriaincian ,

 

You cannot change the name of the columns on dinamically on calculated tables, this would break your visualizations because the name would be changing each day. What is the purpose of this setting? You want to have your visualization updated with the date automatically?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix , Yes I would like todays date(or last weeks date depending on the colum) to be reflected in the column header

Hi @obriaincian 

 

Check if this can help https://perytus.com/2021/02/04/improve-ux-show-year-in-legend-when-using-time-intelligence-measures/


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.