How to Do Sensitivity Analysis in Power BI with AI

Cody Schneider••8 min read

Ever find yourself staring at a report and thinking, "What would happen to our profit if ad spend went up by 15%?" or "How would our revenue change if our conversion rate improved by just 0.5%?" This type of critical what-if thinking is known as sensitivity analysis, and it's essential for making smart business decisions. This article will show you exactly how to perform sensitivity analysis inside Power BI using its built-in interactive tools, turning static reports into dynamic planning dashboards.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

What Exactly Is Sensitivity Analysis (and Why Does It Matter)?

At its core, sensitivity analysis is the process of changing the values of independent variables to see how it affects a dependent variable. In simpler terms, it's about tweaking your main business drivers - like ad spend, raw material costs, or website conversion rates - to see the ripple effect on your key outcomes, like profit, revenue, or customer lifetime value.

This isn't just an academic exercise for finance teams. For marketers, sales managers, and founders, sensitivity analysis is a strategic superpower. It helps you:

  • Make Smarter Decisions: Instead of guessing, you can quantify the potential impact of your choices. Is it worth investing more in a new ad campaign? You can model the outcome.
  • Identify Major Risks & Opportunities: Quickly discover which factors have the biggest influence on your bottom line. You might find that a small change in shipping costs has a much larger impact than a big change in your marketing budget.
  • Set Realistic Goals: Understand what it will take to hit your targets. A model can show you that to increase revenue by 20%, you need to improve your close rate from 25% to 28%.
  • Answer Questions Proactively: Next time someone in a meeting asks, "What happens if we increase our price by $5?", you can slide a toggle and give them the answer in real-time, instead of saying, "Let me get back to you."

Traditionally, this was a tedious and messy process reserved for complex Excel spreadsheets. But with Power BI's interactive AI-powered features, you can build this capability directly into your analytics dashboards.

Easiest Method: The "What-If" Parameter

The simplest and most intuitive way to get started with sensitivity analysis in Power BI is by using the What-If Parameter. This feature automatically generates a new table and an interactive slider that you can use to dynamically feed different values into your calculations.

Let's walk through a common business scenario: analyzing how changes in advertising spend affect your overall profitability.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Step 1: Set Up Your Base Measures

Before you can test different scenarios, you need a solid baseline. Make sure you have fundamental measures set up in your data model using DAX (Data Analysis Expressions). For this example, let's assume we have a simple model with sales and costs data, and we create these three simple measures:

Total Revenue: Your overall income from sales.

Total Revenue = SUM(Sales[Revenue Amount])

Initial Ad Spend: The actual amount you've spent on advertising.

Initial Ad Spend = SUM(MarketingCosts[Spend])

