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
Inbetween = CALCULATE(sum('Fact'[Sales]),DATESBETWEEN('Fact'[Date],min(CalendarFact[Date]),max(CalendarFactDest[Date])))Anonymous
2 years agoNot applicable
Hello there, its me again, would you know how can I set a green color font whenever the value is higher than or equal to 1? Keeping the red rule. Thanks!
- lbendlin2 years agoSuper User
You would add a second rule from 0 to max.
- Anonymous2 years agoNot applicable
Nice, thanks!