Power Query videos teach you how to clean, transform, and combine data from multiple sources in Excel or Power BI without writing code. These videos turn raw, messy data into structured, analysis-ready tables using a visual interface. You need Microsoft Excel 2016 or later (including Microsoft 365) or Power BI Desktop installed. No programming experience is required, but basic familiarity with spreadsheets helps.
What You'll Need
- Microsoft Excel 2016 or later (including Microsoft 365) OR Power BI Desktop (free download from Microsoft’s website)
- A data source: CSV file, Excel workbook, database, web page, or API endpoint
- Internet connection (to download Power BI Desktop or access online data sources)
- Optional: A second monitor for better visibility while following along with videos
Step-by-Step
- Open Excel or Power BI Desktop. In Excel, go to the Data tab and click Get Data. In Power BI Desktop, click Get Data in the Home tab.
- Select your data source type (e.g., Text/CSV, Excel, Web, SQL Server). Click Connect. If you’re unsure, start with a local CSV or Excel file.
- After selecting the file, a preview window appears. Click Transform Data to open the Power Query Editor. This is where all transformations happen.
- In the Power Query Editor, remove unnecessary columns by right-clicking on column headers and selecting Remove. Keep only fields relevant to your analysis.
- Fix data types: Click the icon under each column header (e.g., ABC, 123, or clock) to change text to numbers, dates, or true/false values. Incorrect types break calculations later.
- Split columns if needed. For example, if a column contains full names like "John Doe", select it, go to the Transform tab, and click Split Column > By Delimiter. Choose space and split into two columns: First Name and Last Name.
- Remove duplicates: Select the column(s) that should be unique, go to the Home tab, and click Remove Rows > Remove Duplicates. This ensures your data isn’t inflated by repeated entries.
- Fill down blank cells. If a category name appears only on the first row of a group and blanks follow (e.g., Region: North, then blank rows below), select the column, go to Transform > Fill > Down. This propagates the value downward.
- Create custom columns for calculated fields. Go to Add Column > Custom Column. Type a formula like [Sales] * 0.1 for a 10% commission. Name the column appropriately.
- Apply changes by clicking Close & Load. This sends your cleaned data back to Excel as a new table or to Power BI as a dataset.
- Test your result: Refresh the query by right-clicking the table in Excel or clicking Refresh in Power BI. Make sure new data imported from the source still transforms correctly.
- Repeat the process with different sources. Try combining two tables using Merge Queries (Join) or appending them with Append Queries (Union). Watch video tutorials that show these steps side-by-side.
Common Mistakes
- Skipping data type changes: Text that looks like numbers (e.g., "123.45") won’t calculate unless explicitly changed to Decimal Number.
- Not refreshing after updating source files: Power Query remembers the original file path. If you rename or move the source file, the query breaks. Always keep source files in a fixed location.
- Applying transformations too early: If you remove columns before fixing data types, you might accidentally delete columns you need later. Always review the full dataset before making irreversible changes.
- Using manual edits instead of steps: Don’t manually delete rows in the editor. Use Remove Rows > Top/Bottom or Filter instead. Manual edits won’t update when the source changes.
- Ignoring error rows: If a column has invalid dates or text in a number column, Power Query shows an error icon. Click the error count to review and handle them—don’t ignore them.
Tips
- Use the Applied Steps pane on the right to see every transformation. Click any step to preview how your data looked before that step. You can delete or reorder steps if you make a mistake.
- Save your queries as templates. In Excel, after creating a working query, go to Data > Queries & Connections, right-click the query, and select Load To. Choose Only Create Connection and uncheck Add to Data Model. Then use it as a reusable source.
- Use the Advanced Editor to view the underlying M code. You don’t need to edit it, but seeing it helps you understand what each step does—especially when copying code from tutorials.
- Bookmark your favorite video tutorials. Look for creators who show real-world examples like sales reports, inventory lists, or survey data—these are more helpful than abstract demos.
- Start with small datasets (under 1,000 rows) when learning. Large files can slow down the editor and make it harder to spot errors.
- Use meaningful names for queries and columns. Instead of "Query1", name it "SalesData_2024". This avoids confusion when you have multiple queries.
Troubleshooting
- If the Transform Data button is grayed out: You likely selected a file that doesn’t support preview (e.g., a folder instead of a file). Go back and select the actual data file.
- If you see "Expression.Error: The key didn't match any rows in the table": This means a Join or Merge operation failed because matching values don’t exist. Check for extra spaces, different capitalization, or mismatched data types in the key columns.
- If your query fails after refreshing: Open the Power Query Editor > View > Advanced Editor. Look for red error messages. Common causes: changed file paths, renamed columns, or missing source files. Re-select the source file if needed.
- If Power Query is slow: Close other Excel workbooks. Disable automatic calculation in Excel (Formulas > Calculation Options > Manual) while working in Power Query.
- If you can’t find a transformation option: Use the search box in the Transform tab. Type "remove", "split", or "date" to find commands quickly.
- If Power BI Desktop won’t open: Ensure your system meets minimum requirements (Windows 10 or later, 4 GB RAM). Reinstall from the official Microsoft site if corrupted.