You have a table SalesData with columns: Product, North, South, East, West. Each region column contains sales numbers.
Which DAX expression correctly unpivots the regional sales into two columns: Region and Sales?
Think about stacking rows for each region using SELECTCOLUMNS and UNION.
Option B uses UNION and SELECTCOLUMNS to create a new table with one row per product-region combination, effectively unpivoting the columns.
Options B, C, and D are invalid DAX syntax or do not perform unpivoting.
After unpivoting regional sales data into Region and Sales columns, which visualization best shows sales comparison across regions for each product?
Think about comparing sales by region side by side for each product.
A stacked bar chart allows easy comparison of sales by region within each product category.
Pie charts and line charts are less effective for this multi-category comparison. A table is less visual.
You have unpivoted sales data with columns: Product, Region, and Sales. You want to create a data model that supports filtering by region and product category.
Which modeling approach is best?
Think about how to enable flexible filtering and reduce data duplication.
Option A follows best practices by separating dimensions and facts, enabling efficient filtering and scalability.
Options A, B, and D limit filtering flexibility or cause data redundancy.
Consider this DAX expression intended to unpivot sales columns:
UNION( SELECTCOLUMNS(SalesData, "Product", SalesData[Product], "Region", "North", "Sales", SalesData[North]), SELECTCOLUMNS(SalesData, "Product", SalesData[Product], "Region", "South", SalesData[South]), SELECTCOLUMNS(SalesData, "Product", SalesData[Product], "Region", "East", "Sales", SalesData[East]) )
What is the error in this expression?
Check the column names in each SELECTCOLUMNS call carefully.
The second SELECTCOLUMNS call lacks the "Sales" column name before SalesData[South], causing a syntax error.
UNION can combine multiple tables, and string literals are valid in SELECTCOLUMNS.
Why is unpivoting columns into rows often recommended before creating reports and dashboards in BI tools?
Think about how BI tools handle data for filtering and grouping.
Unpivoting transforms data from wide to long format, which is easier for BI tools to aggregate and filter by categories.
It usually increases rows, does not create calculated columns automatically, and does not remove the need for dimension tables.