Part of the Nisaj Montreal BI & Data Engineering Network • 100% Client-Side AST — Zero Code Leaves Your Browser
DAX
DAX Converter
Control Flow • SAP BusinessObjects 4.x Migration

Convert WebI If Then Else to Power BI DAX

Procedural conditional branching translated into declarative DAX SWITCH(TRUE(), ...) or IF expressions.

Target DAX Table:
' '
Instant Samples:
SAP WebI Formula ([Object] syntax)
0 characters Press any key to translate in real-time
Power BI DAX Measure
-- Output will appear here automatically
Syntax Validated Ready for Power BI Desktop & Fabric

Architecture & Context Transformation:

Evaluating formula...

SAP WebI 4.x Syntax Input
Standard Syntax: If cond1 Then val1 [ElseIf cond2 Then val2] [Else val3]
Example Variations:
  • =If [Revenue]>1000 Then "High" ElseIf [Revenue]>500 Then "Medium" Else "Low"
  • =If([Country]="US";[Revenue]*1.1;[Revenue])
Power BI DAX Equivalent Output Measure
Compiled DAX Measure:
Revenue = 
SWITCH(
    TRUE(),
    'Sales'[Revenue]>1000, "High",
    'Sales'[Revenue]>500, "Medium",
    "Low"
)
Context Explanation:

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.

1. Use KEEPFILTERS

Wrap filter arguments inside KEEPFILTERS to avoid inadvertently overriding existing dashboard slicers.

2. Explicit Measures

Always define calculations as explicit DAX measures rather than calculated columns to maintain optimal VertiPaq compression.

3. Table Name Prefix

Reference columns using 'TableName'[Column] and measures as [MeasureName] following Microsoft architecture guidelines.