I'm trying to better understand the order/manner of determining filter context, and came across a conundrum that I couldn't explain.
The 2 measures below produce significantly different results.
(A) CALCULATE(SUM([SalesAmount]), LASTDATE(DimDate[FullDateAlternateKey]) )
(B) CALCULATE(SUM([SalesAmount]),FILTER(DimDate,LASTDATE(DimDate[FullDateAlternateKey])))
...
When used in a PivotTable with a context of Year=2001:
(A) aggregates sales from the last day of the year 2001
(B) aggregates sales from all days of the year 2001
...
Can someone please help me understand the development of the context for (A) and (B), so I can better get how PowerPivot works?
Thanks for anything you can do to clear my fog.
Tom
The 2 measures below produce significantly different results.
(A) CALCULATE(SUM([SalesAmount]), LASTDATE(DimDate[FullDateAlternateKey]) )
(B) CALCULATE(SUM([SalesAmount]),FILTER(DimDate,LASTDATE(DimDate[FullDateAlternateKey])))
...
When used in a PivotTable with a context of Year=2001:
(A) aggregates sales from the last day of the year 2001
(B) aggregates sales from all days of the year 2001
...
Can someone please help me understand the development of the context for (A) and (B), so I can better get how PowerPivot works?
Thanks for anything you can do to clear my fog.
Tom