Learn how to build a professional-grade sensitivity analysis engine in Power BI using disconnected parameter tables, TREATAS, and virtual relationships. This expert-level lesson walks you through modeling simultaneous price, cost, and volume assumptions across product categories with zero physical relationship clutter in your data model.

You're in a planning meeting. Someone asks: "What happens to our gross margin if raw material costs increase 15%, we raise prices by 8%, and volume drops 5%?" You've got a finished Power BI report open in front of you. Right now, the only honest answer you can give is "I'll get back to you." That's the gap we're going to close.
Scenario modeling — specifically the kind where multiple independent assumptions interact simultaneously — is one of the most requested capabilities in executive dashboards and financial planning tools. The naive approach is to build multiple measure branches, one for each scenario, and hard-code the assumptions. That falls apart the moment a stakeholder wants to tweak a number. The sophisticated approach involves disconnected parameter tables: lookup tables that have no physical relationship to your fact data, controlled entirely by slicers, whose values are injected into your DAX engine via TREATAS to create virtual filter relationships on demand. This pattern is both elegant and genuinely useful.
By the end of this lesson, you'll have built a complete, production-grade sensitivity analysis engine inside Power BI. You'll understand not just the mechanics of TREATAS and virtual relationships but why the DAX evaluation engine treats them the way it does, and you'll be equipped to extend the pattern to any multi-variable scenario your organization throws at you.
What you'll learn:
TREATAS creates virtual filter context without physical model relationshipsSELECTEDVALUE and SWITCHThis lesson assumes you're comfortable with intermediate-to-advanced DAX. Specifically, you should understand:
CALCULATE modifies it — if you need a refresher, work through Master DAX CALCULATE and Filter Context in Power BI before continuingSUMX and iterator patterns — covered in DAX Iterators Explained: How SUMX, AVERAGEX, and MAXX Evaluate Row by Row to Solve Problems SUM CannotSELECTEDVALUE and how slicers produce filter contextYou should also have Power BI Desktop installed and be comfortable creating tables via Enter Data or by writing DAX table expressions.
Before we write a single line of DAX, let's understand the architectural decision. When you need a user-controllable parameter — say, a price multiplier — you have three options:
Option 1: What-If Parameter (built-in). Power BI's built-in What-If Parameter generates a single-column table and a measure that reads the selected value. It works well for one variable, but it doesn't scale cleanly to multi-variable models where assumptions interact across categories.
Option 2: Hardcoded measure branches. You write [Revenue - Base], [Revenue - Bull Case], [Revenue - Bear Case]. This is brittle, unscalable, and forces you to rebuild the report every time assumptions change.
Option 3: Disconnected parameter tables with TREATAS. You create lookup tables — one per assumption axis — that have no physical relationship in your model. Users filter these tables via slicers. Your measures read those filter states and apply them as virtual filters over your fact data via TREATAS. This is the professional approach.
The key insight is this: disconnected tables give you user input without touching your data model's integrity. Your fact table's relationships remain clean. No relationship arrows connect to these parameter tables in the diagram view. Yet your measures can read their selected values and use them to transform results as if a relationship existed.
Key insight
TREATAS doesn't create a persistent relationship. It instructs the DAX engine to treat the values from one table expression as if they were a filter applied to a column in another table, for the duration of a single measure evaluation. This is fundamentally different from USERELATIONSHIP, which activates a physical (but inactive) relationship.
Let's establish the scenario we'll work with throughout this lesson. You're building a scenario model for Meridian Consumer Goods, a mid-size manufacturer with these tables:
Sales — fact table with ProductKey, DateKey, Units, UnitPrice, UnitCostProducts — dimension with ProductKey, Category, ProductNameCalendar — date dimension with DateKey, Year, Month, QuarterThe relationships are standard star schema: Sales to Products and Sales to Calendar, both many-to-one.
Your base measures look like this:
Base Revenue =
SUMX(
Sales,
Sales[Units] * Sales[UnitPrice]
)
Base COGS =
SUMX(
Sales,
Sales[Units] * Sales[UnitCost]
)
Base Gross Margin =
[Base Revenue] - [Base COGS]
Base Gross Margin % =
DIVIDE([Base Gross Margin], [Base Revenue])
These are your actuals. Now we build the scenario layer on top.
We need three independent parameter tables: one for price adjustment, one for cost adjustment, and one for volume adjustment. Each table represents a range of multipliers the user can select via a slicer.
In Power BI Desktop, go to Home > Enter Data and create a table called PriceScenario with these columns: PriceLabel (text) and PriceMultiplier (decimal number).
| PriceLabel | PriceMultiplier |
|---|---|
| -15% Price Decrease | 0.85 |
| -10% Price Decrease | 0.90 |
| -5% Price Decrease | 0.95 |
| Base (No Change) | 1.00 |
| +5% Price Increase | 1.05 |
| +8% Price Increase | 1.08 |
| +10% Price Increase | 1.10 |
| +15% Price Increase | 1.15 |
Do the same for CostScenario:
| CostLabel | CostMultiplier |
|---|---|
| -20% Cost Reduction | 0.80 |
| -10% Cost Reduction | 0.90 |
| -5% Cost Reduction | 0.95 |
| Base (No Change) | 1.00 |
| +5% Cost Increase | 1.05 |
| +10% Cost Increase | 1.10 |
| +15% Cost Increase | 1.15 |
| +20% Cost Increase | 1.20 |
And VolumeScenario:
| VolumeLabel | VolumeMultiplier |
|---|---|
| -20% Volume Drop | 0.80 |
| -10% Volume Drop | 0.90 |
| -5% Volume Drop | 0.95 |
| Base (No Change) | 1.00 |
| +5% Volume Growth | 1.05 |
| +10% Volume Growth | 1.10 |
| +20% Volume Growth | 1.20 |
Critically: do not create any relationships between these tables and your fact or dimension tables. They should appear as isolated islands in the model diagram. This is intentional.
Warning
If you accidentally connect a scenario table to your fact data with a physical relationship, TREATAS behavior can become unpredictable in some contexts. Scenario tables must stay disconnected. Add them to the model, verify no auto-detected relationships were created, and move on.
Now add slicers to a report page — one for each scenario table. Use PriceScenario[PriceLabel], CostScenario[CostLabel], and VolumeScenario[VolumeLabel] as your slicer fields.
Before we bring in TREATAS, let's just confirm we can read the user's selection:
Selected Price Multiplier =
SELECTEDVALUE(
PriceScenario[PriceMultiplier],
1 -- default to 1.00 if nothing selected
)
Selected Cost Multiplier =
SELECTEDVALUE(
CostScenario[CostMultiplier],
1
)
Selected Volume Multiplier =
SELECTEDVALUE(
VolumeScenario[VolumeMultiplier],
1
)
Put these in a card visual. When you select "+8% Price Increase" in the price slicer, the card should show 1.08. If nothing is selected, it shows 1.00. The default value in SELECTEDVALUE is your safety net — it ensures your model doesn't return blank when users haven't made a selection.
This is deceptively simple but conceptually important: the slicer on PriceScenario creates filter context on that disconnected table, and SELECTEDVALUE reads the numeric value from within that filter context. No TREATAS needed yet — this part is pure slicer mechanics.
The simplest version of scenario modeling doesn't need TREATAS at all. If you just want to adjust totals by a multiplier:
Scenario Revenue (Simple) =
VAR PriceMult = SELECTEDVALUE(PriceScenario[PriceMultiplier], 1)
VAR VolumeMult = SELECTEDVALUE(VolumeScenario[VolumeMultiplier], 1)
RETURN
SUMX(
Sales,
Sales[Units] * VolumeMult * Sales[UnitPrice] * PriceMult
)
Scenario COGS (Simple) =
VAR CostMult = SELECTEDVALUE(CostScenario[CostMultiplier], 1)
VAR VolumeMult = SELECTEDVALUE(VolumeScenario[VolumeMultiplier], 1)
RETURN
SUMX(
Sales,
Sales[Units] * VolumeMult * Sales[UnitCost] * CostMult
)
Scenario Gross Margin =
[Scenario Revenue (Simple)] - [Scenario COGS (Simple)]
Scenario Gross Margin % =
DIVIDE([Scenario Gross Margin], [Scenario Revenue (Simple)])
This works, and for many use cases it's entirely sufficient. The multipliers from the slicers get captured in variables, then applied row by row in SUMX iterations over the fact table.
Tip
Always capture slicer values in VAR declarations at the top of your measure rather than calling SELECTEDVALUE multiple times inline. This isn't just cleaner — it ensures the slicer value is evaluated in the outer filter context before you enter any inner contexts created by iterators. For more patterns with variables, see DAX Variables in Practice: Using VAR and RETURN to Simplify Complex Measures.
But notice what this approach can't do: it can't apply different multipliers to different subsets of your data. What if price increases apply only to the "Premium" category? What if volume changes affect some product lines differently? That's where TREATAS becomes essential.
TREATAS has the following signature:
TREATAS(<table_expression>, <column1>, [<column2>], ...)
It takes the values from <table_expression> and applies them as a filter on the specified columns, as if those columns were in a relationship with the source of the values. The result is a table that can be passed as a filter argument to CALCULATE.
Here's the fundamental pattern:
CALCULATE(
[Some Measure],
TREATAS(
VALUES(SomeParameterTable[SomeColumn]),
FactTable[MatchingColumn]
)
)
The VALUES(SomeParameterTable[SomeColumn]) returns the currently visible values in the parameter table — i.e., whatever the user selected in the slicer. TREATAS then tells the DAX engine: "Apply those values as if they were a filter on FactTable[MatchingColumn]."
Let's make this concrete with a category-specific scenario model.
Suppose we want to model different price changes by product category. We create a more sophisticated parameter table called CategoryPriceScenario:
| Category | ScenarioName | PriceMultiplier |
|---|---|---|
| Premium | Aggressive Pricing | 1.12 |
| Premium | Moderate Pricing | 1.06 |
| Premium | Base | 1.00 |
| Standard | Aggressive Pricing | 1.08 |
| Standard | Moderate Pricing | 1.04 |
| Standard | Base | 1.00 |
| Budget | Aggressive Pricing | 1.03 |
| Budget | Moderate Pricing | 1.01 |
| Budget | Base | 1.00 |
Notice that Category values in this table match the Category values in your Products dimension — but there's no physical relationship. Now we can use TREATAS to make the DAX engine behave as if there were:
Scenario Revenue (Category-Aware) =
VAR VolumeMult = SELECTEDVALUE(VolumeScenario[VolumeMultiplier], 1)
VAR ScenarioRows =
SUMMARIZE(
CategoryPriceScenario,
CategoryPriceScenario[Category],
CategoryPriceScenario[PriceMultiplier]
)
RETURN
SUMX(
ScenarioRows,
VAR ThisCategory = CategoryPriceScenario[Category]
VAR ThisPriceMult = CategoryPriceScenario[PriceMultiplier]
VAR CategoryRevenue =
CALCULATE(
SUMX(
Sales,
Sales[Units] * VolumeMult * Sales[UnitPrice] * ThisPriceMult
),
TREATAS(
{ThisCategory},
Products[Category]
)
)
RETURN
CategoryRevenue
)
This is getting into real complexity. Let's break down what's happening:
SUMMARIZE over CategoryPriceScenario gives us the rows visible under current slicer selection (filtering by ScenarioName)CALCULATE with a TREATAS filter that applies ThisCategory as a filter on Products[Category]SUMX accumulates across all categoriesWarning
This measure requires that the slicer on CategoryPriceScenario filters by ScenarioName, not by Category. If users can multi-select multiple scenario names, SUMMARIZE will return multiple multipliers per category, and results become meaningless. Use a single-select slicer here, or add a measure guard with HASONEVALUE(CategoryPriceScenario[ScenarioName]).
Understanding why TREATAS works the way it does will save you hours of debugging.
When you write:
CALCULATE(
[Base Revenue],
TREATAS(VALUES(SomeTable[SomeColumn]), Facts[TargetColumn])
)
The DAX engine does the following:
VALUES(SomeTable[SomeColumn]) in the current filter context, returning a single-column table of visible valuesFacts[TargetColumn]CALCULATECALCULATE's inner context, Facts[TargetColumn] is now filtered to exactly the values that came from the parameter tableThe critical word is "reinterprets." TREATAS does not join tables. It does not look up values. It doesn't care whether the values in the parameter table actually exist in the target column. It simply says: "this list of values is now a filter on that column." If the parameter table contains "NonexistentCategory", the TREATAS filter will apply it, find no matching rows, and return blank or zero — no error.
This is actually useful: you can use TREATAS with synthetic parameter values (like numeric adjustment percentages that don't exist in the fact table) to pass scalars into aggregation contexts in clever ways.
Here's a subtler pattern that demonstrates TREATAS for injecting a numeric parameter as a "filter" to influence iteration:
Scenario Revenue (TREATAS Method) =
VAR PriceTable =
SELECTCOLUMNS(
PriceScenario,
"PriceMultiplier", PriceScenario[PriceMultiplier]
)
VAR SelectedMult = SELECTEDVALUE(PriceScenario[PriceMultiplier], 1)
RETURN
SUMX(
Sales,
Sales[Units] * Sales[UnitPrice] * SelectedMult
)
In this form, TREATAS isn't strictly necessary because the multiplier is scalar. But when the mapping is non-scalar — when different rows need different multipliers — TREATAS is the bridge. For more context on how TREATAS fits into the broader family of DAX lookup and relationship functions, see DAX Lookup Functions in Practice: RELATED, LOOKUPVALUE, and TREATAS Explained.
Now we compose everything. The final architecture has:
Here's the full scenario revenue measure using all three variables simultaneously, with TREATAS for category-aware price adjustments:
Full Scenario Revenue =
VAR VolumeMult = SELECTEDVALUE(VolumeScenario[VolumeMultiplier], 1)
-- Read what scenario name is selected (single select enforced on slicer)
VAR SelectedScenario = SELECTEDVALUE(CategoryPriceScenario[ScenarioName], "Base")
-- Get the price multiplier rows for the selected scenario
VAR ScenarioPriceMap =
CALCULATETABLE(
SUMMARIZE(
CategoryPriceScenario,
CategoryPriceScenario[Category],
CategoryPriceScenario[PriceMultiplier]
),
CategoryPriceScenario[ScenarioName] = SelectedScenario
)
RETURN
SUMX(
ScenarioPriceMap,
VAR ThisCat = CategoryPriceScenario[Category]
VAR ThisPriceMult = CategoryPriceScenario[PriceMultiplier]
RETURN
CALCULATE(
SUMX(
Sales,
Sales[Units] * VolumeMult * Sales[UnitPrice] * ThisPriceMult
),
TREATAS(
ROW("Category", ThisCat),
Products[Category]
)
)
)
Note
The ROW("Category", ThisCat) syntax creates a single-row, single-column table on the fly from a scalar variable. This is a concise way to pass a single value to TREATAS without building an intermediate variable. The column name in ROW is irrelevant — TREATAS only cares about the data values, not the column name in the source table.
Now the scenario COGS with cost multiplier:
Full Scenario COGS =
VAR VolumeMult = SELECTEDVALUE(VolumeScenario[VolumeMultiplier], 1)
VAR CostMult = SELECTEDVALUE(CostScenario[CostMultiplier], 1)
RETURN
SUMX(
Sales,
Sales[Units] * VolumeMult * Sales[UnitCost] * CostMult
)
Gross margin and delta measures:
Full Scenario Gross Margin =
[Full Scenario Revenue] - [Full Scenario COGS]
Full Scenario Gross Margin % =
DIVIDE([Full Scenario Gross Margin], [Full Scenario Revenue])
Revenue Delta =
[Full Scenario Revenue] - [Base Revenue]
Gross Margin Delta =
[Full Scenario Gross Margin] - [Base Gross Margin]
Gross Margin % Delta =
[Full Scenario Gross Margin %] - [Base Gross Margin %]
The delta measures are what make this model genuinely useful in a planning meeting. Executives don't want to mentally subtract two numbers — they want to see impact directly.
The real power of this architecture shows up when you use a Matrix visual to generate a sensitivity grid. This is the classic "table of outcomes" you see in financial models.
The trick: put PriceScenario[PriceLabel] on the matrix rows and CostScenario[CostLabel] on the columns. Put [Full Scenario Gross Margin %] as the value. Volume can be controlled by the slicer on the page.
Each cell in the matrix then shows the gross margin percentage for a specific combination of price and cost assumption, at whatever volume the slicer selects. Because each cell has its own filter context (from the matrix headers), and because your measures read the multipliers from those filter contexts, the grid populates automatically with no extra DAX.
This is the moment the architecture pays off. You didn't write 64 separate measures. You wrote one measure that adapts to whatever filter context the visual creates.
Key insight
The matrix visual is not just a formatting choice here — it's doing real work. Each cell generates its own filter context, intersecting the row header's filter on PriceScenario with the column header's filter on CostScenario. Your measure then evaluates independently in each of those contexts. This is filter context propagation at scale, doing the heavy lifting your DAX would otherwise have to do explicitly.
To add conditional formatting to the matrix — make high-margin cells green, low-margin cells red — go to the visual's Format pane, find Cell elements under the Values section, and enable Background color. Set it to field value using [Full Scenario Gross Margin %] with a diverging color scale. No DAX needed for the formatting itself, but make sure your measure returns a decimal so the percentage scale makes sense to the conditional formatting engine.
For presentations, it's often better to have named scenarios (Bull/Base/Bear) rather than raw slicers. We can support both simultaneously using a scenario switcher table:
-- Named Scenario Table (Enter Data)
-- ScenarioName | PriceMult | CostMult | VolumeMult
-- Bear Case | 0.95 | 1.12 | 0.90
-- Base Case | 1.00 | 1.00 | 1.00
-- Bull Case | 1.08 | 0.95 | 1.10
-- Management | 1.06 | 1.03 | 1.05
Create a table called NamedScenarios with these four columns. Keep it disconnected.
Now build a composite measure that reads from this table when a named scenario is selected, but falls back to the individual slicers when it's not:
Effective Price Multiplier =
VAR NamedPriceMult =
SELECTEDVALUE(NamedScenarios[PriceMult])
VAR SlicerPriceMult =
SELECTEDVALUE(PriceScenario[PriceMultiplier], 1)
RETURN
IF(
NOT ISBLANK(NamedPriceMult),
NamedPriceMult,
SlicerPriceMult
)
Effective Cost Multiplier =
VAR NamedCostMult =
SELECTEDVALUE(NamedScenarios[CostMult])
VAR SlicerCostMult =
SELECTEDVALUE(CostScenario[CostMultiplier], 1)
RETURN
IF(
NOT ISBLANK(NamedCostMult),
NamedCostMult,
SlicerCostMult
)
Effective Volume Multiplier =
VAR NamedVolumeMult =
SELECTEDVALUE(NamedScenarios[VolumeMult])
VAR SlicerVolumeMult =
SELECTEDVALUE(VolumeScenario[VolumeMultiplier], 1)
RETURN
IF(
NOT ISBLANK(NamedVolumeMult),
NamedVolumeMult,
SlicerVolumeMult
)
Then update your scenario measures to use these "Effective" multiplier measures rather than calling SELECTEDVALUE directly:
Full Scenario Revenue v2 =
VAR PriceMult = [Effective Price Multiplier]
VAR VolumeMult = [Effective Volume Multiplier]
RETURN
SUMX(
Sales,
Sales[Units] * VolumeMult * Sales[UnitPrice] * PriceMult
)
Now users can either pick a named scenario from a dropdown slicer, or override individual assumptions with the granular slicers. When a named scenario is active, SELECTEDVALUE(NamedScenarios[PriceMult]) returns a non-blank value that takes precedence. When no named scenario is selected, the individual slicers drive the calculation.
This pattern is explored in depth in the Writeback Patterns in DAX: Simulating What-If Scenarios with Parameter Tables and Disconnected Slicers article, which covers adjacent techniques worth combining with what you've built here.
A common extension of this pattern is to model scenarios that vary by time period — for example, "assume a 10% price increase starting in Q3." This requires TREATAS applied against the calendar dimension.
Create a table called TimeBasedAssumptions:
| PeriodStart | PriceMultiplier | CostMultiplier |
|---|---|---|
| 2024-01 | 1.00 | 1.00 |
| 2024-02 | 1.00 | 1.00 |
| 2024-03 | 1.03 | 1.00 |
| 2024-04 | 1.03 | 1.02 |
| ... | ... | ... |
Now build a measure that iterates over time periods and applies different multipliers for each:
Time-Phased Scenario Revenue =
SUMX(
TimeBasedAssumptions,
VAR ThisPeriod = TimeBasedAssumptions[PeriodStart]
VAR ThisPriceMult = TimeBasedAssumptions[PriceMultiplier]
RETURN
CALCULATE(
SUMX(
Sales,
Sales[Units] * Sales[UnitPrice] * ThisPriceMult
),
TREATAS(
ROW("YearMonth", ThisPeriod),
Calendar[YearMonth] -- assumes Calendar has a YearMonth column in YYYY-MM format
)
)
)
This is TREATAS doing genuine relationship work: mapping period identifiers from your assumption table to your calendar dimension, restricting each inner CALCULATE to exactly one month's worth of data with a period-specific multiplier.
Tip
When building time-phased scenarios, make sure the data type of TimeBasedAssumptions[PeriodStart] matches exactly the data type of Calendar[YearMonth]. A mismatch — even text formatted differently — will cause TREATAS to silently filter everything out, returning blanks with no error message. If your results look suspiciously like zero, data type mismatch is the first thing to check.
For combining this with proper time intelligence, see Time Intelligence in DAX: YTD, MTD, Previous Period, and Rolling Averages — many of the same CALCULATE patterns apply.
Scenario measures that use TREATAS and iterate over scenario tables can be computationally expensive. Here's what you need to know to keep them fast.
When you use SUMX over a scenario table inside a measure, every row in that outer iterator triggers an independent CALCULATE call with its own filter context. If your scenario table has 50 rows and your fact table has 10 million rows, each evaluation potentially scans a tenth of the fact table per scenario row. This adds up.
Optimization 1: Pre-filter the scenario table. Use CALCULATETABLE to get only the rows you need before iterating:
Full Scenario Revenue (Optimized) =
VAR FilteredScenario =
CALCULATETABLE(
CategoryPriceScenario,
CategoryPriceScenario[ScenarioName] = SELECTEDVALUE(CategoryPriceScenario[ScenarioName], "Base")
)
RETURN
SUMX(
FilteredScenario,
...
)
Optimization 2: Leverage aggregations. If your model has aggregation tables or DirectQuery aggregations set up, make sure your scenario measures' inner CALCULATE calls are structured so the query optimizer can hit the aggregation. Iterator-heavy measures sometimes bypass aggregations because the engine can't prove the aggregate applies to the filtered subset.
Optimization 3: Avoid nested TREATAS. Each TREATAS inside a CALCULATE inside an iterator is relatively expensive because it generates a virtual filter that the storage engine has to evaluate independently. If you're applying multiple TREATAS filters simultaneously, combine them in a single CALCULATE call rather than nesting:
-- Less efficient: nested CALCULATE
CALCULATE(
CALCULATE(
[Base Revenue],
TREATAS({ThisCategory}, Products[Category])
),
TREATAS({ThisPeriod}, Calendar[YearMonth])
)
-- More efficient: single CALCULATE with multiple filters
CALCULATE(
[Base Revenue],
TREATAS(ROW("Category", ThisCategory), Products[Category]),
TREATAS(ROW("YearMonth", ThisPeriod), Calendar[YearMonth])
)
For deep investigation of DAX performance, Performance Tuning DAX: Optimize Slow Measures with DAX Studio will show you how to read server timings and identify whether your scenario measures are hitting the formula engine or the storage engine.
Apply what you've learned by building the following extension to the Meridian Consumer Goods model.
Exercise: Build a Break-Even Scenario Finder
Your task is to build a measure that answers: "Given the user's selected cost multiplier and volume multiplier, what price multiplier is needed to maintain a gross margin percentage of at least 35%?"
This requires working backwards from a margin target. Here are the hints:
(BasePrice * P - BaseCost * CostMult) / (BasePrice * P)P = (BaseCost * CostMult) / (BasePrice * (1 - 0.35))Write this as a DAX measure called Break-Even Price Multiplier that:
CostMultiplier from your CostScenario slicerSales tableBonus: Add a measure called Scenario vs Break-Even Gap that compares the user's selected price multiplier to the break-even multiplier, so they can instantly see whether the selected scenario clears the margin hurdle.
This exercise synthesizes all the concepts from this lesson: SELECTEDVALUE for reading disconnected table selections, SUMX-based aggregations for weighted averages, algebraic manipulation of business logic in DAX, and DIVIDE for safe division.
Symptom: Your scenario measure works when no slicer selection is made (defaults to 1.0 multiplier) but returns blank or zero when a user selects a scenario.
Cause: The scenario table was accidentally connected to the fact table or a dimension with a relationship that filters in the wrong direction.
Fix: Open Model view, verify there are no relationship lines connecting your scenario tables to anything else. Delete any auto-created relationships.
Symptom: CALCULATE([Base Revenue], TREATAS({ThisCategory}, Products[Category])) returns zero even though there's sales data for that category.
Cause: Data type mismatch. The value being passed to TREATAS doesn't match the data type of Products[Category]. Or the value literally doesn't exist in the fact data after the relationship filter.
Fix: Check that the category strings match exactly (case matters for some data sources). Use DISTINCT(Products[Category]) in a table visual to verify the exact values, then confirm your scenario table uses the same strings.
Symptom: You put price labels on rows and cost labels on columns, but every cell shows the same number.
Cause: Your measure uses SELECTEDVALUE on the scenario table, but SELECTEDVALUE requires exactly one value to be visible. In a matrix, each cell creates a filter context that includes both the row and column header values — if the slicer on the page also has a selection, or if your DAX doesn't correctly pick up the matrix's filter context, SELECTEDVALUE might be evaluated in a broader context.
Fix: Make sure no page-level filter is overriding the matrix filter context. Use HASONEVALUE to debug: add a test measure = HASONEVALUE(PriceScenario[PriceMultiplier]) and put it in the matrix. If it returns FALSE, the matrix isn't creating single-value filter contexts and you need to investigate whether the slicer and matrix interact correctly (usually a "Select all" being active on the slicer).
Symptom: When both a named scenario and an individual assumption slicer are selected, the measure produces unexpected results.
Cause: The fallback logic in your Effective Multiplier measures uses IF(NOT ISBLANK(NamedPriceMult), NamedPriceMult, SlicerPriceMult). If the user has both a named scenario slicer selected and an individual slicer selected, the named scenario always wins — which may not be the intended UX.
Fix: Add a visual-level instruction or tooltip: "Selecting a named scenario overrides individual slicers." Alternatively, add a bookmark group that resets individual slicers when a named scenario is selected, using Power BI's bookmark + button pattern. This is a UX decision more than a DAX fix.
Symptom: The report page with scenario measures takes 15+ seconds to render, even though base measures are fast.
Cause: Your scenario measures are iterating over the entire fact table inside a SUMX, row by row, with no aggregation pushdown possible. On a 50M-row fact table, this hits the formula engine hard.
Fix: Consider pre-aggregating: add a calculated table (or use an aggregation table in the model) that pre-summarizes Sales to the product-month grain. Your scenario measures can then iterate over the pre-aggregated table instead of the raw fact table, reducing the row count by orders of magnitude. See DAX Virtual Tables in Practice: Using ADDCOLUMNS, SUMMARIZE, and GENERATEALL to Build Complex Aggregations Without Helper Tables for patterns on building efficient aggregation structures.
You've now built a production-ready, multi-variable sensitivity analysis engine in DAX. Let's consolidate what you know:
The core architecture consists of disconnected parameter tables — one per assumption axis — that have no physical relationships in the model. They're controlled by slicers, and your measures read their values using SELECTEDVALUE.
TREATAS is the bridge function that takes values from a disconnected table and applies them as virtual filters on a target column, enabling you to calculate metrics for specific category-time-product intersections without permanent relationships cluttering your model.
The composition pattern — where multiple Effective Multiplier measures aggregate the named scenario selection with individual slicer overrides — gives you the flexibility to support both high-level executive views and detailed analyst exploration from the same report.
The sensitivity matrix harnesses Power BI's Matrix visual's natural filter context generation, allowing one measure to power a full grid of scenario outcomes across two assumption axes simultaneously, with a third controlled by a page slicer.
For next steps, consider these extensions:
Combine this scenario model with a waterfall/bridge chart to show how much of the gross margin change comes from price, how much from cost, and how much from volume — this is covered in DAX Waterfall Chart Measures: Calculating Bridge Components for Variance Analysis Between Periods, Budgets, and Scenarios
Layer in time intelligence so your scenario measures can show projected full-year impacts based on scenario assumptions applied to a partial-year run rate — the Advanced Time Intelligence: Custom Calendars, Fiscal Years, and ISO Weeks article covers the fiscal-year infrastructure you'd need
Integrate with financial reporting structures to present scenario output in P&L format, addressed in Advanced DAX Patterns for Financial Reporting: Mastering P&L, Balance Sheet, and Budget Models
The pattern you've learned here — disconnected tables as user-controlled input, TREATAS as the DAX bridge to business logic — is one of the most versatile in the Power BI toolkit. Once you've built it once, you'll find yourself reaching for it constantly.