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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
bmms
Helper I
Helper I

How to custom only end date in slicer date

Hello,

 

I have a calendar table which was created using the follow DAX:

 

CALENDAR = CALENDAR (DATE (2021,1, 1), DATE (2030,1, 1))
 

I would like to customize the end date of the slicer date, i.e. the end date is automatically the day we are.

For example, today is February 23rd and I would like the end date to be 02/23/2023 and tomorrow to be 02/24/2023.

 

Date2.JPG

 

But I can't do this, by default the slicer date assumes the date 01-01-2030.

 

Date1.JPG

Can you help me?

 

Best regards

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Add a new column to your calendar table like

Today or before =
IF ( 'Calendar'[Date] <= TODAY (), 1 )

and you can then use that as a filter on the slicer

View solution in original post

4 REPLIES 4
Padycosmos
Solution Sage
Solution Sage

Please try the following:

Padycosmos_0-1677170835142.png 

Padycosmos_1-1677170955527.png

 

 

 

Hello,

 

thanks for your feedback.

 

I can't use those style. One of the requirements sent to me is to use the standard (default) style, like this:

 

Date2.JPG

 

Best regards.

johnt75
Super User
Super User

Add a new column to your calendar table like

Today or before =
IF ( 'Calendar'[Date] <= TODAY (), 1 )

and you can then use that as a filter on the slicer

Hellow,

 

thanks for your feedback.

 

If I only want to use the date column, is there any solution?

 

Best regards?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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