Forum Discussion

harshad_barge's avatar
6 years ago
Solved

DAX 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...
  • danextian's avatar
    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 )