You have a table with sales data pivoted by product categories as columns: Electronics, Clothing, and Furniture. Each column shows sales amount for that category per month.
Which DAX measure correctly calculates the total sales across all categories for each month?
SalesData = DATATABLE(
"Month", STRING,
"Electronics", INTEGER,
"Clothing", INTEGER,
"Furniture", INTEGER,
{
{"Jan", 1000, 500, 300},
{"Feb", 1200, 600, 400}
}
)
// Choose the correct measure:Think about how to add values from multiple columns correctly.
Option D sums each category column separately and adds them, which correctly totals sales.
Option D multiplies values, which is incorrect.
Option D tries to sum an expression inside SUM, which is invalid syntax.
Option D sums the addition inside SUM, which causes a type error.
You have monthly sales data pivoted by product categories as columns. You want to show trends over time for each category clearly.
Which visualization type is best suited for this pivoted data?
Think about how to show trends over time for multiple categories.
Line charts are best for showing trends over time with multiple categories as separate lines.
Stacked columns can show totals but make it harder to compare categories individually over time.
Pie charts do not show trends over time.
Tables show raw data but are less visual and harder to interpret trends.
You receive sales data with product categories as separate columns (pivoted). You want to create a data model that allows easy filtering and aggregation by category.
What is the best approach to handle this pivoted data in your model?
Think about how to make filtering by category easier and more scalable.
Unpivoting converts columns into rows, creating a normalized structure that supports filtering and aggregation by category.
Keeping pivoted columns limits flexibility and requires many measures.
Concatenating sales into strings prevents numeric analysis.
Removing category columns loses detail.
Given a table with pivoted sales columns: Electronics, Clothing, Furniture, a developer wrote this DAX measure:
Total Sales = SUM(SalesData[Electronics] + SalesData[Clothing] + SalesData[Furniture])
What error will this measure cause when used in a report?
Consider what the SUM function expects as input.
SUM expects a single column reference. Adding columns inside SUM creates an expression, causing a type error.
It is not a syntax error but a semantic error at runtime.
Option B is incorrect because it does not sum only one column.
Option B is incorrect because the measure fails.
In a BI project, you receive data with many product categories as separate columns (pivoted). You decide to unpivot these columns into rows before loading into the model.
What are the main benefits of unpivoting pivoted columns in this context?
Think about how data structure affects filtering and measure creation.
Unpivoting creates a normalized table with category and value columns, making filtering and aggregation easier and reducing the need for many separate measures.
It does not necessarily reduce data size or create calculated columns automatically.
Merging sales into a single column without category info reduces analysis options.