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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
hainguyen28
New Member

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
v-stephen-msft
Community Support
Community Support

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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