Stop 12 · Interactive Reports & StorytellingTopics · 6/9

What-If Parameters

Part of the Power BI Roadmap

In short

"What happens to revenue if we raise prices by 5%?" A what-if parameter gives users a slider and instantly recalculates the report, so leaders can test ideas in the meeting itself.

What-if parameters create a slider and a value measure, so users can test scenarios like 'what if prices rise by 5%' and see the effect on other measures.

The jaadu pushes up one slider on a big retro music equaliser, and a column of small blocks beside it grows taller in response.

Think of it like this

The music system equaliser

On an old music system you slide the bass up and the whole song changes, slide it down and it softens. You're not changing the song, just one setting that affects how everything sounds. A what-if slider changes one assumption, like a price increase, and every measure built on it responds.

Watch it happen

Moving the price change slider

-10%
0
-5%
1
0%
2
slider
+5%
3
+10%
4
+15%
5
+20%
6

1/4GENERATESERIES created these values from -10% to +20%. The default is 0%.

The big ideas

What you need to know

Modeling > New parameter > Numeric range

Set a name, minimum, maximum, increment and default. Power BI builds a table, a value measure and a slider.

It's GENERATESERIES

The parameter is a disconnected table of numbers. The slider filters it, and the value measure reads the choice.

Use it in measures

Multiply or add the value measure into other measures to project the scenario.

State your assumptions

Write on the page what the model assumes, like "volume unchanged", so nobody mistakes a scenario for a forecast.

See it in code

Walk through the code

dax
1Price Change % = GENERATESERIES ( -0.10, 0.20, 0.01 )2 3Price Change % Value =4SELECTEDVALUE ( 'Price Change %'[Price Change %], 0 )5 6Volume Change % = GENERATESERIES ( -0.20, 0.10, 0.01 )7 8Volume Change % Value =9SELECTEDVALUE ( 'Volume Change %'[Volume Change %], 0 )10 11Projected Sales =12[Total Sales]13    * ( 1 + [Price Change % Value] )14    * ( 1 + [Volume Change % Value] )15 16Projected Change =17[Projected Sales] - [Total Sales]

1/5A table of values from -10% to +20% in steps of 1%. Power BI renames its column to Price Change %.

Two what-if sliders, price and volume, feeding one projection. Power BI names the generated column after the parameter.

Save yourself the pain

Common mistakes

Oops

Presenting Projected Sales as a forecast.

Do this instead

It's a scenario based on the assumptions in the sliders. Label it clearly.

Oops

Leaving the slider as a list of 31 values.

Do this instead

Format the slicer as a single value slider and the parameter as a percentage.

Your mission

Price rise planner

~25 min

Quick check

What does a what-if parameter create behind the scenes?

Go deeper

  1. 1Create a price change % parameter from -20 to 20.
  2. 2Build a Projected Revenue measure using the parameter value.
  3. 3Show current and projected revenue side by side.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge