Forum Discussion
Anonymous
2 years agoNot applicable
Delta between two dates
Hello folks, I'm trying to calculate the delta between two dates, I'm sending the The File . Is there a better way to do it? Can anyone help? Thanks!
- 2 years ago
You need to disconnect your date tables, and use USERELATIONSHIP()
see attached
- 2 years ago
Inbetween = CALCULATE(sum('Fact'[Sales]),DATESBETWEEN('Fact'[Date],min(CalendarFact[Date]),max(CalendarFactDest[Date]))) - 2 years ago
You would add a second rule from 0 to max.
lbendlin
2 years agoSuper User
Delta in what currency? Days? Months? Years?
Anonymous
2 years agoNot applicable
I'd like to see the result for this calculation
- lbendlin2 years agoSuper User
You need to disconnect your date tables, and use USERELATIONSHIP()
see attached
- Anonymous2 years agoNot applicable
Awesome!
- Anonymous2 years agoNot applicable
Just as curiosity, do you think we can have the comulative sum between selected months? 🙂
- lbendlin2 years agoSuper User
Inbetween = CALCULATE(sum('Fact'[Sales]),DATESBETWEEN('Fact'[Date],min(CalendarFact[Date]),max(CalendarFactDest[Date])))