Forum Discussion
RobertSlattery
Responsive Resident
8 years agoPrevious Day Value
Why does this work... Order Value Prev Day = CALCULATE(
SUMX(orderLines, [Amount] * RELATED(Order_Types[Sign])),
FILTER(
orderLines,
[Date] = MAX('Dim Date'[Date])
),
...
- 8 years ago
Nope, ALL just removes all of the context filters but not the relationships. Let me see if there is a way to do that but I'm not sure.
RobertSlattery
Responsive Resident
8 years agoYes, sorry, rushed it, should be - 1. Edited to fix.
In answer to your question, I do have dates one day less for all the values selected and I use ALL(orderLines) to open up the context to the whole date range.
Greg_Deckler
Community Champion
8 years agoAgain, tough to say without the data to replicate. But, if you have a relationship between your two tables based on Date. Then you will never have a match between them where date in one table matches -1 date from another table. Does that make sense?