Forum Discussion

obriaincian's avatar
obriaincian
Resolver I
3 years ago
Solved

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
  • 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.

     

5 Replies