Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kormosb
Helper III
Helper III

Dynamic date range slicer

Hi,

 

I am having problem with setting the date range slicer dynamic.

That's the slicer below:

image.png

 

My Power BI report is refreshed every day once, so I simple want to make the date slicer dynamic, that it changes every day to the next day, like: 2020.01.01 - 2020.02.22, then the day after 2020.01.01 - 2020.02.23.
 
I have tried to make a calculated column in my date table, like below:
Open/closed =
IF(
'Date table'[Date]<=TODAY()
;"Closed";
"Open"
)
 
I tried to use that calculated column to add to visualize level filter (show only "closed" dates), but it doesn't work.
 
Is there any workaround for this?
 
Thanks guys for the help.
 
Ben
2 ACCEPTED SOLUTIONS
v-yuta-msft
Community Support
Community Support

@kormosb ,

 

The relative date slicer may meet your requirement:

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Community Support Team _ Jimmy Tao

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

View solution in original post

7 REPLIES 7
Rosh89
Helper I
Helper I

Hi @kormosb 

 

Were you able to achieve this? If yes, can you tell me how you did it?

 

Best Regards

Rosh

Hi, unfortunately no.

Benjamin

Gangula
Advocate II
Advocate II

I found an article which talks about a workaround for this problem. I think this is by far the best way to address this particulat issue.

 

To summarize the solution, use a combination of a "Special Dates" table which is similar to relative date slicer, but with an additional value to choose "custom". Upon choosing "custom", a bookmark will appear which allows you to choose the "Date Range".

 

Below a demo GIF extracted from the article mentioned above.

Custom Range Date Slicer in Power BI with dynamic defaults.gif

 

 

v-yuta-msft
Community Support
Community Support

@kormosb ,

 

The relative date slicer may meet your requirement:

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range

 

Community Support Team _ Jimmy Tao

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

Hi,

I want to restrict my date slicer selected start to end date should be 30 days dynamically, can you help me on this issue.
example : i have selected 15st august 2022 end date should be 13 th August 2022.

amitchandak
Super User
Super User
VasTg
Memorable Member
Memorable Member

@kormosb 

 

Ben,

 

By default(Between option), the end date is updated dynamically based on the dates available in your Date dimension unless you choose a specific date.

 

If it helps, mark it as a solution

Kudos are nice too.

Connect on LinkedIn

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.