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
gbarr12345
Post Prodigy
Post Prodigy

Looking to get filter to only affect one line chart

Hi there,

 

I have a report where I need 2 line charts side by side.

 

I have a filter on the first line chart which works ok. However I'm creating the second line chart and when I put a filter on that too it affects both graphs. 

 

Is there a way to make a filter only affect one graph and not make it change the data on the other graph?

 

gbarr12345_0-1722903582747.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@gbarr12345 , if there are two graphs, then you can use interactions.

How Interactions Work- Split Page using interactions to compare - https://youtu.be/GIfRKzhMaR4

 

If only one graph has two lines.

then in one of the graphs you use a measure that ignores the file

calculate([Your measure], removefilters(Table[Category]))

 

or have slicer on a disconnected/independent table and let only one measure use it

 

filtered measure

calculate([Measure], filter(Table, Table[Category] in category[Category]) )

 

Need of an Independent/disconnected Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

Need of an Independent/disconnected Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Power BI How to use/compare two Date/Period slicers: https://youtu.be/WSeZr_-MiTg

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@gbarr12345 , if there are two graphs, then you can use interactions.

How Interactions Work- Split Page using interactions to compare - https://youtu.be/GIfRKzhMaR4

 

If only one graph has two lines.

then in one of the graphs you use a measure that ignores the file

calculate([Your measure], removefilters(Table[Category]))

 

or have slicer on a disconnected/independent table and let only one measure use it

 

filtered measure

calculate([Measure], filter(Table, Table[Category] in category[Category]) )

 

Need of an Independent/disconnected Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE

Need of an Independent/disconnected Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Power BI How to use/compare two Date/Period slicers: https://youtu.be/WSeZr_-MiTg

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

That's great, thank you very much for your help Amit!

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.