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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
SLI
Helper IV
Helper IV

default date on slicer

hello 

 

is it possible to have default date setting on today in slicer with the abiity to choise other date if we want 

 

thanks

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

There are a few options.

You can use a relative date slicer. Or use the relative filter in visual, page or report level filters after dragging the date. You can create today and non-today in your calendar and use it

1. Flag = if (Date[Date] = Today(), "Yes","No")

 

https://community.powerbi.com/t5/Desktop/Default-values-in-date-slicer/m-p/396962

https://community.powerbi.com/t5/Desktop/Setting-default-date-slicer-to-yesterday/m-p/523171

https://community.powerbi.com/t5/Desktop/Date-Slicer-Default-value/m-p/458736

https://community.powerbi.com/t5/Desktop/Set-TODAY-as-default-date-in-slicer-visual/m-p/488670

https://community.powerbi.com/t5/Desktop/Set-TODAY-as-default-date-in-slicer-visual-date-range/m-p/5...

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

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i create a simple sample to test:

91.PNG

Then create a calculated column:

DateSLicer = IF('Table'[Date]=TODAY(),"Current Day",FORMAT('Table'[Date],"Short Date"))

Choose this column as a date slicer, it shows:

90.PNG

You can also select other date to filter the column chart:

92.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

View solution in original post

3 REPLIES 3
v-gizhi-msft
Community Support
Community Support

Hi,

 

According to your description, i create a simple sample to test:

91.PNG

Then create a calculated column:

DateSLicer = IF('Table'[Date]=TODAY(),"Current Day",FORMAT('Table'[Date],"Short Date"))

Choose this column as a date slicer, it shows:

90.PNG

You can also select other date to filter the column chart:

92.PNG

Hope this helps.

 

Best Regards,

Giotto Zhi

Anonymous
Not applicable

How to make this summary in POWERBI

REGIONBRANCH

Normal

Nos

Normal

Amt in Cr

1-30

Nos

1-30

Amt in cr

31-60

No

31-60

Amt in cr

Total

No

Total

Amt in Cr

1+ No1+ Amt in Cr30+ No30+ Amt in Cr

1+

No%

1+ Amt in Cr%30+% Nos30+% Amt in Cr
ABCXYZ12.0024.0036.00612.00510.0036.0083.33%83.33%50%50%

Regards

amitchandak
Super User
Super User

There are a few options.

You can use a relative date slicer. Or use the relative filter in visual, page or report level filters after dragging the date. You can create today and non-today in your calendar and use it

1. Flag = if (Date[Date] = Today(), "Yes","No")

 

https://community.powerbi.com/t5/Desktop/Default-values-in-date-slicer/m-p/396962

https://community.powerbi.com/t5/Desktop/Setting-default-date-slicer-to-yesterday/m-p/523171

https://community.powerbi.com/t5/Desktop/Date-Slicer-Default-value/m-p/458736

https://community.powerbi.com/t5/Desktop/Set-TODAY-as-default-date-in-slicer-visual/m-p/488670

https://community.powerbi.com/t5/Desktop/Set-TODAY-as-default-date-in-slicer-visual-date-range/m-p/5...

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

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.

Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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