Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear All,
I want to include current date - month + year in following format: ["some text" & current month-current year] as a Custom Measure Name in my power bi project =- i need to achieve dynamic column (measure) names depending on current date, for example:
sales value - January 2021, sales value - February-2021
i did this in power Query like below:
"sales value - " & Date.ToText(Date.From(DateTime.LocalNow()), "MMMM/yyyy")
but i need to achieve it in BI Desktop cause i need the name for custom measure
any ideas ?
Solved! Go to Solution.
@BarSi1986 as far as I know it is not possible to dynamically change the name/header of the measure
@BarSi1986 try this measure
Measure= "sales value - "&FORMAT(TODAY(),"mmmm/yyyy")
but i don't want to have it in my ROWS, i neend to have dynamically changing HEADER of this custom measure column - values need to be calculated as i will do it, but i need DATE to be a part o NAME/HEADER of this column
@BarSi1986 sorry are you desiring for a measure that dynamically changes the HEADER/NAME of the measure?
of course,
it should look like this:
but the headers can;t be hardcoded as a text - month name should dynamically change with formula
something like that i achieved in power query using:
"sales value - " & Date.ToText(Date.From(DateTime.LocalNow()), "MMMM")
need to achieve the same in DAX
@BarSi1986 as far as I know it is not possible to dynamically change the name/header of the measure
@BarSi1986 , Are you looking for a column like
Month Type = Switch( True(),
eomonth([Date],0) = eomonth(Today(),-1),"Last Month" ,
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
Month Type = Switch( True(),
eomonth([Date],0)= eomonth(Today(),0),"This Month" ,
Format([Date],"MMM-YYYY")
)
I don;t exactyl know actually, can u show me how can i use it as a Custom Measure Column name - i mean as a header of custom measure column ?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |