Dashboard Mode - Active vs inactive relationships
Business Question
How do active and inactive relationships affect sales analysis by product category and promotion period?
How do active and inactive relationships affect sales analysis by product category and promotion period?
| SaleID | ProductID | SaleDate | Quantity | Amount |
|---|---|---|---|---|
| 1 | 101 | 2024-01-05 | 2 | 200 |
| 2 | 102 | 2024-01-15 | 1 | 150 |
| 3 | 103 | 2024-02-10 | 3 | 450 |
| 4 | 101 | 2024-02-20 | 1 | 100 |
| 5 | 102 | 2024-03-05 | 4 | 600 |
| ProductID | Category |
|---|---|
| 101 | Electronics |
| 102 | Furniture |
| 103 | Electronics |
| PromoID | StartDate | EndDate |
|---|---|---|
| 1 | 2024-01-01 | 2024-01-31 |
| 2 | 2024-02-01 | 2024-02-28 |
Total Sales = SUM(Sales[Amount])Sales by Category = CALCULATE(SUM(Sales[Amount]), USERELATIONSHIP(Sales[SaleDate], Promotion[StartDate]))+----------------------+-------------------------+ | Total Sales | Sales by Product Category | | (KPI Card) | (Bar Chart) | +----------------------+-------------------------+ | Sales Details Table | +-------------------------------------------------+
Filters on Promotion Period update the Bar Chart using the inactive relationship activated by USERELATIONSHIP. The KPI Card and Sales Details Table use the active relationships and update based on Product Category or date filters.
Add a filter for Promotion Period = January 2024. Which components update their data?