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
Anonymous
Not applicable

Date filter

I have date fields like below, in this date visual how can i restrict the from and to date. From date is a standard one(say 2021-05-25) and to date is getdate. Thanks

 

 

arunkumar1107_0-1623326726648.png

 

1 ACCEPTED SOLUTION
PaulOlding
Solution Sage
Solution Sage

You could add a measure to use in the visual level filter.

Display Date =
VAR _CurrentDate = MAX('Date'[Date])
VAR _Result = IF(_CurrentDate >= DATE(2021, 5, 25) && _CurrentDate <= TODAY() , 1, BLANK())
RETURN
_Result
 
then set the filter to 'is 1'
PaulOlding_0-1623337406355.png

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Add a column to your date table with 1 for the dates you want to see and 0 for the others. Then filter by this field (the slicer can be hidden if you don't need to show it). Your dates will adjust automagically. Or you can create a helper measure that will use such a column (which you can hide) and use it to filter the entries of the slicer via the Filter Pane.

PaulOlding
Solution Sage
Solution Sage

You could add a measure to use in the visual level filter.

Display Date =
VAR _CurrentDate = MAX('Date'[Date])
VAR _Result = IF(_CurrentDate >= DATE(2021, 5, 25) && _CurrentDate <= TODAY() , 1, BLANK())
RETURN
_Result
 
then set the filter to 'is 1'
PaulOlding_0-1623337406355.png

 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.