Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

POWER BI

I want to calculate days between "DesignStartdate" and "datesentforreview" I have created a relationship and still unable to derive the number of days required between dates.
  • Anonymous's avatar
    Anonymous
    2 years ago

    Thanks for your insight, bhanu_gautam.

     

    Anonymous , if you want to calculate days between "DesignStartdate" and "datesentforreview", you need to make sure there's a valid relationship.

    In this case, the relationship is one-to-one, and the number of days can be successfully calculated. Create a measure to return days.

    Measure = DATEDIFF(MAX('Artwork Tracker'[DesignStartdate]),MAX('Review List'[datesentforreview]),DAY)

     

     If the relationship is a one-to-many pair, the number of days can also be successfully calculated.

     

    If the above requirements do not meet you, please provide more details. It's a good idea to provide some simple sample data and the desired results, as I did.

     

    Best Regards,

    Stephen Tao

     

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