SAP Knowledge Base Article - Public

3300177 - SAC AD : Error "The operation in the formula operator is invalid" when trying to enter values to perform planning on Time hierarchy (LOD-ANA-AD for SAC Analytics Designer)

Symptom

  • Formula error raised when user tries to enter value on collapsed half year time H1 & H2, to perform planning on Time hierarchy
    Error : The operation in the formula operator is invalid
    Correlation ID: 51178130-8103-4375-a091-121865716842
  • In console, the error occurs :
    Code: 42422 Text: The operation in the formula operator is invalid

Environment

  •  SAP Analytics Cloud (Enterprise) 

Resolution

  • When checking the model setting, the measure Amount_T (description is $) is a calculated measure and its formula is
    [Amount] | INVERSEIF([d/DATALABEL_O] =  "Forecast" or( [d/DATALABEL_O] =  "JulyForecast"and[d/Time].[p/QUARTERDESC]=("Q3", "Q4")and[d/Time].[p/HALFYEARDESC] =  "H2" ), [Amount]:= [Amount_T] *1 ).
  • This issue does not happen when expanding the H2(2024) node. To narrow down the root cause, it is recommended to rewrite the formula of Amount_T (description is $) to the following two sentences :
    [Amount] | INVERSEIF([d/DATALABEL_O] =  "Forecast" or( [d/DATALABEL_O] =  "JulyForecast"and [d/Time].[p/HALFYEARDESC] =  "H2" ), [Amount]:= [Amount_T] *1 )
    [Amount] | INVERSEIF([d/DATALABEL_O] =  "Forecast", [Amount]:= [Amount_T] *1 )

See Also

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

Keywords

Formula, error 42422, operator invalid, Analytics Designer, planning time hierarchy , KBA , LOD-ANA-AD , Analytics Designer , Problem

Product

SAP Analytics Cloud 1.0