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
powerbisupcl
New Member

How to add today to a date slicer

Hello,

 

I would like to add today to a date slicer for the between slicer setting. I have a set day say 1/1/2023 and set the last date to be today instead of static date selection.

Is that possible to do in power BI? for example in the picture below instead of 2/28/2024, the selection would be today.

 

powerbisupcl_0-1674060028941.png

 

1 ACCEPTED SOLUTION
Seanan
Solution Supplier
Solution Supplier

Hi @powerbisupcl 


You can create a calculated column with the following code:

Date Range = 
    VAR _Start = [Date]
    VAR _End = TODAY()
    RETURN [Date] >= _Start && [Date] <= _End

Then add this column as a filter on the visual and set the filter to True

Super User Signature.PNG

View solution in original post

2 REPLIES 2
Nayan_surya
Frequent Visitor

Hi @powerbisupcl ,

 

Have you tried using any custom visual for Date slicing? because belive me they are life savers when it comes about functionality and features.

I am talking about custom visual named Date Picker by Powerviz. Not just Today, it provides a lot of presets which are really useful with little to no need to write dax that too with custom / in built themes.

 

Nayan_surya_0-1702626626441.png

 

I think you should check them out.

Here is a link if you want to check this visual - https://appsource.microsoft.com/en-us/product/powerbivisuals/truvizinc1674781244292.date-picker-by-p...  (I believe they offer a free version too)

 

Seanan
Solution Supplier
Solution Supplier

Hi @powerbisupcl 


You can create a calculated column with the following code:

Date Range = 
    VAR _Start = [Date]
    VAR _End = TODAY()
    RETURN [Date] >= _Start && [Date] <= _End

Then add this column as a filter on the visual and set the filter to True

Super User Signature.PNG

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.