Article

DAX Language - ALL Function

DAX Language - ALL Function


A.Baddane | Posted on April 08, 21

ALL Function

 Description:

The ALL function is used for clearing filters and creating calculations on all the rows in a table. It returns all the rows in a table, or all the values in a column, ignoring any filters that might have been applied.

 Return Value:

ALL returns an entire table or a table with one or more columns.

 Syntax:

ALL( [<TableNameOrColumnName> | <ColumnName>[, <ColumnName>[,…]]]] )
  • Description of the parameters:

 

PARAMETER

DESCRIPTION

TableName Or ColumnName

The table or column that you want to clear filters on

ColumnName

Optional column in the same base table. Can be added when the first parameter is a column name

 

 Example:

  An example of using the ALL function is to calculate the total amount of sales that ignore all the filters applied on the measure or report.

Total Sales amount = 
            SUMX(
                ALL(Sales),
                Sales[SalesAmount]
                )

The formula above will calculate the total sales amount, and the result will be the same can import the file apply as shown in the following table.

 

Related Video:

 

 


(0) Comments

There is no comment

Leave a Comment
Add to favorite
Categories
Recent Posts
Filter column based on a list in Power Query
A.Baddane | April 05, 23

Sometimes when you work within power query, you need to filt...Read More


Use HTML in Power BI - Part 2
A.Baddane | July 05, 22

In the first blog post about using HTML in Power BI Desktop,...Read More


Use HTML in Power BI
A.Baddane | Feb. 21, 22

In this blog post, I will show you how to use HTML to create...Read More


Covid-19 Report
A.Baddane | Nov. 23, 21

The COVID-19 pandemic, also known as the coronavirus pandemi...Read More