Convert WebI Sum Where to Power BI DAX
Filters the calculation context of a measure inside a specific visual or cell without affecting outer report filters.
-- Output will appear here automatically
Architecture & Context Transformation:
Evaluating formula...
Sum(measure) Where (condition) - =Sum([Revenue]) Where ([Country]="US")
- =Sum([Revenue]) Where ([Year]=2024 And [Country]="US")
- =Sum([Revenue]) Where ([Country] InList("US";"UK"))
Revenue =
CALCULATE(
SUM('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 Sum 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.