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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.