Power Query of Excel 13
Power Query of Excel 13
Excel Workbooks:
You can import data from multiple sheets within an Excel workbook to centralize your analysis.
Steps:
CSV Files:
CSV files are another common source of data, and Excel can easily import them.
Steps:
Online Data:
Steps:
2. Cleaning Data
Remove Duplicates:
Steps:
Filter Rows:
Filtering out irrelevant data can help you focus on key information.
Steps:
Replace Values:
Steps:
3. Transform Data
Data transformations are often needed to structure the data for analysis.
Split Columns:
This function is useful for separating values like full names, addresses, or product codes into
different columns.
Steps:
Merge Columns:
When needed, you can combine multiple columns (e.g., first and last names) into one.
Steps:
1. Select Columns:
o Highlight the columns you want to combine.
2. Merge Columns:
o In Power Query, go to Transform > Merge Columns.
o Choose a separator (e.g., space, comma) and provide a new column name.
It's essential to ensure that the data types (e.g., numbers, text, dates) are correct for analysis.
Steps:
4. Unpivot Data
Unpivoting data is useful when dealing with wide-format tables (e.g., months as columns) that
you want to convert into long format.
Steps:
Let's assume you have an Excel workbook with sales data split across different sheets, and you
want to combine them, clean the data by removing duplicates, split product codes, and
transform the dataset.
Transform: Split the product codes into separate columns for category and ID, and then
merge the columns for product name.
Unpivot: Finally, unpivot the data to have one column for the month and another for the
sales amount.
This process will result in a clean and structured dataset ready for analysis or reporting in Excel.
By using Excel's Power Query, you can automate many of these tasks and update your data with
a single click when new data is available.