The Definitive Guide to ALLSELECTED

 https://www.sqlbi.com/articles/the-definitive-guide-to-allselected/


ALLSELECTED can either return a table or it can remove filters and restore a previous filter context. In both cases, it does so by accessing and using the last shadow filter context left by an iterator on the stack of filter contexts.



Comments