Article

DAX Language - FILTER Function

DAX Language - FILTER Function


A.Baddane | Posted on April 04, 21

FILTER Function

 Description:

The Filter function is used to return a subset table of an expression or a table.

 Return Value:

Filter returns a table containing only the filtered rows.

 Syntax:

FILTER( <Table> , <FilterExpression> )
  • Description of the parameters:

PARAMETER

DESCRIPTION

Table

Table or expression table to be filtered.

FilterExpression

A boolean expression that is to be evaluated for each row of the table.


 Example:

  In our data model, we have a Product table which contains the unit price of each product, we want to add a new Product table where the unit price of products is greater than $1000.

  To add the new table, we will use the formula below:

New_Product = FILTER('Product', 'Product'[UnitPrice] > 1000)

 

Note that FILTER function is generally used as a function that is embedded in other functions that require a table as an argument.

 

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