Show total option does not work as expected in a Table widget, when a calculated measure is used with an "if" condition.
SAP Analytics Cloud (Enterprise)
Reproducing the Issue
- Create a story and add table widget.
- Create Calculated Measure using IF formula.
- Use dimensions as parameter in the IF formula as seen in the example below
Example : Calculated Measure( “IF([d/"Day_of_Week_averages":QUARTER]='01' ,["Day_of_Week_averages":VOLUME_TON]/90 ,IF([d/"Day_of_Week_averages":QUARTER]='02' ,["Day_of_Week_averages":VOLUME_TON]/91,["Day_of_Week_averages":VOLUME_TON]/92 ) ) “
- Apply show total on table widget.
- Observe that totals does not show up.
The behavior is by design.
- MDS returns an undefined error in this use-case because of the dimension, where the totals is 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.
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening an incident for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using Google or Bing:
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Your feedback is important to help us improve our knowledge base.
sac, sap analytics cloud, table, widget, calculated measure, cm, if, formula, show total, dimension , KBA , LOD-ANA-DES-CAL , SAC Story Calculations , Problem