Convert WebI If Then Else to Power BI DAX
Procedural conditional branching translated into declarative DAX SWITCH(TRUE(), ...) or IF expressions.
-- Output will appear here automatically
Architecture & Context Transformation:
Evaluating formula...
If cond1 Then val1 [ElseIf cond2 Then val2] [Else val3] - =If [Revenue]>1000 Then "High" ElseIf [Revenue]>500 Then "Medium" Else "Low"
- =If([Country]="US";[Revenue]*1.1;[Revenue])
Revenue =
SWITCH(
TRUE(),
'Sales'[Revenue]>1000, "High",
'Sales'[Revenue]>500, "Medium",
"Low"
) Converted WebI "If...Then...Else" procedural block into idiomatic DAX "SWITCH(TRUE(), ...)".
Enterprise Migration Note: Context Transition in Power BI
When migrating If Then Else from SAP BusinessObjects universes to Power BI, keep in mind that WebI evaluates context operators at the report display layer (block, break, section), whereas Power BI evaluates DAX against a tabular tabular model using row context and filter context.
Wrap filter arguments inside KEEPFILTERS to avoid inadvertently overriding existing dashboard slicers.
Always define calculations as explicit DAX measures rather than calculated columns to maintain optimal VertiPaq compression.
Reference columns using 'TableName'[Column] and measures as [MeasureName] following Microsoft architecture guidelines.