Forum Discussion

EbyEaso's avatar
EbyEaso
Helper III
3 years ago
Solved

Calculated Column based on Dates

I'm trying to find out the Aging of a case wcich registered in our system. In my dataset I have 2 date feilds. Assigned Date, and Completed Date.   I have created a calculated column by subtracting...
  • Greg_Deckler's avatar
    Greg_Deckler
    3 years ago

    EbyEaso OK, so:

    = if 'SQL-DATE-UPDATED'[CompletedDate] = null then DateTime.LocalNow() - 'SQL-DATA-UPDATED'[AssignedToDate] else 'SQL-DATE-UPDATED'[CompletedDate] - 'SQL-DATA-UPDATED'[AssignedToDate]