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.
Greg_Deckler
Community Champion
4 years agoAnonymous Try something like MyDiff Measure = MAX('Table1'[EndDate]) - MAX('Table1'[StartDate]) * 1.