Dashboard Mode - Calculated tables
Business Question
How can we create a new table that summarizes total sales by product category using calculated tables in Power BI?
How can we create a new table that summarizes total sales by product category using calculated tables in Power BI?
| TransactionID | Product | Category | Quantity | UnitPrice | SalesAmount |
|---|---|---|---|---|---|
| 1 | Notebook | Stationery | 2 | 3 | 6 |
| 2 | Pen | Stationery | 5 | 1 | 5 |
| 3 | Chair | Furniture | 1 | 50 | 50 |
| 4 | Desk | Furniture | 1 | 150 | 150 |
| 5 | Stapler | Stationery | 1 | 7 | 7 |
| 6 | Monitor | Electronics | 2 | 120 | 240 |
| 7 | Keyboard | Electronics | 3 | 30 | 90 |
CategorySales = SUMMARIZE(Sales, Sales[Category], "Total Sales", SUM(Sales[SalesAmount]))CategorySales with columns Category and Total Sales.Total Sales Overall = SUM(Sales[SalesAmount])CategorySales.+----------------------+--------------------+ | KPI Card | Bar Chart | | Total Sales Overall | Sales by Category | +----------------------+--------------------+ | Table Visual (CategorySales) | +-------------------------------------------------------+
Adding a slicer for Category filters both the Table Visual and Bar Chart to show data only for the selected category. The KPI Card updates to show total sales for the selected category as well.
If you add a filter to select only the Furniture category, which components update and what values do they show?
calculated table in Power BI?TopProducts showing top 5 products by sales?HighSales = FILTER(Sales, Sales[Amount] > 1000)
HighSales contain?RecentSales = FILTER(Sales, Sales[Date] >= TODAY() - 30)
CustomerSalesSummary that shows each customer and their total sales amount, but only for customers with sales above 5000. Which DAX expression correctly achieves this?Pass the test and this pattern moves unknown