Convert WebI Where to Power BI DAX
SAP Web Intelligence Where context operator used to manipulate calculation context and filter propagation.
-- Output will appear here automatically
Architecture & Context Transformation:
Evaluating formula...
[Measure] Where ([Dimension]) - =[Revenue] Where ([Country]="US")
- =Sum([Revenue]) Where ([Year]=2024 And [Country]="US")
- =[Revenue] Where ([Country] InList("US";"UK"))
- =[Revenue] Where (Not([Country]="US"))
- =[Revenue] Where ([Flag])
- =[Revenue] Where ([Year]=Year(CurrentDate()))
Revenue =
CALCULATE(
'Sales'[Revenue],
KEEPFILTERS('Sales'[Country]="US")
) WebI "Where (condition)" operator maps directly to DAX "CALCULATE(..., filter)".
Enterprise Migration Note: Context Transition in Power BI
When migrating Where 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.