A query contains three columns: Department, Metric, and Amount. Metric holds the text values Actual and Budget, and Amount stores corresponding decimal values. You need a result that shows one row per department with two numeric columns named Actual and Budget. In Power Query Editor, which transformation should you apply first to achieve this?
Unpivot the Actual and Budget columns to long format.
Pivot the Metric column using Amount as the values column.
Pivot the Department column using Metric as the values column.
Transpose the entire table to switch rows and columns.
Using Pivot on the Metric column converts each distinct value in Metric (Actual and Budget) into its own column, with values taken from the Amount column and automatically grouped by Department. This produces the required wide table. Unpivot would return the data to a longer format, transpose swaps every row and column in the entire table, and pivoting the Department column would create a separate column for each department rather than for Actual and Budget.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why does the Metric column need to be pivoted and not the Department column?
Open an interactive chat with Bash
What is the difference between pivoting and unpivoting in Power Query?
Open an interactive chat with Bash
How does Power Query handle duplicate entries when pivoting?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Prepare the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .