Forum Discussion
Anonymous
4 years agoNot applicable
Automatically select latest date in slicer
Hi! I need my slicer to select the latest date available when I refresh the report and filter data in the table to that date. All previous dates should still show in the slicer in case the user nee...
David-Ganor
4 years agoResolver II
Hi Anonymous,
Please review the following video - replace Today with Max(date):
- Anonymous4 years agoNot applicable
Thank you David, I have modified the code in the video to fit my dataset but I have an error somewhere, I do not see it. Return value is "Today" for all the rows for some reason. When I use MAX function alone, I get the correct value back.
Today =IF(MAX(Processed[Report Date]),"Today",IF(Processed[Report Date] < MAX(Processed[Report Date]),Processed[Report Date]&""))