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

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.

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: Sum(measure) Where (condition)
Example Variations:
  • =Sum([Revenue]) Where ([Country]="US")
  • =Sum([Revenue]) Where ([Year]=2024 And [Country]="US")
  • =Sum([Revenue]) Where ([Country] InList("US";"UK"))
Power BI DAX Equivalent Output Measure
Compiled DAX Measure:
Revenue = 
CALCULATE(
    SUM('Sales'[Revenue]),
    KEEPFILTERS('Sales'[Country]="US")
)
Context Explanation:

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.

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.