Forum Discussion
Slicers not syncing
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