Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all,
I will need you assistance with help and ideas on the following topic:
I have a dashboard that consists of data, which is being updated every day and therefore I have a 'Report Date' field that corresponds to the date when the report was updated. What I need to do is that I need to compare data always with Mondays.
For instance, today is Monday, so we want to see this Monday compared to previous Monday, then for tomorrow we want to see Tuesday compared to this week Monday, then Wednesday compared to this week Monday and etc...
I have some slight ideas on how to do that, but I am still struggling... I have the following for now:
vMaxDate - =max([Report Date])
vLastMonday - =date(weekstart(max([Report Date]))+1, 'DD-MMM-YYYY')
But for the second variable, I am really not sure id it will work properly...
Could you please help me a bit with the logic here? Let me know in case more details are needed regarding what I want to do.
Best Regards,
Shelly
Try this for vLastMonday:
=date(WeekStart(max({1} [Report Date])-1,0,0), 'DD-MMM-YYYY')
Hi Gary,
Thank you very much for your suggestion, I implemented it now and it shows me 1st of Feb, which is correct...
My only question here is, as for now I only have 1 week of historical data in my app, in one week from now this calculation is supposed to be showing the previous week Monday, correct? Meaning that if the current date is 15th of February, it will show me 8th of Feb?
Thanks!
Best Regards,
Shelly
Yes. If the max Report Date is a Monday, like 15th of February, it will return the previous Monday, 8th of February.