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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
cascador84
Helper I
Helper I

how to set default date in slicer

Hello,

i would like to know if it possible to set a default start / from date to first day of current year (by example) to current date in a Power bi slicer, like:

 

cascador84_0-1669115956168.png

the minimum date should still depend of dataset, but the from date must be the first day of year

 

using relative dates is not compliant with user requirement (they want to be able to "play" with slider, but by default, the would like to have the first (from / start) date to the 1/1/xxx.

thank you in advance.

regards

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @cascador84 ,

Please try below steps:
1. below is my test table

Table:

vbinbinyumsft_0-1669277218542.png

2. create a new datetime table with below dax formula

Table 2 = CALENDAR(DATE(YEAR(TODAY()),1,1),LASTDATE('Table'[Date]))

vbinbinyumsft_1-1669277289438.png

3. add a slicer with Table 2[Date] column

vbinbinyumsft_2-1669277364264.png

Please refer the attached .pbix file.

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for quick feedback.
but this is not the requiremen.
We don't want to limit the date slicer to begining of january to current date, but just having the left part of slider to first of january, and then, be able to select date before (as it present on my first screenshot).

regards

Anonymous
Not applicable

Hi @cascador84 ,

To my knowledge, your requirement could not be realized currently.

If you want this in  Power BI, let the power bi community to know this things and give your votes at  Power BI site's feedback -Ideas (powerbi.com)

 

Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

cascador84
Helper I
Helper I

thank you for quick feedback.
But could we do this automatically ?

and using relative date will hide the slider.

 

regards

MAwwad
Super User
Super User

Go to Filter on this visual 

 

Then Set up the filter on this visual > Relative date> choose the date you want to start after 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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