Hello! Welcome back to our course on becoming an FP&A analyst.
In our last lesson, we took the crucial first step into Business Intelligence by learning how to connect Power BI to various data sources, especially the Excel models central to FP&A work. We highlighted the critical choice between "Load" and "Transform Data," ending with the promise to explore the "Transform" path.
Today, we dive headfirst into that path. This lesson focuses on the Power Query Editor, the engine that drives data transformation in Power BI. You will learn how to use Power Query to clean, transform, and merge data from multiple sources into a robust data model. This skill is a cornerstone of modern financial analysis. It's how you move from tedious, manual data cleaning in Excel to building automated, reliable, and refreshable reports—a massive leap in efficiency and analytical power.
1. What is Power Query and Why Does it Matter for FP&A?
Before we jump into the tool, let's understand its purpose. In any finance role, you'll find that raw data from accounting systems, sales databases, or even other departments' spreadsheets is rarely clean or perfectly structured for analysis.
This is where Power Query comes in. It is Microsoft's data connectivity and data preparation technology, designed specifically to handle these challenges. Think of it as an automated workshop for your data.
Power Query - Overview, Illustration, and Other Uses
To understand the problems Power Query solves, let's start with this article from Wall Street Oasis. It frames the tool's importance from a finance professional's perspective.
Please read the sections 'What is a Power Query?' and 'Understanding Power Query'. Focus on the common issues with raw data it addresses and its specific applications for financial analysts.
As the article highlights, Power Query helps you build a reliable audit trail for your data transformations. Unlike manual cleaning in Excel, every step you take in Power Query is recorded and can be automatically re-applied every time your data refreshes. This automation is what makes it so powerful for recurring FP&A tasks like monthly variance analysis or updating a rolling forecast.
2. A Tour of the Power Query Editor
When you click "Transform Data" after connecting to a source, you open the Power Query Editor. Let's get familiar with its main components.
Power BI Tutorial for Beginners
This video from Kevin Stratvert provides an excellent visual tour of the Power Query Editor and demonstrates some fundamental cleaning operations.
Watch the segment from 04:04 to 05:40. Pay close attention to the four key areas he interacts with: The list of Queries on the left. The main Data Preview grid. The Ribbon at the top with transformation options. The Applied Steps pane on the right.
The most important component to understand is the Applied Steps pane. Every action you take—removing a column, changing a data type, filtering a row—is recorded as a step in this list. These steps form a repeatable "recipe" that Power BI will execute on your source data every time you click "Refresh." This is the core principle of data automation in Power BI.
3. Common Data Transformations
Now let's get practical. We'll walk through the most common data cleaning and shaping tasks you'll perform as an analyst.
The video you just watched demonstrated several key transformations:
- Removing Columns: Eliminating data that isn't needed for your analysis.
- Checking and Changing Data Types: Ensuring numbers are treated as numbers, dates as dates, and text as text. This is critical for accurate calculations.
- Promoting Headers: Using the first row of your data as the column headers.
- Replacing Values: Standardizing inconsistent entries (e.g., changing all instances of "U.S." to "United States").
Now, let's explore some more advanced and equally important transformations that are common in financial data preparation.
Power BI for FP&A Professionals
This workshop document from the Association for Financial Professionals (AFP) contains an excellent hands-on exercise. We will use it as a guide for more complex transformations.
Read through the 'Exercise 1.1: Connect to Data Sources' section (pages 21-29 of the PDF). You don't need to download the files or do the exercise yourself right now, but focus on understanding the logic behind these steps: Merging Columns to create a unique key (page 24, steps 4-7). Renaming Columns for clarity (page 25, step 11). Creating a Conditional Column to segment data (e.g., 'Domestic' vs. 'Foreign' market) (page 25, steps 13-16). Creating a Custom Column using a formula to calculate metrics like 'Actual Sales Amount' (page 28, steps 21-22).
These transformation tools allow you to not only clean data but also enrich it by adding new, calculated columns that are essential for your financial analysis.
Test your understanding!
You import a sales report where the 'Region' column contains the following entries: "North America", "north america", "NA", and "N. America". You need to create a chart that groups sales by region. What is the most appropriate Power Query transformation to use, and why is it necessary?
Show answer
The most appropriate transformation is Replace Values (found in the Transform tab or by right-clicking the column header). You would perform this step multiple times to standardize the data, for instance:
- Replace "north america" with "North America".
- Replace "NA" with "North America".
- Replace "N. America" with "North America".
This is necessary because Power BI would otherwise treat each unique spelling as a separate category, leading to an incorrect and fragmented chart. Standardizing the values ensures that all sales from that region are aggregated correctly under a single "North America" heading.
4. Merging Data from Multiple Sources
FP&A rarely relies on a single data file. You'll constantly need to combine data from different sources. For example, you might have sales transactions from your ERP system in one table and the sales budget from an Excel file in another. In Excel, you might use VLOOKUP or INDEX-MATCH for this. In Power Query, we use Merge Queries.
The 'Merge Queries' feature allows you to join two or more tables based on a common column, similar to a join in a SQL database.

Let's revisit the AFP workshop, which demonstrates a classic FP&A scenario: combining detailed daily sales data with high-level monthly budget data.
Power BI for FP&A Professionals
The AFP workshop provides a brilliant example of how to solve a common data granularity problem when merging.
Please review pages 29-32 of the PDF. Focus on these concepts: The Problem: The sales data is daily ('transactional granularity'), but the budget data is monthly. You can't directly join them. The Solution: They create an intermediary table called 'DimMonth' by referencing the calendar table and removing duplicate months. This creates a bridge. The Goal: This new 'DimMonth' table can then be related to both the sales data and the budget data in the data model, allowing you to compare actuals vs. budget in the same visual.
This technique of creating a "bridge" or dimension table is fundamental to building a sound data model. Merging queries in Power Query is the first step in this process. Once the data is cleaned and shaped, you load it into Power BI, where you can formally define the relationships between these tables in the Model View, which we will cover in a later lesson.
Conclusion
Today you've moved beyond simply connecting to data and have learned the foundational techniques for making that data clean, reliable, and analysis-ready. This automated data preparation is a skill that separates modern FP&A professionals and is the true power behind business intelligence.
Key Takeaways:
- Power Query is your automated data preparation workshop, saving you from repetitive manual cleaning tasks in Excel.
- The Applied Steps pane records every transformation, creating a repeatable script that runs automatically on refresh.
- You can perform a wide range of transformations, from basic cleaning (removing columns, changing types) to advanced shaping (creating conditional/custom columns).
- Merge Queries is the Power Query equivalent of
VLOOKUPor a SQLJOIN, allowing you to combine and enrich data from multiple sources. - Creating a robust data model often involves cleaning, transforming, and merging multiple tables into a logical structure.
Preview of the Next Lesson:
We have successfully extracted data, transformed it into a clean and logical structure, and loaded it into our data model. But a model with just raw data isn't very insightful. In our next lesson, we will begin learning DAX (Data Analysis Expressions). DAX is the formula language used in Power BI to create custom calculations, from simple aggregations to complex Key Performance Indicators (KPIs). This is how we will add the "analysis" to Financial Planning & Analysis within our BI reports.