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
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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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