SAP Knowledge Base Article - Public

3157362 - Show total does not work as expected with calculated measure in a Table widget in SAC.

Symptom

Show total option does not work as expected in a Table widget, when a calculated measure is used with an "if" condition.

Environment

SAP Analytics Cloud (Enterprise)

Reproducing the Issue

  1. Create a story and add table widget.
  2. Create Calculated Measure using IF formula.
  3. Use dimensions as parameter in the IF formula.
  4. Apply show total on table widget.
    >> Observe that totals do not show up.

Cause

  • The behavior is by design.
  • MDS returns an undefined error in this use-case because of the dimension, where the totals are defined, would be internally thrown away in order to calculate the totals.
  • MDS processes the attribute lookup (defined by formula), where the same dimension is referenced which is internally thrown away. This leads to undefined calculation of the formula because the of the dimension, where MDS should refer to, does not exist anymore as its already thrown away. Hence this behavior works by design.

Resolution

No resolution as it is a by design behavior.

Keywords

sac, sap analytics cloud, table, widget, calculated measure, cm, if, formula, show total, dimension , KBA , LOD-ANA-DES-CAL , SAC Story Calculations , LOD-ANA-TAB , Table , Problem

Product

SAP Analytics Cloud 1.0