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
sarjensystems1
Helper III
Helper III

Slicer

 

slicer1.PNG

Hii...

I am using slicer visual and i have transaction dates upto 18-sep-19 in my data model.how to restrict the dates in the between format of the slicer only to display the available dates..(remaining dates i.e from 19-sep should be disabled in the slicer)

 

Thanks

 

2 REPLIES 2
Anonymous
Not applicable

Hi,

You can create a calculated column in the Date table as below:

DateToShowFlag = 
VAR vMaxDate = CALCULATE( MAX( Transaction_Data[transaction_date] ), ALL( 'Calendar' ) )
RETURN 
IF( 'Calendar'[date] <= vMaxDate, TRUE(), FALSE() )

You can then put this column in the page level filter and set it to True.

The only catch here is, you will need to have the slider 'ON' for the slicer.

Thanks.

Icey
Community Support
Community Support

Hi @sarjensystems1 ,

 

It is not suported currently for Power BI. You can change the date range by sliding the slider below the date.

 

Best Regards,

Icey

 

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

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.