Power BI Field vs. What-if Parameters: Switch Fields or Test Scenarios
Use a field parameter to switch a visual's dimension or explicit measure; use a What-if parameter to feed a selected number into a measure. This guide compares their setup, a discount scenario, verification steps, and important limits.
Power BI Field vs. What-if Parameters: Switch Fields or Test Scenarios
Power BI field parameters and What-if parameters both let report readers change a selection, but they change different things. A field parameter switches the column used by a visual, such as Product or Month, or a named explicit measure. A What-if parameter supplies a selected number to a measure so it can calculate a scenario. Neither changes source transactions. The product behavior and Desktop steps below follow Microsoft Learn pages checked on November 20, 2026.
Start with what the reader needs to change
| Reader's goal | Use | What changes |
|---|---|---|
| Switch a field used on a chart axis or in its values | Field parameter | The column or explicit measure used by the visual |
| Change a numeric assumption such as a discount rate | What-if parameter | An input read by a DAX measure |
| Show only some data rows | Slicer or filter | The rows that pass the filter |
| Change a query transformation or source function value | Power Query parameter | A value passed to a query step or source function |
This distinction avoids treating a scenario input as a data filter or expecting an axis switch to change how a metric is calculated.
Illustrative example: view sales by field and assumption
Imagine a report showing sales by product. If a reader wants a monthly trend instead, a field parameter can switch the axis from Product to Month. A separate field parameter can let the reader choose an explicit measure, such as Sales Amount or Units Sold.
If the reader wants to explore how sales would look under a different discount assumption, use a What-if parameter. For example, define values from 0 to 0.50 in steps of 0.05. Power BI creates a measure that returns the selected rate. Another measure can use it to calculate a scenario:
Scenario Sales =
[Sales] * (1 - 'Discount Rate'[Discount Rate Value])This is a calculation example, not an actual discount or an observed sales result. The scenario depends on the assumption and the definition of the referenced measure.
Create and check a field parameter
In Power BI Desktop, select Modeling > New parameter > Fields, choose the columns or explicit measures readers may switch between, and create the parameter. Put a column parameter in the visual's axis field well, or a measure parameter in its values well. Add the parameter to a slicer so readers can choose.
Switch each slicer choice and check that the axis labels or displayed values change as intended. If multiple selections are allowed, confirm that the visual can show multiple measures side by side. When editing the parameter definition directly, keep each entry's three fields—name, field reference, and order—and make the values unique.
Field parameters cannot use implicit measures, the automatic aggregation Power BI creates when a raw column is placed in a visual. Create a named DAX measure first when you need an aggregate. A live connection to a Power BI semantic model or Analysis Services requires adding a local model before creating a field parameter. A field parameter cannot serve as the linked field for a drillthrough or tooltip page. Automatic date/time hierarchies may not be preserved when only a date column is included; add the year, quarter, month, and day fields explicitly if those levels are needed. Selecting no field in the slicer can behave like selecting all fields, not like a “none” option.
Create and check a What-if parameter
In Power BI Desktop, select Modeling > New parameter > Numeric range, then choose the data type, minimum, maximum, increment, and default value. You may add a slicer during creation. Power BI creates a parameter table and a measure that returns the current selection. Write the scenario calculation in a separate DAX measure that refers to that value.
Move the slicer to its minimum, default, and maximum and check that the scenario measure changes in the expected direction and units. What-if parameters support up to 1,000 unique values. Larger ranges are sampled evenly, so do not assume every number can be selected. The feature is intended for measure calculations; using it in dimension calculations can produce incorrect values. Label the actual measure and the assumed scenario separately so a hypothetical result is not mistaken for changed source data.
Choose a field parameter when readers need to change the analysis field; choose a What-if parameter when they need to adjust an assumption for a fixed metric. Use a filter to limit rows. Power Query parameters instead hold reusable values for query transformations or source functions; they are separate from report field and What-if inputs. Microsoft Learn: Power Query parameters
Sources: Microsoft Learn: Use field parameters, Microsoft Learn: Use parameters to visualize variables, Microsoft Learn: Calculation options in Power BI Desktop, Microsoft Learn: Power Query parameters.