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.
I need to be able to apply a slicer for "Today", "Yesterday" and "Older".
However, the data is not relevant on weekends so, when today is Monday, I need the report to show Friday's data when the "Yesterday" filter is applied.
I have the following at the moment, whch works fine, except for Monday:
Slicer = IF(DATEADD(Date_Lookup(Date),1,DAY) = TODAY(),"Yesterday",
IF(DATE_Lookup(Date) = TODAY(),"Today",
"Older"))
Hi @Anonymous,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
Hi @Anonymous,
Try this formula, please.
Slicer New = IF ( [Date] > TODAY (), "NA", IF ( [Date] = TODAY (), "Today", IF ( WEEKDAY ( [Date], 2 ) = 5 && DATEDIFF ( [Date], TODAY (), DAY ) <= 3 && DATEDIFF ( [Date], TODAY (), DAY ) > 0, "Yesterday", IF ( DATEADD ( 'Date_Lookup'[Date], 1, DAY ) = TODAY (), "Yesterday", "Older" ) ) ) )
Best Regards,
Dale
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |