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
umutkaya79
Helper I
Helper I

1 Slicer for 2 line charts on the same page

Hello,

I have a question if anyone please suggest a solution.

 

I have 2 line charts and one dataset has data coming from 2 different tables. (I did join those 2 tables in SQL before importing into PowerBI).  I am trying to use only 1 slicer which would filter both line charts. I cretaed 2 slicers and sync them. It works perfect but I am trying to display only one of the slicers on the page. If I get rid of one of the slicers remaining one won't filter the 2 line charts. It will only filter one of them since the dataset is from 2 different tables. 

 

Thank you 

 

umutkaya79_0-1678219659907.png

 

3 REPLIES 3
jdbuchanan71
Super User
Super User

You would either have to 

A. Put a table with the selection options in the model that links to both tables and use that.

B. Look at TREATAS to write the measure for the second visual using the selection from the first table.
https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

 

jdbuchanan71
Super User
Super User

Can you set the 2nd slicer to hidden since the synch is working?

jdbuchanan71_0-1678220444480.png

 

I did that too actually but I am not allowed to use that option. Thank you though. 

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.