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
Anonymous
Not applicable

How to make line chart title and measure change dynamically based on table values filter

I have a table and line chart. I need the line chart title to dynamically change based on the values clicked in the table e.g. #1 looking at the first row, (under the measure 'Inside_Hours') if I clicked on "9.25", I would like the line chart to display the 'Inside Hours' measure and the chart title to display "X Branch Inside Hours by Date"

The same will apply to other columns e.g. #2 if I clicked on "-921%", then the line chart should display the 'Inside Productivity' measure and the chart title should display "X Branch Inside Productivity by Date".

Hope that made sense. Appreciate any help thanks.

Here's sample pbix file >> https://drive.google.com/file/d/1rSy29PmC-GlqORl26PzBghtNsMxWKvCe/view?usp=sharing

 

Screenshot 2022-02-25 172128.png

1 ACCEPTED SOLUTION

I think might be possible if you make a single measure that switches between all the metrics and create a dimension table with all the metrics to use as filter context and title.

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , I doubt you can change measure based on clicked measure name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

That's interesting coz the same visuals work in Excel report but with custom VBA. I understand it's not a fair comparison but I presumed something similar could be archieved in PowerBi. 

 

@tamerj1 @AlexisOlson any advice/tips? 

I think might be possible if you make a single measure that switches between all the metrics and create a dimension table with all the metrics to use as filter context and title.

Anonymous
Not applicable

Thanks. I'll do further research on how to accomplish this.

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.