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
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

 

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

 

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.