The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am trying to create a measure name with current year in it. For example the measure name for 2017 should be 2017 Sales and then it should automatically change to 2018 Sales in 2018. Is there any way to achieve this in Power BI?
Thanks,
Siddhant
Solved! Go to Solution.
Hi @siddhantk989,
Like @dkay84_PowerBI said, it might not be possible to dynamically change the measure name. How about keeping the measure name same, but changing the measure value dynamically based on the year.
For eg:
Title = Year(Now()) & " Sales"
If you are using this for a chart title then it would be "2017 Sales" in the year 2017 and "2018 Sales" in the year 2018.
Hi @siddhantk989,
Like @dkay84_PowerBI said, it might not be possible to dynamically change the measure name. How about keeping the measure name same, but changing the measure value dynamically based on the year.
For eg:
Title = Year(Now()) & " Sales"
If you are using this for a chart title then it would be "2017 Sales" in the year 2017 and "2018 Sales" in the year 2018.
Thanks @bjoshi and @dkay84_PowerBI for the help. I think the way bjoshi suggested is the beast way of doing this
You can create a text measure that will dynamically change based on slicer selection, and then put that measure as a card above your chart/visual. As far as I know, you cannot have a dynamic measure name, only the output.
See the following:
https://blog.crossjoin.co.uk/2016/04/25/dynamic-chart-titles-in-power-bi/
@dkay84_PowerBI the above link is broken; Do you still have the updated link to the blog you mentioned?
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
81 | |
72 | |
49 | |
41 |
User | Count |
---|---|
139 | |
113 | |
74 | |
64 | |
63 |