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

Exam PL-300 All Questions

View all questions & answers for the PL-300 exam

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 2 years, 2 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 359 times
DexTorao
22 hours, 17 minutes ago
i agree
upvoted 1 times
...
Kaarthi_2788
6 months, 2 weeks 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 3 times
...
Taras_Navakhatska
1 year, 9 months ago
Why shouldn't? The titles should be on the top.
upvoted 2 times
semauni
1 year, 7 months 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, 7 months 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
1 year, 4 months 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 2 times
...
...
...
...
AzureJobsTillRetire
1 year, 11 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 3 times
AzureJobsTillRetire
1 year, 11 months ago
Please disregard. long hours studying and I had brain frozen. My apologies.
upvoted 6 times
...
...
...
jorv86
Highly Voted 2 years 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 185 times
maymia87
8 months, 3 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 3 times
...
RichXP
1 year, 10 months ago
tried, this one is correct.
upvoted 2 times
...
Bnxyl
1 year, 4 months ago
You cannot change the data type of only a years to date otherwise it will auto generate a DDMMYY format
upvoted 7 times
...
safz
1 year, 4 months ago
ya i agreed, transpose the table.
upvoted 2 times
...
...
jaume
Most Recent 2 days, 19 hours ago
I've created same excel table and imported into my own pbix. I've: 1.-TRANSPOSED the table, 2.- PROMOTED headers, 3.- RENAMED "measure" as "year" and, at this point I'm able to set a visual (line graph) with the three measures year over year Changing data type of {2016, 2017, 2018, 2019, 2020} column to DATE type results in ({08/07/1905, 09/07/1905, 10/07/1905, 11/07/1905, 12/07/1905}) column so, if 4 actions are required here, only other action I can select is to 4.- UNPIVOT other columns than measure. With that 4 actions I still can represent the 3 measures over all years and I guess some custom DAX calculations can be defined to get the YoY calculations
upvoted 1 times
...
mghf61
2 weeks, 2 days ago
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. I tested this and worked
upvoted 1 times
...
madimad
1 month, 2 weeks ago
Transpose the table Use the first row as headers Rename the Measure column as Year Change the datatype of the Year column to Date its the correct answer
upvoted 1 times
...
mapr
2 months, 1 week ago
Answer is correct. I just try on my computer and works perfectly.
upvoted 1 times
...
rcaliandro
3 months ago
I totally agree with ThariCD: 1 - Use the first row as headers (we now have column names) 2 - Unpivot all the columns other than Measure (we have years in one column only) 3 - Rename the Attribute column as Year (we have the year column) 4 - Change the data type of the Year column to Date (I only have a doubt for this step, why an year should be considered as a Date???)
upvoted 1 times
...
hayleyxiong33
4 months ago
The answer is wrong the table should not be transposed
upvoted 1 times
...
agelee
4 months, 1 week ago
With Transpose there is an issue to do in one step conversion of Year data type from Int to Date (it has to be done in 2 steps int->text->date) and it results in 5 steps, not 4. IDK the answer here.
upvoted 2 times
...
SeethaG
4 months, 1 week ago
• 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.
upvoted 1 times
...
greenlever
6 months ago
The given answer is correct.
upvoted 2 times
...
Mo2011
6 months, 1 week ago
Transpose Use the first rows as headers Rename the measure as year Change the data type of the year column
upvoted 5 times
...
SIH007
6 months, 3 weeks 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
...
0e18c76
7 months, 1 week 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.
upvoted 4 times
...
rdwn_akml
7 months, 3 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 2 times
...
kay1101
8 months 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 3 times
...
MANANDAVEY
8 months, 1 week 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
...
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 ...