From the course: Excel Business Intelligence: Power Pivot and DAX

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Remove filter context with ALL

Remove filter context with ALL

- [Instructor] Alright next up, time to talk about the all function. Now basically the all function can do two things. It can return all the rows in a table or all the values in a column, ignoring any filters that have been applied. So it works in kind of an opposite way to the filter function, where the filter function adds filter context; the all function removes it. So syntax wise, pretty straightforward, there's only one required argument which is the table or column reference that you want to clear the filters on. And you've also got an optional list of columns as well. Couple things to note here, if your first argument or parameter is a table then you're done, that's the whole function, just all, table reference, close parenthesis. But if you specify column then you can specify an additional list of columns as well provided that A, they're fully qualified so they include the table name and B, they all come from the same table. So that allows you to do things like clear the…

Contents