Complete the code to transpose a table in Power BI using DAX.
TransposedTable = TRANSPOSE([1])The TRANSPOSE function requires a table as input. Here, SalesData is the table to transpose.
Complete the code to create a transposed table of selected columns.
SelectedColumns = SELECTCOLUMNS(SalesData, "Product", Product, "Amount", Amount) Transposed = TRANSPOSE([1])
You must transpose the table with the selected columns, which is SelectedColumns.
Fix the error in the code to transpose a filtered table.
FilteredTable = FILTER(SalesData, Amount > 50) TransposedTable = TRANSPOSE([1])
TRANSPOSE requires a table variable or table expression. Using the variable FilteredTable is correct.
Fill both blanks to create a transposed summary table grouped by Product and Year.
SummaryTable = SUMMARIZE(SalesData, [1], [2], "TotalSales", SUM(Amount)) TransposedSummary = TRANSPOSE(SummaryTable)
SUMMARIZE groups by columns. Use SalesData[Product] and SalesData[Year] as grouping columns.
Fill all three blanks to create a transposed table with filtered and selected columns.
Filtered = FILTER(SalesData, [1] > 100) Selected = SELECTCOLUMNS(Filtered, "Product", [2], "Amount", [3]) Result = TRANSPOSE(Selected)
Filter by Amount, select columns with full references SalesData[Product] and SalesData[Amount] before transposing.