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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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