Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have 4 visuals; I need a way to change the title dynamically of each visual based on the selected value for a slicer and based on the visual name itself.
For example, the title of the visual one must be “No. of students” if the selected slicer is “en”, whereas the title of visual one must be “No. of students in French” if the selected slicer is “fr”.
For the 2nd visual, the title of visual must be “No. of customers” if the selected slicer is “en”, whereas the title of this visual must be “No. of customers in French Language” if the selected slicer is “fr”.
Please note that the I have saved titles in a table. The table contains the following columns: LanguageID, VisualID, Title.
Please help.
Solved! Go to Solution.
Hey @afkhalifeh ,
you can create 4 measures, one for each visual. Then use each measure as dynamic title for a visual accordingly:
A measure might look like this:
vizAid vis1 title =
var selectedLanguage = selectedvalue( 'languagetable'[LanguageId] , "<defaultlanguageId")
return
calculate(
firstnonblank( 'languagetable'[Title] , 0 )
, 'languagetable'[LanguageId] = selectedLanguage
, 'languagetable'[VisualId] = "the ID of the viusal"
)
Hopefully, this provides what you are looking for.
Regards,
Tom
Hey @afkhalifeh ,
you can create 4 measures, one for each visual. Then use each measure as dynamic title for a visual accordingly:
A measure might look like this:
vizAid vis1 title =
var selectedLanguage = selectedvalue( 'languagetable'[LanguageId] , "<defaultlanguageId")
return
calculate(
firstnonblank( 'languagetable'[Title] , 0 )
, 'languagetable'[LanguageId] = selectedLanguage
, 'languagetable'[VisualId] = "the ID of the viusal"
)
Hopefully, this provides what you are looking for.
Regards,
Tom
Many thanks, Tom for the reply.
Is it possible to create one measure for all of the 4 visuals?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
147 | |
85 | |
66 | |
52 | |
46 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |