Dashboard Mode - SUMX and iterators
Business Question
How much total revenue did each product category generate, considering the quantity sold and price per unit?
How much total revenue did each product category generate, considering the quantity sold and price per unit?
| Product Category | Product | Quantity Sold | Price Per Unit |
|---|---|---|---|
| Electronics | Headphones | 10 | 50 |
| Electronics | Keyboard | 5 | 80 |
| Furniture | Chair | 7 | 120 |
| Furniture | Desk | 3 | 200 |
| Clothing | T-Shirt | 20 | 15 |
| Clothing | Jeans | 10 | 40 |
Total Revenue = SUMX(Sales, Sales[Quantity Sold] * Sales[Price Per Unit])Revenue by Category = SUMX(FILTER(Sales, Sales[Product Category] = EARLIER(Sales[Product Category])), Sales[Quantity Sold] * Sales[Price Per Unit])Revenue = Sales[Quantity Sold] * Sales[Price Per Unit]+----------------------+-----------------------+ | Total Revenue | Revenue by Category | | (KPI Card) | (Bar Chart) | +----------------------+-----------------------+ | Detailed Sales Table (with Revenue) | +-------------------------------------------------------+
A slicer for Product Category filters all components:
This helps focus analysis on one category at a time.
If you add a filter for Product Category = Furniture, which components update and what are their new values?
SUMX function do in Power BI?SUMX in DAX?Sales with columns Quantity and Price, what is the result of this measure?SUMX(Sales, Sales[Quantity] * Sales[Price])
SUMX(Sales, Sales[Quantity] + )
(Price - Cost) * Quantity. Which DAX formula using SUMX correctly calculates this?Pass the test and this pattern moves unknown