Sales data with products, their categories, and sales amounts.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Category |
| C1 | SalesAmount |
| A2 | Chair |
| B2 | Furniture |
| C2 | 150 |
| A3 | Table |
| B3 | Furniture |
| C3 | 300 |
| A4 | Pen |
| B4 | Stationery |
| C4 | 20 |
| A5 | Notebook |
| B5 | Stationery |
| C5 | 50 |
Sales data with products, their categories, and sales amounts.
| Cell | Value |
|---|---|
| A1 | Product |
| B1 | Category |
| C1 | SalesAmount |
| A2 | Chair |
| B2 | Furniture |
| C2 | 150 |
| A3 | Table |
| B3 | Furniture |
| C3 | 300 |
| A4 | Pen |
| B4 | Stationery |
| C4 | 20 |
| A5 | Notebook |
| B5 | Stationery |
| C5 | 50 |
SUMX(SUMMARIZE(Sales, Sales[Category], "CategorySales", SUM(Sales[SalesAmount])), [CategorySales])A B C 1 Product Category SalesAmount 2 Chair Furniture 150 3 Table Furniture 300 4 Pen Stationery 20 5 Notebook Stationery 50 Formula references Sales[Category] and Sales[SalesAmount] columns from rows 2 to 5.
D 1 Total Sales 2 520
What is the main benefit of using aggregations in Power BI reports?
Which of the following is the correct DAX syntax to create a simple aggregation measure that sums the SalesAmount column?
SUM function adds all values in a column.SalesAmountTotal Sales = SUM(Sales[SalesAmount]) correctly sums the column.Given a summary table SalesSummary with columns Region and TotalSales, what will the following DAX measure return?Measure = CALCULATE(SUM(SalesSummary[TotalSales]), SalesSummary[Region] = "West")
SalesSummary[Region] = "West" limits data to West region.TotalSales only for rows where Region is West.Identify the error in this DAX measure intended to sum SalesAmount for the East region:Measure = CALCULATE(SUM(Sales[SalesAmount]), Sales[Region] == "East")
Sales[Region] == "East" with Sales[Region] = "East" to fix error.You have a large sales dataset and want to improve report speed by creating an aggregation table that groups sales by Year and ProductCategory. Which approach is best to create this aggregation table in Power BI?
SUMMARIZE to group data by Year and ProductCategory and calculate totals.SUMMARIZE(Sales, Sales[Year], Sales[ProductCategory], "TotalSales", SUM(Sales[SalesAmount])) creates a summary table with grouped totals, ideal for aggregation.Pass the test and this pattern moves unknown