Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculating difference between two date columns

Hi all,   I'm trying to calculate the difference between two date columns, however I'm running into some difficulty. The two columns, startdate and enddate, are coming from a Dim table, so if I try...
  • Bubble4502's avatar
    4 years ago

    Hi Anonymous ,

     

    Based on your description, I have created a simple sample:

    Please try:

    Diff = DATEDIFF(MAX('Dim'[startdate]),MAX('Dim'[enddate]),DAY)

    Output:

    Kind Regards,

    Bubble

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.