Forum Discussion

GoingIncognito's avatar
GoingIncognito
Icon for Advocate III rankAdvocate III
6 years ago
Solved

Difference between simple sum() and sumx(daterange, sum() ) when using a time slicer

Once again seek your wisdom!

 

I have a simple report page with a time slicer.

I have one measure that simply states: sum(market_total_in_eur)

And another measure that states: sumx(datesbetween(Calendar[Date], firstdate(Calendar[Date]), lastdate(Calendar[Date]), sum(market_total_in_eur) ). When using the time slicer these measures return different values. Why do they return different values, when they sum over the same period?

In the pic there's the table I'm summing over. Market total can also have negative values.