Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PL-300 topic 2 question 19 discussion

Actual exam question from Microsoft's PL-300
Question #: 19
Topic #: 2
[All PL-300 Questions]

DRAG DROP -
You are preparing a financial report in Power BI.
You connect to the data stored in a Microsoft Excel spreadsheet by using Power Query Editor as shown in the following exhibit.

You need to prepare the data to support the following:
✑ Visualizations that include all measures in the data over time
✑ Year-over-year calculations for all the measures
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://docs.microsoft.com/en-us/power-query/unpivot-column

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ThariCD
Highly Voted 1 year, 8 months ago
Answer is wrong, the table shouldn't be transposed, the order should be: 1. Use first row as header 2. Unpivot all columns other than "Measure" 3. Rename "Attribute" to "Year" 4. Change data type of "Year" to date (Date > Year)
upvoted 318 times
Kaarthi_2788
1 week, 5 days ago
in this method we can plot the graph but we cant about calculate year on year growth for revenue since all the measures are available in the single column.
upvoted 1 times
...
RedRoss
2 months ago
Explained the whole question here: https://www.youtube.com/watch?v=0sci44xnto0
upvoted 20 times
Mo2011
4 days, 7 hours ago
Thank you so much
upvoted 1 times
...
Chaka_Mahlo
1 month, 3 weeks ago
YES. Transpose Use the first rows as headers Rename the measure as year Change the data type of the year column
upvoted 10 times
...
...
Taras_Navakhatska
1 year, 3 months ago
Why shouldn't? The titles should be on the top.
upvoted 1 times
semauni
1 year ago
Transpose swaps rows and columns, which is not at all what you want. Source: https://learn.microsoft.com/en-us/power-query/transpose-table
upvoted 1 times
semauni
1 year ago
I stand corrected, you want a year-to-year calculation for all the measures. That means that you need to keep the measures and the years intact. I think both is possible
upvoted 4 times
prikha16
10 months, 3 weeks ago
If we need to have visuals that show all measures over time, it would be better to have the measures in separate columns
upvoted 1 times
...
...
...
...
AzureJobsTillRetire
1 year, 4 months ago
Hi guys, I am wondering how you can do the second step - Unpivot all columns other than "Measure"? There is no column called "Measure" unless you transpose or unpivot it. This is a much more serious problem than the problem with the last step in the transpose solution - being the failure of change data type of "Year" to date.
upvoted 1 times
AzureJobsTillRetire
1 year, 4 months ago
Please disregard. long hours studying and I had brain frozen. My apologies.
upvoted 5 times
...
...
...
jorv86
Highly Voted 1 year, 6 months ago
To me, 1. Transpose the table 2. Use first row as headers 3. Rename the Measure column as Year 4. Change the data type of the Year column to Date. Yo don't need to unpivot but transpose because you need the measures in columns. Don't you agree?
upvoted 155 times
maymia87
2 months, 2 weeks ago
I agree, I think people disagree because they are not on the same page on the desired outcome table. Since we need a table with the following columns, you just need to transpose: Year Revenue Overheads Cost of goods. Unpivot in useful if the column measure had category values (Countryname, Productname...) not measures. Here we do not want the measures to repeat.
upvoted 2 times
...
RichXP
1 year, 4 months ago
tried, this one is correct.
upvoted 1 times
...
Bnxyl
10 months ago
You cannot change the data type of only a years to date otherwise it will auto generate a DDMMYY format
upvoted 5 times
...
safz
10 months ago
ya i agreed, transpose the table.
upvoted 2 times
...
...
Mo2011
Most Recent 4 days, 7 hours ago
Transpose Use the first rows as headers Rename the measure as year Change the data type of the year column
upvoted 3 times
...
SIH007
2 weeks, 4 days ago
Sorry, but the last step is wrong, if you change the year to datatype date you would get 17th July, 1905. Actually my problem is: which 4th option do I select when all remaining options are wrong?????
upvoted 1 times
Bhanu__prakash
2 weeks ago
Please refer this video: https://www.youtube.com/watch?v=0sci44xnto0
upvoted 1 times
...
...
0e18c76
1 month ago
The 3rd step is wrong. You do not need to unpivot. The solution must be: 1. Transpose the table 2. Use first row as headers 3. Rename the Measure column as Year 4. Change the data type of the Year column to Date. This is really a tricky questions and most of us tend to go immediately to "unpivot other columns". The key here is to check the data carefully. And if you noticed on the first column, besides the first row which is measure, the other rows are all fields as well. So transpose instead of unpivot. Please check: https://www.youtube.com/watch?v=0sci44xnto0
upvoted 2 times
...
rdwn_akml
1 month, 2 weeks ago
TRANSPOSE the table Use first row as header Rename the measure column as Year Change the data type of the year column to Date
upvoted 1 times
...
kay1101
1 month, 4 weeks ago
Tested in Power BI, Both unpivot and transpose worked. I think the answer depends on the desired format of outcome table. If you want a 3 * 15 (row * col) table, with each measure and year to be a dependent row, then unpivot. If you want a 5 * 4 (row * col) table, with measures(revenue etc.) are columns and year in the row, then transpose.
upvoted 2 times
...
MANANDAVEY
2 months ago
1. Transpose 2. first row as header 3. Rename the measure coloumn as year 4. Change the datatype 100% TESTED SEQUENCE in PowerBI !!!
upvoted 1 times
...
Usm_9
2 months, 1 week ago
WAS ON THE EXAM 02 03 2024
upvoted 3 times
...
Dani_eL
2 months, 2 weeks ago
answer is right; when you transpose you obtain the correct order requested by the question; year to products 2016-product1; 2016-product2; 2016-product3; and so on when you unpivot, you obtain a different order; product to years 2016-product1; 2017-product1; 2018-product1; and so on
upvoted 1 times
...
Dani_eL
2 months, 3 weeks ago
Tested in PBI Desktop with the exact same excel sheet; Transpose : first column values become first row and each row contains its respective values Use first Row as Headers: first row containing values from first excel column, promoting that first row make it a row header : correct. Pay attention to an automatic applied step changing types on the fly too such as: = Table.TransformColumnTypes(#"Promoted Headers1",{{"Measure", Int64.Type}, {"Revenue", type number}, {"Overheads", type number}, {"Cost of Goods", type number}}) Unpivot Other Columns (having measure column selected): creates 3 columns : Measure - Attribute - Value Measure column contains YEAR values only Rename Measure Column to YEAR : because it's the data in it. Now you can filter by attributes and see the evolution year by year
upvoted 3 times
...
ikramus
3 months, 2 weeks ago
1. Use first row as header 2. Unpivot all columns other than "Measure" 3. Rename "Attribute" to "Year" 4. Change data type of "Year" column to Date Reference: https://docs.microsoft.com/en-us/power-query/unpivot-column
upvoted 2 times
...
SuniltheMentor
3 months, 2 weeks ago
To solve the problem, it needs only 3 steps 1) Use first row as header 2) Unpivot all columns other than "Measure" 3) Rename Attribute to Year But if we go with 4 steps as asked in the question, then we need to do the below sequence 1) Transpose 2) Use first row as header 3) Unpivot all columns other than "Measure" 4) Rename "Measure " to "Year"
upvoted 3 times
...
CookieMingkee
3 months, 2 weeks ago
The answer is correct if you follow through with the step. (1) Transpose the table. Results: Header: Column 1 | Column 2 | Column 3| Column 4 First Row: Measure | Revenue | Overheads | COGS Next Row: YEARS | Value of R | Value of OH | Value of COGS (2) Use First Row as Header Results: Header: Measure | Revenue | Overheads | COGS Rows: YEARS | Value of R | Value of OH | Value of COGS (3) Rename Measures to Year Results: Header: Year | Revenue | Overheads | COGS Rows: YEARS | Value of R | Value of OH | Value of COGS (4) Unpivot Other Columns Results: Header: Year | Attribute| Value Rows: YEARS | Measure | Values Test the results: (1) Create a table matrix. (2) Place the YEAR as Row (3) Place the Attributes as Column (4) Place the Values as value. Results: You get a Year over Year report for Revenue, Overheads, and COGS.
upvoted 3 times
CookieMingkee
3 months, 2 weeks ago
Steps 3 and 4 should be swapped because once you rename the Measures as Year, you cannot unpivot except for the measure because there is no measure column.
upvoted 2 times
...
...
jacintopintos
3 months, 2 weeks ago
I've checked on PBI. The correct order is Use first row as header. Unpivot all columns other than "Measure" Rename "Attribute" to "Year" Change data type of "Year" to date
upvoted 3 times
...
Chellz
3 months, 3 weeks ago
The key to this question is what data type(text or number)of the year value can be converted to a date type. In the suggested answer, after transposing, all the year values are still numbers, which when changed into date type, will use the Excel sequential serial number method, so you get 1905-07-08. In the most voted answer, the year values were first promoted as header, and after unpivoting became text values under the column "Atrribute". Text "2017" will be converted to "2017-01-01" when changed to date type.
upvoted 2 times
...
cs3122
4 months ago
Amazing at how often the suggested answer is incorrect. The CORRECT answer is: 1. Use first row as header 2. Unpivot all columns other than "Measure" 3. Rename "Attribute" to "Year" 4. Change data type of "Year" to date
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...