Forum Discussion
Vatz8
3 years agoHelper I
Create custom date column based on another date
Hi, I want to create a custom date column with displays 15th of every month and the end of the month based on a date column. Any day less than or equal to 15th should display 15th and any day less ...
- 3 years ago
please try this
Output Date =IF(DAY(Data[Given Date])<=15,DATE(YEAE(Data[Given Date]), MONTH(Data[Given Date]),15),EOMONTH(Data[Given Date],0))
Vatz8
3 years agoHelper I
Hi by using this formula I get all the dates with 15. But the endofmonth returns the same date as in the given column.
FreemanZ
3 years agoSuper User
please try this
Output Date =
IF(
DAY(Data[Given Date])<=15,
DATE(YEAE(Data[Given Date]), MONTH(Data[Given Date]),15),
EOMONTH(Data[Given Date],0)
)