Forum Discussion
Fcoatis
8 years agoPost Patron
Next monday
Hello everyone, just a little help with this. I need to calculate a date as follows: if today is monday, keep it. If not return the next monday. Thanks in advance. Best wishes
- 8 years ago
II guess you mean a calculated column?
Something like:
NextMonday = DATEADD(Dates[Date],MOD(7-WEEKDAY(Dates[Date],3),7),DAY)
Fcoatis
8 years agoPost Patron
Thank you very much. But I was thinking of a measure.
MarcelBeug
8 years agoCommunity Champion
II guess you mean a calculated column?
Something like:
NextMonday = DATEADD(Dates[Date],MOD(7-WEEKDAY(Dates[Date],3),7),DAY)
- Fcoatis8 years agoPost Patron
That´s it. Thank you.
Happy Holidays.