Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Open V 4 . xlsx . The workbook has 3 worksheets: States: for each state the worksheet has the following information: State ID: a unique
Open Vxlsx
The workbook has worksheets:
States: for each state the worksheet has the following
information:
State ID: a unique fivecharacter string to identify each
state
State Name
Industries: it stores four industries with their industry
classification codes unique and names.
Main: it has a wide table about the GDP of each industry in
each state in each year. For example, in figure below the
highlighted cell shows the GDP made by state in
industry Manufacturing
Figure
Task :
Convert data in worksheet "Main" from its wide form to long
form using Power Query. After conversion, the structure of the
long table should be:
Figure
During conversion, please make sure that "StateID" is converted
as textstring such as not as number such as
Change column names in the converted long table as in Figure
Power Query export the long table to a new worksheet in your
workbook. Rename this worksheet as "Tasks
Task :
Open "Tasks Right now, it has four columns as shown in
Figure Add the following two columns:
StateName: use vlookup function to retrieve state names from
worksheet "States" based on StateID.
IndustryName: use vlookup function to retrieve industry names
from worksheet "Industries" based on "IndustryClassification".
Note that for each vlookup function, its fourth parameter needs
to be "False" as the match is an exact match. After task is
finished, worksheet "Tasks has a structure as in Figure :
Figure
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started