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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hainguyen28
Regular Visitor

Dynamic title for a bar chart linked with a matrix

I have a matrix with sales of 3 different categories, and an accompany bar graph as follow:

hainguyen28_0-1737422597278.png

I want to create a dynamic title for the bar chart. For example, if I click on Office Supplies in the matrix, then the title of the bar chart would be Total Sales for Office Supplies. Same thing for Furniture and Technology. 

 

Can anyone please show me how to do that?

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @hainguyen28 
Since the essence of a dynamic title lies in indicating whether the visualization is filtered, this can only work if you set the interaction to "filter" rather than "highlight."

Ritaf1983_0-1737436612889.pngRitaf1983_1-1737436642716.png

 

So you should modify interactions for "filter" 

Ritaf1983_2-1737436736491.png

And then use measure like :

Ritaf1983_3-1737436789380.pngRitaf1983_4-1737436820476.png

Ritaf1983_5-1737436868620.png

The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @hainguyen28 ,

 

Pls has your problem been solved? If so, accept the reply as a solution. This will make it easier for the future people to find the answer quickly.
If not, please provide a more detailed description, preferably some virtual sample data, and the expected results.

Best Regards,
Stephen Tao

 

Ritaf1983
Super User
Super User

Hi @hainguyen28 
Since the essence of a dynamic title lies in indicating whether the visualization is filtered, this can only work if you set the interaction to "filter" rather than "highlight."

Ritaf1983_0-1737436612889.pngRitaf1983_1-1737436642716.png

 

So you should modify interactions for "filter" 

Ritaf1983_2-1737436736491.png

And then use measure like :

Ritaf1983_3-1737436789380.pngRitaf1983_4-1737436820476.png

Ritaf1983_5-1737436868620.png

The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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