March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have a strange request, but I believe it's very interesting.
I want to dynamically change the title of a visual depending on which measure that visual is using.
For Example this visual use this measure:
The visual title would be like this:
I played with some DAX functions but can't figure it out.
Thank you
Solved! Go to Solution.
@vojtechsima only solution would be if you have a predefined measure and then you select in the slicer what you want to show and that can be used to create the title as well. In this case, the calculation group will make it super easy but again it will only work if the list of measures is predefined and user can select using the slicer.
I will stay away from the SWITCH function although it will do the job, one core reason is that if the measure has a different format, you cannot do that using SWITCH and this can easily achieve with calculation groups. I have tons of videos on various calculation group use cases, if interested, check out these videos here https://youtube.com/playlist?list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @vojtechsima ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.
Best Regards
Lucien
@vojtechsima only solution would be if you have a predefined measure and then you select in the slicer what you want to show and that can be used to create the title as well. In this case, the calculation group will make it super easy but again it will only work if the list of measures is predefined and user can select using the slicer.
I will stay away from the SWITCH function although it will do the job, one core reason is that if the measure has a different format, you cannot do that using SWITCH and this can easily achieve with calculation groups. I have tons of videos on various calculation group use cases, if interested, check out these videos here https://youtube.com/playlist?list=PLiYSIjh4cEx2s8-jXBhv5aCu5_6F9zQ3I
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
If it's a set few measures you want to swap between, you could create a column with the titles and use a SWITCH to select each one.
Then set the title to First Measures, or you could make a title measure = SELECTEDVALUE(Measures[Measure])
This might also be something that Calculation groups can do better. You have functions such as SELECTEDMEASURE and
SELECTEDMEASURENAME which might be able to get the name of the current measure (they're not something I've ever used).
Hi, @AntonioM
Thank you, yeah exactly, that was might first thought but I wanted to go all the way into dynamic execution.
The calculation groups might do the trick, thanks for the suggestions, haven'T yet played with it but seems like good opportunity.
If nobody will post that solution I will post it here when I will get to it.
Thank you for suggestions, @AntonioM
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |