Since the SKU would have to be equal to A1 For a more comprehensive guide on the DAX language and its inner functionalities, I would suggest to check out . Attend online or watch the recordings of this Power BI specific conference, which includes 130+ sessions, 130+ speakers, product managers, MVPs, and experts. @rajendranhey hey! Give measure a name as Sales Value.. Otherwise, I would create another table with the cities that I want and relate it with, How to calculate sum with multiple conditions in power bi, How Intuit democratizes AI development across teams through reusability. As you see in above screen shot, SUM measure returns the total summation of Sales column. Remarks. Why do many companies reject expired SSL certificates as bugs in bug bounties? Appreciate your Kudos Feel free to email me with any of your BI needs. So WebSo, to arrive at each row calculation, we need to apply the Power BI SUMX function in New measure, not in New column.. Calculate Sum with Multiple And Or Filters. The following example uses the CALCULATETABLE function to get the sum of Internet sales for 2006. Consider that all of the basic date selection can be done in Power BI Power Query to the calendar table instead of using DAX. 4 Publish content to Power BI Report Server. Changes the CALCULATE and CALCULATETABLE function filtering semantics. A new filter is added to the Product table Color columnor, the filter overwrites any filter that's already applied to the column. Microsoft Power BI Learning Resources, 2023, Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics, Formatted Profit and Loss Statement with empty lines, How to Get Your Question Answered Quickly. See remarks. This value is later used to calculate the ratio of Internet sales compared to all sales for the year 2006. Lets explore the functions syntax. The following example uses the CALCULATETABLE function to get the sum of Internet sales for 2006. Please help! Step-2: Now drag TotalSales measure to card visual to see the output of sales measure. So this should be shown as 4 Won. In this article, I will try to show you how flexible Power BI can really be when designing new measures for your reports. CALCULATE(, , , ) So your statement should read: 4Q TCV = CALCULATE(SUM('FACT_PIPELINE'[SalesPrice]),'FACT_PIPELINE'[Family]= "Product",'FACT_PIPELINE'[business_type_name]= "New",'FACT_PIPELINE'[Closed Your help is much appreciated. The Amount is number type. The blank row is not created for limited relationships. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. SUMX requires a table or an expression that results in a table. In short, the following measures are now valid DAX expressions: In DAX, a filter is a table. 2 Publish content to Power BI Premium. WebIn this lesson, I will teach you how to specify multiple filters conditions in CALCULATE. All rights are reserved. Proud to be a Super User! The following measure formula sums SalesAmount_USD and uses the ALLEXCEPT function to remove any context filters on the DateTime table except if the filter has been applied to the CalendarYear column. In power bi desktop under relationship view ensure store id from fact table is joined with store id from dimension 2. CALCULATE can be used for single filter conditions or multiple filter conditions. ALL takes as input a table (or even just one or more columns) and removes any filter present on it; if we look at our measure, ALL(Sales) will remove any filter from our Sales table coming from the original filter context. Calculate Sum with 3 or more filters. Find out more about the online and in person events happening in March! while doing the sum of sales column what is the filter condition we need to apply. This thread already has a best answer. How to write an if statement using measure and Calculate? For each filter expression, there are two possible standard outcomes when the filter expression is not wrapped in the KEEPFILTERS function: This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules. Hello Masters, thank you for looking at this. Where does this (supposedly) Gibson quote come from? Remarks. In this case, we're selecting Average. In power bi desktop under relationship view ensure store id from fact table is joined with store id from dimension 2. The steps to use the DAX calculate function in Power BI is as follows. Copyright 2020 Dynamic Communities. Get BI news and original content in your inbox every 2 weeks! I tried to copy and paste the the word to avoid case errors but still does not work. Power Platform and Dynamics 365 Integrations, 15 parts of "material_code" "a" * 1$ = 15$, 15 parts of "material_code" "b" * 2$ = 30$, 10 parts of "material_code" "a" * 1$ = 10$. I tried the following but it never worked. I updated my response, with the statement for all cities. Hello Masters, thank you for looking at this. For example, if we decide to filter our Calendar only to show the dates from October 2022, our Sales table will also show only the Sales dated in October 2022 (which will usually be more than just 31 occurrences, of course). (adsbygoogle = window.adsbygoogle || []).push({}); some important DAX functions:- CALCULATE & Filter, Lets get started, download the sample Dataset from below link-. If you thought this post was helpful, please give it a Thumbs Up. I have a measure that sums up all opportunities [# of Opportunities]. Lets use CALCULATE to filter a column in a table. I want to create a measure for cumulative sum which can Dynamically accept the external filter context without hardcoding in measure. i'm fighting with an inventory powerapp, i have 2 different tables where i need to do some filters and operations. Without the ALL, the original filter context would stay unchanged and the first Sales[SaleDate] would only consider the dates from October, excluding any other month. REMOVEFILTERS can only be used to clear filters but not to return a table. This value is later used to calculate the ratio of Internet sales compared to all sales for the year 2006. Can you help me to find the correct formula to calculate the warehouse value ($), please? . The following example uses the CALCULATETABLE function to get the sum of Internet sales for 2006. The transactions table also contains the measure SUM(gbkmut[amount]) The CALCULATE function has filter syntax built in. Calculate Sum with Multiple And Or Filters. Measure = CALCULATE ( ABS ( SUM ( 'BalanceteGeral'[Saldo] ) ), FILTER(BalanceteGeral, BalanceteGeral[Conta] >= 11), FILTER(BalanceteGeral, BalanceteGeral[Conta] <= 13) ) A few alternatives to this could be applied, however would imagine for the situation you presented this should work. Give measure a name as Sales Value.. Connect and share knowledge within a single location that is structured and easy to search. Write it like this instead: Measure 7 = CALCULATE ( DIVIDE ( SUM ( dimMPS [StockQTY] ), [Avg cons 5y] * -1, 9.01 ), FILTER (dimMB, dimMB [StatusID] <> "BO") , FILTER (dimMB, dimMB [StatusID] <> "BI") ) the Month column), Power BI will cycle through each month and iteratively filter our Calendar[Month] column, consequently filtering also the Calendar[Date] column and, thanks to the relationship between our tables, the Sales[SaleDate] column. CALCULATE ( [, [, [, ] ] ] ). Copyright 2020 Dynamic Communities. Evaluates an expression in a context modified by filters. Red Sales = CALCULATE( [Sales], KEEPFILTERS('Product' [Color] = "Red") ) It's recommended you pass filter arguments as Boolean expressions, whenever possible. calpers sick leave conversion bmo harris customer service hours dispensary prices vs street prices 2021 Example. If the columns (or tables) are already in the filter context, the existing filters will be overwritten by the new filters to evaluate the CALCULATETABLE expression. Write it like this instead: Measure 7 = CALCULATE ( DIVIDE ( SUM ( dimMPS [StockQTY] ), [Avg cons 5y] * -1, 9.01 ), FILTER (dimMB, dimMB [StatusID] <> "BO") , FILTER (dimMB, dimMB [StatusID] <> "BI") ) How you write the Calculate with filter depends on if the two column you need to filter are in the same table. DAX. Here, instead of using all the data in a table, you use the FILTER function to specify which of the rows from the table are used.. The CALCULATE function evaluates the sum of the Sales table Sales Amount column in a modified filter context. how can we write above logic in dax expression in power bi? The following measure formula sums SalesAmount_USD and uses the ALLEXCEPT function to remove any context filters on the DateTime table except if the filter has been applied to the CalendarYear column. The Cumulative Sales Sel measure calculates the cumulative sales from the selection of the date slicer selected. Webpower bi calculate sum with multiple filters. An example could be a KPI like the customer count of a company (per product) when different products have differences in the counting logic or Making statements based on opinion; back them up with references or personal experience. DAX: sum with two filters 1. Lets use CALCULATE to filter a column in a table. As you see in above screen shot, SUM measure returns the total summation of Sales column. Remove all filters, or filters from one or more columns of a table, or from all columns of a single table. Filter modifier functions allow you to do more than simply add filters. qty label : Sum (Filter (SDTest2,Warehouse=ThisItem.Result),qty) Price label: Sum (Filter (SDTest2,Warehouse=ThisItem.Result),qty*LookUp (SDTest1,materialcode2=materialcode1,price)) If you're using anything other than Sum, you can just modify the sum that will accumulate the price from the other table. Step-1: Get the Furniture category sales where Sub category is chairs. I'm assuming that you are using a gallery to display the tabular data? If they are, you can use something like this (I had to guess for the positive statuses). By default, filter arguments in functions such as CALCULATE are used as the context for evaluating the expression, and as such filter arguments for CALCULATE replace all existing filters over the same columns. A Power BI Pro license is required to: 1 Distribute content to other users, and for peer-to-peer sharing and collaboration. If Open Opportunity requires both conditions, you should use AND(&&) instead of OR(||)Open Opportunity = Status is Open AND the Stage is NOT In Submittal. 'sumif' or calculate/sum for values in the same column power BI. The KEEPFILTERS DAX function ensures any existing filters applied to the Color column are preserved, and not overwritten. The same column can be referenced multiple times, like in the following measure: Referencing multiple columns in the same predicate was not possible. Doesn't support comparing value integer to type text. The CALCULATE function has filter syntax built in. I tried it with CALULATE and SUM but that only returns a value if I use one off each (one criteria from column ledger account, and one from column type). If the REMOVEFILTERS function is supported by your tool, it's better to use it to remove filters. If you want to get the sum by city but only want it when column [1] = "sales" you can summarize based on a filter: SumByCity = VAR curCity = 'Table' [column [2]] RETURN CALCULATE (SUM ('Table' [SalesAmount]), FILTER (curCity = 'Table' [column [2]] && 'Table' [column [1]]= "sales")) Share Improve this answer Follow answered Sep 19, 2020 at 14:54 Furthermore, with Power Query, the load of the data happens when the report updates. Find the number of occurences of each LOCATION OCCURENCES = COUNTX ( FILTER ( 'Table'; EARLIER ( 'Table' [LOCATION] ) 2. 08-18-2020 04:50 AM. It's because Import model tables are in-memory Mark my post as a solution! = CALCULATE(SUM('PROFIT AND LOSS DETAIL'[Line Amount]);[ACCT NAME]='Revenue' ; [ACCT NAME]='Cost of Goods Sold') Or the more explicit = CALCULATE(SUM('PROFIT AND LOSS DETAIL'[Line Amount]);filter('PROFIT AND LOSS DETAIL'; [ACCT NAME]='Revenue' ; [ACCT NAME]='Cost of Goods Sold')) The following measure formula sums SalesAmount_USD and uses the ALLEXCEPT function to remove any context filters on the DateTime table except if the filter has been applied to the CalendarYear column. It's been very helpful to me already -- thanks!!! If the ALL function removes all of the filters from our Sales table, you may think that the second parameter of the FILTER functionSales[SaleDate] <= MAX(Sales[SaleDate])is not really significant: since ALL has removed all of the pre-existing filters, arent we just saying Power BI to consider all the rows of the Sales table with a SaleDate earlier or equal than the maximum possible SaleDate? West Sales 1 = CALCULATE ( SUM ( factSales[amount] ), FILTER ( factSales, factSales[storeid] = 1 && factSales[quantity] <> 2 )) You could use this one The SUM function is similar to the Excel function of the same name, except that it takes a Thank you but how can we calculate for all the cities in same measure by not calculating for every single measure? Would you like to mark this message as the new best answer? Consider that all of the basic date selection can be done in Power BI Power Query to the calendar table instead of using DAX. WebFREE Power BI CODE: Collect a sum with a text filter for another column [616.432.7]. The filter expression has two parts: the first part names the table to which the filter DAX. Using calculation groups or many-to-many relationships for time intelligence selection, Understanding blank row and limited relationships, Using calculation groups or many to many relationships for time intelligence selection, Show the initial balance for any date selection in Power BI Unplugged #48, Counting consecutive days with sales Unplugged #47. CALCULATE(, , , ). (adsbygoogle = window.adsbygoogle || []).push({}); data type for year - > should be Whole number. My objective is to calculate the sum of total population for a city based on 2018 year, and three different wage distribution bins. The ability to create CALCULATE filter arguments with multiple columns simplifies the DAX code and usually provides better performance. They provide you with additional control when modifying filter context. So doing BadSumOfSales:=CALCULATE ( [Sum of Sales],Table3 [SKU]="A1",Table4 [SKU]="AB") will not give you what you need. As of now, this will sum the Sales column now next argument is Filter1 i.e. Add filter without removing existing filters on the same columns. = SUMX(FILTER(InternetSales, InternetSales [SalesTerritoryID]=5), [Freight]) If you do not need to filter the column, use the SUM function. Can't we use same measure to calculate for every location? When you say not Hi Howard, After having defined the "Expression" in the CALCULATE function, you can then add as many Hi Cekou, thank you very much. In those cases, a multicolumn filter required the complete syntax, as in the following example: A common error is to use a table filter instead of a multi-column filter. N/A. MdxScript(Model) (10, 16) Calculation error in measure 'Wage Distribution'[Under 30k]: DAX comparison operations do not support comparing values of type Integer with values of type Text. 1- Suppose you want to see row wise sum of Sales & Profit columns together. okay, I have made a gallery filtering with Distinct(SDTest2,Warehouse). Status: Won, It was from a lookup column and it works when I using filter by Account_No with the following formula : "Sum (1236) : $" & (Sum (Filter (dataTable, Account_No.Value=1236), Amount.Value)) and I replace Name.DisplayName='Smith, Jane The SUM function is similar to the Excel function of the same name, except that it takes a SUM DAX. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. What I am trying to do is a calculation of the last 4 weeks of sales. Divide QTY AVAILABLE by the number of occurences found CalculatedQTY = 'Table' [QTY AVAILABLE]/'Table' [OCCURENCES] 3. calpers sick leave conversion bmo harris customer service hours dispensary prices vs street prices 2021 How to calculate average inventory in power bi? This means that you can use multiple filters at one time. Contact FAQ Privacy Policy Code of Conduct, Community Summit Europe - 2021 Mailing List, Community Summit Australia - 2021 Mailing List. However is up to the requirements you have. I need, for each warehouse (table_1), calculate his total value ($) amount based on how many (qty) parts, for each component (material_code) are stored. Meaning that the data would have to meet both conditions. = CALCULATE(SUM(ResellerSales_USD [SalesAmount_USD]), ALLEXCEPT(DateTime, WebThe second part of the formula, FILTER(table, expression), tells SUMX which data to use. The KEEPFILTERS DAX function ensures any existing filters applied to the Color column are preserved, and not overwritten. Hi, I am a beginner in DAX and have some trouble to get a calculate formula work. = CALCULATE(SUM(ResellerSales_USD [SalesAmount_USD]), ALLEXCEPT(DateTime, CROSSJOIN ( [,
[, ] ] ). Do note that both the ALL and ALLSELECTED measures work where we are accumulating based upon a series that Step-1: Create a measure for SUM function. DAX now supports expressions where multiple columns belonging to the same table are part of the predicate expression in a CALCULATE filter argument. 1 The ALL function and its variants behave as both filter modifiers and as functions that return table objects. WebSo open SUM function and choose the Sales column from Sales_Table. CALCULATE(, , , ) So your statement should read: 4Q TCV = CALCULATE(SUM('FACT_PIPELINE'[SalesPrice]),'FACT_PIPELINE'[Family]= "Product",'FACT_PIPELINE'[business_type_name]= "New",'FACT_PIPELINE'[Closed Furthermore, with Power Query, the load of the data happens when the report updates. WebYou can use ALL to ignore the filters coming from more than one table. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. In the Visualizations pane, right-click the measure, and select the aggregate type you need. The following Sales table measure definition produces a ratio of sales over sales for all sales channels. Lets understand with an example: Step-1: Create a measure for SUM function. Here, the key point to understand is that our MAX operation will take place on the data still filtered by the original filter context; hence, the maximum date will be taken each time from the month currently considered by Power BI in its iteration through the x-axis. So The SUM function is similar to the Excel function of the same name, except that it takes a Asking for help, clarification, or responding to other answers. It was from a lookup column and it works when I using filter by Account_No with the following formula : "Sum (1236) : $" & (Sum (Filter (dataTable, Account_No.Value=1236), Amount.Value)) and I replace Name.DisplayName='Smith, Jane The formula is usually defined as follows: In order to properly analyse this formula, firstly we need to setup a simple test scenario; lets assume that our model is composed just by two tables, Calendar and Sales, connected to each other via a one-to-many relationship over the columns Calendar[Date] and Sales[SaleDate]: By defining a relationship between these two tables, any filter applied to the Calendar[Date] column will automatically propagate to the Sales[SaleDate] column. Lets use CALCULATE to filter a column in a table. Are the balance & accounts columns both in the same table or in tables that have a relation ? WOW I haven't seen all those messages when answering. The following version of Big Sales Amount uses KEEPFILTERS just to keep the semantics of the previous non-optimized version: However, both the last two versions are different from the syntax described in the initial example of the article. More info about Internet Explorer and Microsoft Edge. The column that contains the numbers to sum. 4 Publish content to Power BI Report Server. If you want to get the sum by city but only want it when column [1] = "sales" you can summarize based on a filter: SumByCity = VAR curCity = 'Table' [column [2]] RETURN CALCULATE (SUM ('Table' [SalesAmount]), FILTER (curCity = 'Table' [column [2]] && 'Table' [column [1]]= "sales")) Share Improve this answer Follow answered Sep 19, 2020 at 14:54 So doing BadSumOfSales:=CALCULATE ( [Sum of Sales],Table3 [SKU]="A1",Table4 [SKU]="AB") will not give you what you need. If you're using anything other than Sum, you can just modify the sum that will accumulate the price from the other table. REMOVEFILTERS can only be used to clear filters but not to return a table. More details about this in the next sections. Evaluates a table expression in a modified filter context. Unfortunately, results in the same error. I want to calculate the total amount for the ledger accounts 4005, 4085, 6000 and 6070 and only for the types 600 and 605. The following example uses the CALCULATETABLE function to get the sum of Internet sales for 2006. Do note that both the ALL and ALLSELECTED measures work where we are accumulating based upon a series that A Power BI Pro license is required to: 1 Distribute content to other users, and for peer-to-peer sharing and collaboration. Why is there a voltage on my HDMI and coaxial cables? My code is GPL licensed, can I issue a license to have my code be distributed in a specific MIT licensed project? By default, filter arguments in functions such as CALCULATE are used as the context for evaluating the expression, and as such filter arguments for CALCULATE replace all existing filters over the same columns. Read more. When filter expressions are provided, the CALCULATETABLE function modifies the filter context to evaluate the expression. This article compares two common techniques to filter time periods in DAX: calculation groups and many-to-many relationships. It was from a lookup column and it works when I using filter by Account_No with the following formula : "Sum (1236) : $" & (Sum (Filter (dataTable, Account_No.Value=1236), Amount.Value)) and I replace Name.DisplayName='Smith, Jane This value is later used to calculate the ratio of Internet sales compared to all sales for the year 2006. @Suchitra1996 thnx a lot for your suggestion. Status: Won, Find centralized, trusted content and collaborate around the technologies you use most. Then simply use your visual for example card visual and drop Amount field from first table onto it. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. I hope I managed to be clear enough: CALCULATE, FILTER and ALL can of course be used in a huge number of scenarios, not just for cumulative sums. All rights reserved. It doesn't matter what the Stage is, if the status is Won then it's Won. If you are familiar with Tableau, the equivalent would be the level of detail functions. The expression to be evaluated for each row of the table. What is the correct way to screw wall and ceiling drywalls? Again from our example of the month of October, Sales[SaleDate] <= MAX(Sales[SaleDate]) can be translated to Sales[SaleDate] <= 31/10/2022 (assuming 2022 as the year); it is just the first portion of this expression, the Sales[SaleDate] column, that is affected by the ALL: with the ALL, we consider every date before the 31st of October also coming from previous months, effectively obtaining a cumulative sum for the month of October. My objective is to calculate the sum of total population for a city based on 2018 year, and three different wage distribution bins. Calculate Sum with 3 or more filters. rev2023.3.3.43278. Hi Team , Need one help on one scenario in DAX. SUM DAX. Acidity of alcohols and basicity of amines. The CALCULATE function evaluates the sum of the Sales table Sales Amount column in a modified filter context. How to use calculate Here, SDTest1 and SDTest2 are my SharePoint list but you can replace them both with your respective tables and columns. Find out more about the online and in person events happening in March! CALCULATE([Actual Project Cost], FILTER(tablename, tablename[actual project cost column] <> 0 && tablename[Project Status] IN {"Active", Going back to our example of the month of the October, the MAX(Sales[SaleDate]) would return the 31st of October, but if Power BI were constructing the column of May of our graph, the MAX(Sales[SaleDate]) would have returned May 31st, and so on for each month. Yes, I would like to sum a column based on filter result. I don't think I am using "||" correctly because I am not getting the desired result. Sum With Multiple Filters 1. (Optional) Boolean expressions or table expressions that defines filters, or filter modifier functions. I tried to copy and paste the the word to avoid case errors but still does not work. Our ALL function is necessary because we want to consider all of the SaleDates when comparing them to the current maximum date, and not just the SaleDates from the currently considered month. In the Visualizations pane, right-click the measure, and select the aggregate type you need. I'm using 2 galleries that is displaying the information that you have posted and displaying the final cost with the help of a label. This value is later used to calculate the ratio of Internet sales compared to all sales for the year 2006. By default, Power BI creates a chart that sums the units sold (drag the measure into the Value well) for each product (drag the category into the Axis well). = SUMX(FILTER(InternetSales, InternetSales [SalesTerritoryID]=5), [Freight]) If you do not need to filter the column, use the SUM function. How to Use Calculate. By downloading the file(s) you are agreeing to our Privacy Policy and accepting our use of cookies. 00:00 - Introduction01:02 - Create a new measure01:12. Power Platform Integration - Better Together! By default, Power BI creates a chart that sums the units sold (drag the measure into the Value well) for each product (drag the category into the Axis well). As of now, this will sum the Sales column now next argument is Filter1 i.e. 2004-2023 SQLBI. If that doesn't work you can try an alternative for OR that in this case can be IN/TREATAS. Any recommendations? An example could be a KPI like the customer count of a company (per product) when different products have differences in the counting logic or The FILTER Function for the current example will use the following syntax: sumif = SUMX (FILTER (Marks,Marks [Mid term Marks] > 15),Marks [Mid term Marks]) The above Power BI SUMIF equivalent FILTER Function uses 2 parameters which are as follows: Table: The first Keep up to date with current events and community announcements in the Power Apps community. Check out the latest Community Blog from the community! Read more, DAX creates a blank row to guarantee that results are accurate even if a regular relationship is invalid. SUMX requires a table or an expression that results in a table. = CALCULATE(SUM('PROFIT AND LOSS DETAIL'[Line Amount]);[ACCT NAME]='Revenue' ; [ACCT NAME]='Cost of Goods Sold') Or the more explicit = CALCULATE(SUM('PROFIT AND LOSS DETAIL'[Line Amount]);filter('PROFIT AND LOSS DETAIL'; [ACCT NAME]='Revenue' ; [ACCT NAME]='Cost of Goods Sold')) The transactions table also contains the measure SUM(gbkmut[amount]) In power bi desktop under relationship view ensure store id from fact table is joined with store id from dimension 2. Before fully grasping the inner mechanisms of our cumulative sum formula, one last notion you should know about is the definition of the filter context.The filter context is the overall group of filters that define which portions of our tables will be considered when a measure is evaluated. Hi @harshnathani: I get the following error afterwards when I apply the measure to a simple card. by | Jun 10, 2022 | trinculo the tempest character analysis | police simulator: patrol officers guide. DAX. WebFor example, assume you need to create a New Measure, which gives one particular city total, for example, Columbia city. You're a wizard. The Amount is number type. The following formula: DAX = SUMX( CALCULATETABLE( 'InternetSales_USD', 'DateTime' [CalendarYear] = 2006 ), Do note that both the ALL and ALLSELECTED measures work where we are accumulating based upon a series that Since the SKU would have to be equal to A1 So, i need to calculate sales by city. SUMMARIZE AND SUMMARIZECOLUMNS DAX function examples. DIVIDE ( SUM ( dimMPS[StockQTY] ), [Avg cons 5y] * -1, 9.01 ), FILTER (dimMB,dimMB[StatusID] <> "BI") ). Your suggestion solved my problem. when I tried with single filter like: Smart Phones Sales = CALCULATE ( SUM ( Sales [Price] ), FILTER ( Sales, Sales [product] = "iPhone" )) It works well, but when I add another filter it gives me (Blank) with card visual. Br Howard, Community Summit Europe - 2021 Mailing List, Community Summit Australia - 2021 Mailing List. Marco and Alberto have worked with Analysis Services, Power BI and Power Pivot since the first versions, becoming established experts. Hello Masters, thank you for looking at this. It's because Import model tables are in-memory By default, Power BI creates a chart that sums the units sold (drag the measure into the Value well) for each product (drag the category into the Axis well). I have a measure that sums up all opportunities [# of Opportunities]. There are several rules that they must abide by: Beginning with the September 2021 release of Power BI Desktop, the following also apply: A table expression filter applies a table object as a filter.