SUMX FROM 2 DIFFERENT TABLES (DAX) - Power BI
community.powerbi.com › t5 › Power-QueryJan 8, 2020 · If you need a single SUMX for two fields in different tables, use something like the following: Measure = SUMX ( TableName, TableName [Field] * RELATED (TableName2 [DifferentField]) ) The tables have to have a relationship, and this assumes you are going from the many table to the one table. For example, you are multiplying quantities in a sales fact table against the cost of goods from a product dimension table.
Work with aggregates (sum, average, and so on) in Power BI
learn.microsoft.com › en-us › power-biNov 14, 2022 · Power BI can aggregate numeric data using a sum, average, count, minimum, variance, and much more. Power BI can even aggregate textual data, often called categorical data. If you try to aggregate a categorical field by placing it in a numeric-only bucket like Values or Tooltips , Power BI will count the occurrences of each category or count the distinct occurrences of each category.