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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
yishenhui
Helper I
Helper I

how to set the default value of a slicer with current date?

Hi, When the report was uploaded to the report server, the selection of the slicers is the date time when the report last uploaded or updated to the server even though the data is updating background. Is it possible to have the default selection of the date slicers with current date or the latest date of the field link to the slicer?
1 ACCEPTED SOLUTION
MarceloVieira
Helper II
Helper II

If im understanding correctly you want to always have the last date selected in a date or month slicer. You can leverage the DATE table, using a calculated column.

It works fine, with the limitation that being a text column, you cant have the "between dates" slicer configuration.

 

MarceloVieira_2-1688655869646.png

 

 

MarceloVieira_0-1688655597245.png

MarceloVieira_1-1688655802756.png

 

 

View solution in original post

8 REPLIES 8
MarceloVieira
Helper II
Helper II

If im understanding correctly you want to always have the last date selected in a date or month slicer. You can leverage the DATE table, using a calculated column.

It works fine, with the limitation that being a text column, you cant have the "between dates" slicer configuration.

 

MarceloVieira_2-1688655869646.png

 

 

MarceloVieira_0-1688655597245.png

MarceloVieira_1-1688655802756.png

 

 

Hi Marcelo,

 

I will accept your post as solution. The result after passed one day did work. Thanks!

I am also implementing the date hierarchy in slicer as it's also important. I hope it will wotk as well. 

image.png

josef78
Memorable Member
Memorable Member

Currently it is not possible 😞 

 

You can use relative date slicer with anchor date. But this feature is still unfinished and very limited. It's big fail of Power BI development prioritization.

 

You can set relative date slicer (e.g. for last N days) and set Anchor Date in slicer settings (e.g. for your last refresh date or any business required date). But this feature is unfinished, because you can setup anchor date only manually to fixed date, you can NOT setup any calculated value (e.g. based on last refresh date).

 

There is more unfinished things, e.g. you can setup "this" and "last N" period, but can NOT setup "this or last N" period (is not possible filter to whole this month + last N whole months.

 

 

 

KBO
Memorable Member
Memorable Member

Hi,

Try this https://www.linkedin.com/posts/k-borchert_powerbi-learningbydoing-sharingiscaring-activity-702608919... 

Best,

Kathrin 

 

 

 

 

If this post has helped you, please give it a thumbs up!
Did I answer your question? Mark my post as a solution!

Hi KBO,

 

This isnot I want. It's when designing a report, you get the last date if it wasn't. What I need is after the report uploaded to the report server, when the data get refreshed, the default selection of the date slicer will be the last date of the new data instead of the end users manually changing it in the browser.

KBO
Memorable Member
Memorable Member

Ok more like this: https://blogs.perficient.com/2022/08/24/how-to-show-last-refresh-date-in-power-bi/ ?

Best,

Kathrin

 

If this post has helped you, please give it a thumbs up!
Did I answer your question? Mark my post as a solution!

 

Hi Kathrin,

 

That doesn't work either. Once it uploaded to the report server (same as power BI service), it only remember the "refreshed" date/time before it's "uploaded". I tested with text box, card. none worked. For sure slicer won't work either.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.