Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
afkhalifeh
Frequent Visitor

Changing Visual Title Dynamically in Power BI Desktop

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.

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @afkhalifeh ,

 

you can create 4 measures, one for each visual. Then use each measure as dynamic title for a visual accordingly:

TomMartens_0-1716189769886.png

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



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

2 REPLIES 2
TomMartens
Super User
Super User

Hey @afkhalifeh ,

 

you can create 4 measures, one for each visual. Then use each measure as dynamic title for a visual accordingly:

TomMartens_0-1716189769886.png

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



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Many thanks, Tom for the reply.

Is it possible to create one measure for all of the 4 visuals?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.