Forum Discussion

jiaxuanphang's avatar
jiaxuanphang
Regular Visitor
4 years ago

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? 

 

 

 

4 Replies

  • 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.

    • jiaxuanphang's avatar
      jiaxuanphang
      Regular Visitor

      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?

      • amitchandak's avatar
        amitchandak
        Super User

        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 

         

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.