Forum Discussion

kart-6118's avatar
kart-6118
Frequent Visitor
6 months ago
Solved

Default date for Date between slicer

Hi, I am using a Date Range slicer in Power BI configured in "Between" mode to allow users to dynamically select a start and end date. My requirement is for the slicer to default automatically to a ...
  • Thejeswar's avatar
    6 months ago

    Hi kart-6118 ,

    This Requirement that you are having may not be directly possible in a straight forward fashion.

     

    You can have a separate date table that has the start date as the first day of current month and the end date as max date available using DAX as a calculated table. This Column can be used in your slicer to drive the data.

     

    But the other requirement of going before the current date if needed, may not be suitable to achieve using this method.

     

    Alternatively, you can create a custom column that flags 1 for any date from month start to max date and otherwise it should have 0. Using this you can control the date slicer with this new flag column slicer.

     

    Alternatively, you can also try the solution posted by cengizhanarslan for achieving this requirement using Bookmarks

     

    Regards,