Forum Discussion
harshad_barge
Helper I
6 years agoDAX incorrectly calculating DATEADD condition
Hi all, I am still discovering DAX and I am incredibly grateful for the support of this forum so far. I have a problem I dont know why i am not getting an output for just a few of the values. I can...
- 6 years ago
Hi harshad_barge ,
If you are simply trying to get the difference in years between two dates, you can just use DATEDIFF().
Position from (Year) = DATEDIFF ( 'Table'[Calculation Date], 'Table'[Position From Date], YEAR )
danextian
Super User
6 years agoHi harshad_barge ,
If you are simply trying to get the difference in years between two dates, you can just use DATEDIFF().
Position from (Year) =
DATEDIFF ( 'Table'[Calculation Date], 'Table'[Position From Date], YEAR )