Forum Discussion

kxj's avatar
kxj
Frequent Visitor
3 years ago
Solved

Between Date Slicer with Relative Date Visual Filter not affecting table

Hi. I have a between slicer that should be defaulted to show YTD records. I've set up the Slicer to use the "Between" display and have a relative date visual filter on the slicer to show everything in the last year. The slicer displays YTD dates, however the table continues to display records for all time. Is there a known issue that visual filters on between slicers do not work? I don't have this problem if slicer is in a drop-down format:

 

Additionally, if I manually change the start date to 1/5/2022, the table will update. However, I would like this date field to update every year with the new YTD dates so I don't want to hardcode any values. 

 

Thank you so much

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi kxj ,

     

    In myside, I can reproduce your issue. When I set a relative date filter on my between slicer, my table visual will still show all values.

    As far as I know, this should be caused that there is no selection in slicer so Power BI will not set the new start date and end date to your table visual. Here I suggest you to use the two sliders in the between slicer. This will activate the between slicer. 

    Or you can use the relative date filter on your table visual as well.

     

    Best Regards,
    Rico Zhou

     

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

     

3 Replies

  • kxj , As of now Range slicer do not default well based on filter from other slcier.

     

    We usually create a column like

    If([Date]<= Today() && [Date]>= (eomonth(Today(), -1* month(Today())) +1), "YTD" , "Other")

     

    and save it on YTD

     

    You can log an idea : https://ideas.powerbi.com/ideas/

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi kxj ,

     

    In myside, I can reproduce your issue. When I set a relative date filter on my between slicer, my table visual will still show all values.

    As far as I know, this should be caused that there is no selection in slicer so Power BI will not set the new start date and end date to your table visual. Here I suggest you to use the two sliders in the between slicer. This will activate the between slicer. 

    Or you can use the relative date filter on your table visual as well.

     

    Best Regards,
    Rico Zhou

     

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

     

    • kxj's avatar
      kxj
      Frequent Visitor

      Unfortunate that it does not work unless you manually enter a value. I will just add buttons/Bookmarks that allow users to swtich between YTD (relatative date format) and All-time (Date range format).

       

      Thanks for your help in confirming my suspicions.