Dashboard Mode - Data source and dataset
Goal
Understand where data comes from and how it is organized in Power BI to create reports.
Understand where data comes from and how it is organized in Power BI to create reports.
| OrderID | Product | Category | Quantity | Price | OrderDate |
|---|---|---|---|---|---|
| 1001 | Notebook | Stationery | 5 | 2.5 | 2024-01-10 |
| 1002 | Pen | Stationery | 10 | 1.2 | 2024-01-11 |
| 1003 | Chair | Furniture | 2 | 45.0 | 2024-01-12 |
| 1004 | Desk | Furniture | 1 | 120.0 | 2024-01-13 |
| 1005 | Marker | Stationery | 7 | 1.5 | 2024-01-14 |
Total Sales = SUMX('Sales', 'Sales'[Quantity] * 'Sales'[Price])SUMX(FILTER('Sales', 'Sales'[Category] = EARLIER('Sales'[Category])), 'Sales'[Quantity] * 'Sales'[Price])+----------------------+----------------------+ | Total Sales | Sales by Category | | (KPI Card) | (Table) | +----------------------+----------------------+ | Sales by Product (Bar Chart) | +--------------------------------------------------------------+
A slicer on Category filters all components. Selecting 'Stationery' updates Total Sales, Sales by Category table, and Bar Chart to show only stationery products.
If you add a filter for Category = Furniture, which components update and what is the new Total Sales?
Answer: All components update. Total Sales becomes (2*45)+(1*120) = 210.