Forum Discussion
StevenHiatt
4 years agoFrequent Visitor
Find Max Date Prior to Today
I have order data with dates both in the past and in the future. It is connected to a date calendar table. I would like to find the most recent date prior to today. For example, if today was Apri...
- 4 years ago
Try:
Max Date =CALCULATE( MAX('Order Data'[Order Date]), FILTER(ALL(Order Data), Order Data[Date]<= TODAY()))
parry2k
Super User
4 years agoStevenHiatt try this:
Max Date =
CALCULATE( MAX('Order Data'[Order Date]), Dates[Date] <= TODAY())
✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.