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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Alex_Hasan
Helper II
Helper II

Current Date

In a dataset, there is a date dimension table. 

1. Assume the current date is 15 Nov, 2016.

2. Make a date slicer so that so we can dynamically check another date.

 

This is how I made a slicer. But I cant understand what the current date is 15 Nov, 2016  is. All I know ablout current date is Today () function. for your better understanding, I am sharing the dataset.  also. https://drive.google.com/file/d/1FhyexInp3ghfep3BG0wnPUoFX_Ki1O9m/view?usp=sharing  

 

Capture.JPG

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Alex_Hasan ,

 

You can create a new date table via slicer = CALENDARAUTO(). Then put the date in the slicer. Which slicer type is Before.

vchenwuzmsft_1-1652765469052.png

Use a measure named current date via max('slicer'[date])  to get the date selected in the slicer.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Alex_Hasan ,

 

You can create a new date table via slicer = CALENDARAUTO(). Then put the date in the slicer. Which slicer type is Before.

vchenwuzmsft_1-1652765469052.png

Use a measure named current date via max('slicer'[date])  to get the date selected in the slicer.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

TomMartens
Super User
Super User

Hey @Alex_Hasan ,

 

unfortunately, this is not possible because a slicer does not accept a measure that provides a "default" value, e.g., a measure that returns the value using the DAX function TODAY().
Maybe using the relative date options provide what you are looking for: Use a relative date slicer or filter in Power BI - Power BI | Microsoft Docs
But as I already mentioned, there is no "default" value for slicers.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.