Total Profit: A simple calculation of revenue minus your advertising costs (we'll ignore other costs for this simple example).

Base Profit = [Total Revenue] - [Initial Ad Spend]

Step 2: Create a "What-If" Parameter

Now, let's create the interactive component. This parameter will allow us to specify a percentage change in our ad spend and see the impact.

  1. On the Power BI Desktop ribbon, go to the Modeling tab.
  2. Click on New Parameter and select Numeric range.
  3. The parameters dialog box will pop up. Configure it like this:
  4. Click OK.

Power BI has now created a new, small separate table for you named Ad Spend % Change with two components: a column of generated values and a measure that captures the value selected from the slicer. It’s important to note this slicer is a disconnected table, meaning that by itself, it is not actually connected to anything else in our data model. This gives us much greater flexibility on how to make it work in practice.

Step 3: Connect the Parameter to Your Measures

To put this new table to use, we must work the newly generated measure named 'Ad Spend % Change'[Ad Spend % Change Value] into our previous DAX measure.

We need a new “Projected Profit” measure that incorporates the slicer's value. In the formula bar, create a new measure:

Projected Profit = [Base Profit] - ([Initial Ad Spend] * 'Ad Spend % Change'[Ad Spend % Change Value])

Let's break that down:

  • It starts with our original [Base Profit].
  • Then, it calculates the additional cost or savings by multiplying our [Initial Ad Spend] by the selected percentage from the slicer ('Ad Spend % Change'[Ad Spend % Change Value]).
  • Finally, it subtracts this adjustment from the base profit to give us a projection.
GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Step 4: Visualize Your Results

Now for the satisfying part. Create a report page with the following visuals:

  • The slicer for "Ad Spend % Change" that Power BI created for you.
  • A Card visual displaying the [Base Profit] measure.
  • A Card visual next to it, displaying your new [Projected Profit] measure.
  • A Line and clustered column chart. Put Date[Month] on the x-axis, [Base Profit] as a column, and [Projected Profit] as a line value.

Now, when you drag the slicer, you'll see all the visuals update instantly. Sliding it to 0.20 will show you what your profit would look like with a 20% increase in ad spend. Sliding it to -0.10 shows you a 10% decrease. You've just built an interactive scenario planning tool.

Going Deeper: Analyzing Multiple Variables at Once

Business is rarely so simple that only one variable changes at a time. The real power comes from evaluating multiple inputs. For instance, what if your ad spend goes up, but you also expect your average order value (AOV) to increase as a result?

You can model this by simply adding another “What-if” parameter:

  1. Follow the same steps as above to create a second parameter. Call it "AOV % Uplift," with a range of 0 to 0.5 (representing a 0% to 50% uplift).
  2. Create a new measure that incorporates both parameters. This DAX formula can start to look more complex, but the logic is straightforward.
Multi-Scenario Profit = 
VAR ProjectedADSpend = [Initial Ad Spend] * (1 + 'Ad Spend % Change'[Ad Spend % Change Value])
VAR ProjectedRevenue = [Total Revenue] * 'AOV % Uplift'[AOV % Uplift Value]
RETURN
    ProjectedRevenue - (ProjectedADSpend)
  1. Use two slicers on your report page - one for ad spend and one for AOV. You can now adjust both simultaneously to explore different combined scenarios.

A matrix visual is incredibly powerful here. Put "Ad Spend % Change" on the rows, "AOV % Uplift" on the columns, and your [Multi-Scenario Profit] in the values. Now you have a table showing you an entire range of potential outcomes based on the interplay of both variables.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Leveraging AI Visuals for Root-Cause Analysis

But how do you know which variables you should be testing? In a complex business, dozens of factors might impact your profit. This is where Power BI's built-in AI visuals can help you find your most sensitive drivers before you even build parameters.

The Decomposition Tree is perfect for this. It's an AI visualization that automates root-cause analysis by helping you break down a metric to understand its key contributors.

Using the Decomposition Tree to Guide Your Analysis

  1. Add a Decomposition Tree visual to your report.
  2. In the fields pane, drag your main outcome metric, like Total Profit, to the Analyze field.
  3. Now, load up the Explain by field with all the dimensions you think might influence profit: Campaign Name, Region, Product Category, Sales Rep, etc.
  4. The visual now becomes an interactive exploration tool. Click the plus sign (+) next to your Total Profit bar, and Power BI's AI will suggest the variable that has the highest or lowest effect. You can click through different branches of the tree, letting the data guide you to the areas with the most significant impact.

By using the decomposition tree, you might discover that a single campaign or a specific product line is responsible for a huge portion of variance in your profits. Armed with that knowledge, you know exactly which variables are worthy of a detailed "What-If" analysis. It allows you to focus your efforts where they matter most, rather than testing variables that have little impact.

Final Thoughts

Turning your raw data into a forward-looking decision-making tool is no longer a difficult process confined to spreadsheets. By combining simple DAX measures with Power BI's intuitive What-If parameters and AI visuals like the Decomposition Tree, you can build powerful, interactive sensitivity analyses that empower your entire team to ask better questions and make data-driven plans.

While building these scenarios in Power BI is a massive improvement over old manual methods, setting up the right measures, parameters, and visuals does take some effort. At Graphed, we aim to eliminate that setup entirely by using AI to handle the process for you. Instead of navigating menus to build parameters, you could simply ask your data a question like, "Show me how our sales pipeline would change if the deal close rate for rep A improves by 5%," and our platform instantly builds the interactive analysis for you. We believe getting insights should be a fast, conversational experience, giving you back time to focus on strategy instead of struggling with report setup.

Related Articles