Dashboard Mode - Why advanced DAX handles complex scenarios
Business Question
How can advanced DAX formulas help analyze sales data with complex conditions like filtering by product category and calculating running totals?
How can advanced DAX formulas help analyze sales data with complex conditions like filtering by product category and calculating running totals?
| Date | Product | Category | Sales Amount |
|---|---|---|---|
| 2024-01-01 | Widget A | Gadgets | 100 |
| 2024-01-02 | Widget B | Gadgets | 150 |
| 2024-01-03 | Gizmo A | Widgets | 200 |
| 2024-01-04 | Gizmo B | Widgets | 250 |
| 2024-01-05 | Widget A | Gadgets | 300 |
| 2024-01-06 | Gizmo A | Widgets | 350 |
Total Sales = SUM('Sales'[Sales Amount])Total Sales Gadgets = CALCULATE(SUM('Sales'[Sales Amount]), 'Sales'[Category] = "Gadgets")Running Total = CALCULATE(SUM('Sales'[Sales Amount]), FILTER(ALL('Sales'[Date]), 'Sales'[Date] <= MAX('Sales'[Date])))+----------------------+-------------------------+ | Total Sales (KPI) | Total Sales Gadgets (KPI) | +----------------------+-------------------------+ | Running Total Sales Chart | +-------------------------------------------------------------+ | Sales by Date and Category Table | +-------------------------------------------------------------+
A slicer for Category filters all components. Selecting "Gadgets" updates the KPIs and table to show only gadget sales. The running total recalculates based on the filtered dates and sales.
If you add a filter to show only Category = Widgets, which components update and what happens?