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.
Hello All,
I have a report where I need to filter by -3 days and +12 days to todays date. It needs to consistently update. If possible, I'd prefer to have this in Power Query.
Thanks!
Solved! Go to Solution.
#date(Date.Year(DateTime.LocalNow()),Date.Month(DateTime.LocalNow()),Date.Day(DateTime.LocalNow())) - [Date]
In DAX it would be:
(TODAY() - [Date]) * 1.
Oh... 😶 Maybe I'll just do it in DAX then.
Thanks!
#date(Date.Year(DateTime.LocalNow()),Date.Month(DateTime.LocalNow()),Date.Day(DateTime.LocalNow())) - [Date]
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.