Forum Discussion

delmayhan's avatar
delmayhan
Frequent Visitor
3 years ago
Solved

Dateadd in previous Year

Hi all, i created a column of the current date = today()  and important to know today is 03/01/2023 What we do is taking a snapshot 10 days after each quarter. And from there on i create a co...
  • tamerj1's avatar
    tamerj1
    3 years ago

    delmayhan 
    Please try 

    Date of previous quarter = 
    VAR CurrentDate = 'Issue snapshot'[Current Date]
    VAR AdjustedDate = CurrentDate - 10
    VAR Days = DAY ( AdjustedDate )
    VAR PreviousDate = EOMONTH ( AdjustedDate, - 4 ) 
    RETURN
        PreviousDate + Days