Professional Documents
Culture Documents
Data Transform Practice Instructions
Data Transform Practice Instructions
Practice II
1. Load “US Pop…” from “Transform Census.xlsx”
2. Promote first row as headers
3. In column “Admitted” remove the non-state entries (empty). This will leave
50 states remaining
4. Remove empty rows from column “1860”
5. Unpivot the years columns (Make a new “Key” column)
6. Rename to “Census Year” and “Population”
7. Change data type for “Census Year”
Practice III
1. Use “CountryPops.xlsx”
2. We have “Population by Country” and we would like to group population by
Continent.
3. We could merge data in Excel but it would be prone to errors and perhaps
the data source should remain as it is since someone else needs it that way.
We can modify the data in Power BI without corrupting the original source.
4. Load all the continents from Excel Data
5. Remove columns “Flag” and “Status”, move “Key” to beginning and add a
“Continent” Column using Add Custom Column
6. Combine Tab --> Append Queries
7. Fix the “Key” column and rename to “ID”
8. Add 2 more data sources in “GrowthRates.xlsx” namely “Population by
Country” and “Population Growth Rate”
9. Fix Date in “Population by Country” query
10. Fix “Population Growth Rate” column with the hyphen issue. And change its
data type to Decimal (if you choose percentage, you need to create a new
column to demonstrate that)
11. Build the relationship model
12. Hide the continents tables from the Visuals View
13. Merge “All Countries” with “Population by Country” into a new Query
14. Then merge “GrowthRates.xlsx” into the newly merged query
15. Remove empty rows