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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AshDil
Helper V
Helper V

Max Date in Slicer

Hi,

 

In slicer, the date should be seleted to Max date by default whenever report is opened and also allow user to select the date of interest.

Eg: In the following slicer, Max date = 08/02/2022 

AshDil_0-1660120472607.png

Whenever user opened the report, the max date must be selected by default

AshDil_2-1660120752488.png

Then if user want to see any different date data, then can able to select that date.

Please help me to do it.

Thanks,

AshDil.

 

1 REPLY 1
NickolajJessen
Solution Sage
Solution Sage

I am not aware of any self selecting capabilities of slicers. I'm not sure about the size of your report, but if you have a reasonable amount of measure, you can adjust them to show the data for the latest date, unless another date is selected from the slicer. Goes someting like this.

 

Measure =
If( HasoneValue(Calendar[Date]),
   YourMeasureHere, //If selection is made, calculate the calue
   Calcualte( YourMeasureHere, filter(calendar, Calendar[Date] = Today()) ) // If no selection is made, use todays date by default (or use max date of your dataset, if that is more appropriate)

 



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.