Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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.
Solved! Go to Solution.
Thanks for your insight, bhanu_gautam.
@Fphizal , 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.
Thanks for your insight, bhanu_gautam.
@Fphizal , 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.
@Fphizal ,
Create a new calculated column by going to modelling tab and click on new column
Proud to be a Super User! |
|
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
35 | |
17 | |
12 | |
11 | |
9 |
User | Count |
---|---|
45 | |
27 | |
16 | |
14 | |
14 |