Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Calculate days between dates in different tables

Can someone please provide me with assistance. I have 2 tables which are joined on a Project # and need to find the number of days between Created On Date  and Project Start Date. Below is an example...
  • speedramps's avatar
    speedramps
    4 years ago

    Hi rohit_singh

     

    Thanks for your help, but please check your solution suggetion .....

    var _datediff = DATEDIFF('DatesBetween'[CREATED_ON],'DatesBetween'[PROJ_ST_DT],DAY)

     

    Wont the DatesBetween'[CREATED_ON]  return a buggy table value ? 🤔

     

    You need to wrap it in a SELETEDVALUE, MIN or MAX to get a scalar value.

    See  method I suggested.

     

    Many thanks 😎