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

Be 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

Reply
afkhalifeh
Frequent Visitor

Changing Visual Title Dynamically-Power BI Desktop

Hi,

I have around 35 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”. and so on.

 

Please note that the titles are saved in a table. The table contains the following columns: LanguageID, VisualID, Title.

 

I am looking for a solution (one measure) for all of the 35 visuals?

 

Thank you,

Abdul

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @afkhalifeh 

You can refer to the following solution.

I create the following sample tables.

Slicer table.

vxinruzhumsft_0-1716520092154.png

Title Table

vxinruzhumsft_1-1716520124958.png

Data table

vxinruzhumsft_2-1716520138565.png

Create a relationship between slicer table and language table.

vxinruzhumsft_3-1716520177150.png

Then when create each visual, put the visual id to the visual filter. 

e.g I create two visuals column visual and pie chart visual, in column visual, i filter the column visual equal to 1, and the pie chart equal to 2.

vxinruzhumsft_4-1716520346091.png

 

vxinruzhumsft_5-1716520359464.png

 

Then set each title to the following. select the title column.

vxinruzhumsft_6-1716520410642.png

 

 Output

vxinruzhumsft_7-1716520453812.png

 

vxinruzhumsft_8-1716520464056.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

2 REPLIES 2
afkhalifeh
Frequent Visitor

Hi, Thanks a lot. It's working 🙂

v-xinruzhu-msft
Community Support
Community Support

Hi @afkhalifeh 

You can refer to the following solution.

I create the following sample tables.

Slicer table.

vxinruzhumsft_0-1716520092154.png

Title Table

vxinruzhumsft_1-1716520124958.png

Data table

vxinruzhumsft_2-1716520138565.png

Create a relationship between slicer table and language table.

vxinruzhumsft_3-1716520177150.png

Then when create each visual, put the visual id to the visual filter. 

e.g I create two visuals column visual and pie chart visual, in column visual, i filter the column visual equal to 1, and the pie chart equal to 2.

vxinruzhumsft_4-1716520346091.png

 

vxinruzhumsft_5-1716520359464.png

 

Then set each title to the following. select the title column.

vxinruzhumsft_6-1716520410642.png

 

 Output

vxinruzhumsft_7-1716520453812.png

 

vxinruzhumsft_8-1716520464056.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.