Forum Discussion

dhamodarankms's avatar
dhamodarankms
New Member
6 years ago

DAX - DATEADD Function

Dear Power BI Community,

 

I am Dhamo, Power BI Reports and Dashboards developer along with Data engineering and Modeleling. Today, I am doing a Date Model and found a wired situation while used DAX command called DATE ADD. It is working fine for the DAY but not for MONTH, QUATER, and MONTH. Much appreciate suggestions and knowledge in this occassion. 

 

DATEADD(DimDate[Date],-1,DAY) - Logic for Previous Day - Working fine
DATEADD(DimDate[Date],-1,YEAR) - Logic for Previous Year- It is not generating value and not returning with errors
DATEADD(DimDate[Date],-1,MONTH) - Logic for Previous Month - It is not generating value and not returning with errors
DATEADD(DimDate[Date],-1,QUATER) - Logic for Previous Quater- It is not generating value and not returning with errors
 
I have tried with PREVIOUS MONTH | YEAR | QUATER functions and those are also not handy.
 
Regards,

SD

6 Replies