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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! 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

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

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors