Forum Discussion
Anonymous
4 years agoNot applicable
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...
- 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.
Bubble4502
4 years agoResolver III
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.
- Anonymous4 years agoNot applicable
This worked! Thank you Bubble, much appreciated