cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jiaxuanphang
Regular Visitor

Slicers not syncing

Hi everyone, I'm facing a problem with the syncing of slicers. When I select "MTD" on the slicer, the first two slicers doesn't seem to be in synced with it. For the first slicer, it should only highlight the dates from 1/12 to 3/12 (3/12 is the latest data) and the date range should show that as well. I've already put the filter on all pages. What can I do to resolve this issue? 

 

jiaxuanphang_0-1638939986442.png

jiaxuanphang_1-1638940159339.png

 

 

4 REPLIES 4
v-xiaoyan-msft
Community Support
Community Support

Hi @jiaxuanphang ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@jiaxuanphang , Auto selection will not happen in this case , Range might not even reset the range.

If MTD is coming from the same table as Year, Month etc then it will work as filter.

 

Otherwise create a measure based on MTD, QTD which can return blank on not selected period and use that visual level filter on the first two slicers. Should work first one.

Hello! The MTD is coming from a different table as Year, Month so I can't do option 1.

 

Could you clarify the second option? All of the slicers are from different tables. Are you saying that I should consolidate them into a table so that it will be synced?

@jiaxuanphang , Assume you selected MTD, Then create a measure based on the selected date or today

 

MTD=
var _min = eomonth(today(),-1)+1 //eomonth(Maxx(allselected('Date'), 'Date'[Date]) ,-1)+1
var _max = today()  //Maxx(allselected('Date'), 'Date'[Date])
return

Switch( True() ,

Selectedvalues(period[period]) , 
CALCULATE(count('Date'[Date]), FILTER(ALL('Date'),'Table'[Date] >= _min && 'Table'[Date] <=_max ) ),

//Add other option code

blank()

)

 

Date is the table from where the first two slicers are coming

when you use this slicer in the slicer (list box), it will filter that. This do work with range slicers 

 

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors