Forum Discussion
Minimum Date: ALL does not ignore date filter context
- 7 years ago
Hi all,
Just to help if anyone is experiencing this same problem, I have found a solution by reading the following article by Alberto Ferrari on sqlbi.com:
Apprently I needed to add CALCULATETABLE to the filter in order to obtain the first date regardless of the date filter in the matrix.
I obviously still have a long way to go to understand the ALL function...
Hi all,
Just to help if anyone is experiencing this same problem, I have found a solution by reading the following article by Alberto Ferrari on sqlbi.com:
Apprently I needed to add CALCULATETABLE to the filter in order to obtain the first date regardless of the date filter in the matrix.
I obviously still have a long way to go to understand the ALL function...
- v-juanli-msft7 years ago
Community Support
Hi PaulDBrown
Some references for you to learn ALL function further.
Video: How to Use The ALL function in Power BI & DAX
This article provides a complete explanation of the behavior of the ALLxxx functions in DAX. When used as filters in CALCULATE, ALLxxx functions might display unexpected behaviors.
Best Regards
Maggie- PaulDBrown7 years ago
Community Champion
Hi Maggie,
Thank you very much for providing the resources, I'll take a deep dive and hope to get a better understanding of how ALL works,
Best regards,
Paul
- JDanielHarvey6 years agoRegular Visitor
PaulDBrown Wonder if you had used the ALL() funciton on your fact table (ex. ALL(Mail) ) rather than the 'Mail'[Date sent] column if that would have removed the filters from the Calendar table since you would be referrencing the expanded table in the data model. Assuming you are using the Calendar table in the table you have listed but either way I believe that would also have worked.
I read the article but I'm not really clear why the CALCULATETABLE would have worked on a single column. I understand that ALL() inside CALCULATE() should really be thought of as REMOVEFILTERS() similar to KEEPFILTERS() (inverse of course). Also curious if FILTER(ALL() would have worked.
In your screenshot, is ABC, 123 and ZZZ folly examples of leads?