SAP Knowledge Base Article - Public

3642834 - Issue using measure calculations "RESTRICT" or "LOOKUP" with not equal to "!=" operator in SAP Analytics Cloud (SAC)

Symptom

Restrict and lookup function is not working as expected for BW Import model in SAC

Environment

SAP Analytics Cloud 2025.8.17

Reproducing the Issue

  1. Login to SAC
  2. Go to modeler
  3. Select 'Calculations' from the 'Workspace' drop down
  4. Click on '+' icon
  5. Write one formula using Restrict or Lookup function

Notice: The '!=' formula in both the functions is working as '=' function as per the result.

Cause

This is a product defect

Resolution

A workaround is available: To exclude a specific dimension member in a LOOKUP or RESTRICT function, you can achieve the desired result by explicitly including all other members in the formula. For example, instead of using RESTRICT([Sales], [d/Product] != "member1"), you can use RESTRICT([Sales], [d/Product] = ("member2", "member3", ..., "memberN")), listing all dimension members except the one to be excluded.

See Also

Keywords

lookup, restrict, calculations, measure, model, story, sac , KBA , LOD-ANA-ML , SAC Modelling , Problem

Product

SAP Analytics Cloud 1.0