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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
gbarr12345
Post Partisan
Post Partisan

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

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

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

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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