SAP Knowledge Base Article - Public

3544408 - When adding Filter in Story - QTD YTD calculated measures gives incorrect results

Symptom

Has two calculated measures YTD and QTD, as below:

YTD Formula - ITERATE(IF([d/FCST_PLAN_Accounts_Y].[p/accType]=("AST" , "LEQ"),[Amount_LC], IF( [d/Date].[p/MONTHDESC] = ("Oct"),[Amount_LC],(PRIOR () + [Amount_LC]))),[Amount_LC],[d/Date])

QTD Formula - ITERATE(IF([d/FCST_PLAN_Accounts_Y].[p/accType]=("AST" , "LEQ"),[Amount_LC], IF( [d/Date].[p/MONTHDESC] = ("Oct","Jan","Apr","Jul"),[Amount_LC],(PRIOR () + [Amount_LC]))),[Amount_LC],[d/Date])

Once a Period filter is applied in the story, it shows different value for the same period in a table with no filter applied.

Environment

SAP Analytics Cloud 2024.15.16

Reproducing the Issue

 

  1. access tenant;
  2. navigate to a model;
  3. switch to Calculations workspace;
  4. check that there are 2 calculations, as following:

    YTD=ITERATE(IF([d/PLAN_Accounts_Y].[p/accType]=("AST" , "LEQ"),[Amount_LC], IF( [d/Date].[p/MONTHDESC] = ("Oct"),[Amount_LC],(PRIOR () + [Amount_LC]))),[Amount_LC],[d/Date])

    QTD=ITERATE(IF([d/PLAN_Accounts_Y].[p/accType]=("AST" , "LEQ"),[Amount_LC], IF( [d/Date].[p/MONTHDESC] = ("Oct","Jan","Apr","Jul"),[Amount_LC],(PRIOR () + [Amount_LC]))),[Amount_LC],[d/Date])

  5. navigate to a story;
  6. there are 2 tables: one filtered by the whole year 2024 and the second filtered for a period of the same year;
  7. <ISSUE> the values for Period are not matching on both tables; 

Cause

This issue is currently under investigation by development.

Resolution

This issue is currently under investigation by development.

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, sap analyst cloud, connected, failure, stopped, sap analyst cloud, https://hcs.cloud.saphttps://hanacloudservices.cloud.saphttps://cloudanalytics.accounts.ondemand.comhttps://hanacloudservices-us.accounts.ondemand.comhttps://www.sap.comhttps://help.sap.com, predictive analytics (analysis), data analysis (analytics) tools, analytics tools, sap analytics cloud, data literacy, advanced analytics, data democratization, analytics software, real time analytics, self service analytics, advanced data analytics, analytics as a service, analytics cloud / cloud analytics, saas analytics, cloud bi, enterprise planning, cloud data analytics, cloud based analytics, analytics cloud platform, modern analytics, real time analysis, cloud analytics solution(s), what is sap analytics cloud, cloud analytics tools, analytics in the cloud, cloud analytics software epm, business intelligence, , KBA , LOD-ANA-DES , Story Design & Visualizations , Problem

Product

SAP Analytics Cloud 1.0