
Since we need to sum sales values for the year 2015, open the CALCULATE function first.Right-click on the Sales_Table and choose the New Measure option.So you can download the excel workbook from the below link which is used for this example. Power BI Filter – Example #1įor demonstrating the Filter function consider the below data table that we are going to use. Let’s see some of the examples to understand the functionality of the Filter DAX function in Power BI. How to Use Filter DAX Function in Power BI? In case of filtering individual city sales we need to select a city column and by putting equal sign we need to enter the city name in double-quotes. Filter Expression: In the filtering table what is the thing we need to filter.Table: First we need to mention the table name that we are filtering.Below is the syntax of the FILTER function in Power BI. As we have told above when we have all the cities sales if you want to show only one city sales total then we can use FILTER DAX function to get the total of one particular city.įILTER is mainly used with CALCULATE function, in general, to apply any kind of filters to arrive criteria based totals.

Otherwise we can only do one thing here.Hadoop, Data Science, Statistics & others What Does Filter Function do in Power BI?įILTER is simply the DAX function used to summarize the data with specifies criteria’s. This is the ORDER BY clause.Īnd post your desired output for your given data. This is the PARTITION BY clause.Īlso to output a duplicate, we need to know how to differentiate between the (correct) first row and the duplicate (second row). Thus we need to know, which columns in combination should be unique. As a simple DISTINCT shows that: DECLARE TABLE There is no duplicate row (assuming record means row in your lingua) in the give data, cause every row has a different value in the c0 column.

I'm mean that your question and your sample data make no sense.
