Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

SAP BPC 10 NW - YTD Average Custom Formula Error

$
0
0

Hi,

I have a problem with a custom measure for SAP BPC 10 NW.
I need to obtain the YTD Average.


So, i created this measure starting on YTD Measure, and using the MonthNum attribute of Time Dimension.

 

The Environment have a custom Time Dimension (Called TIEMPO) with some custom attributes, but its not significant, i think.

 

Our system is SAP BPC 10 NW 801 SP0006 (CPMBPC 801 006), on NW 731 SP11.
We are not using Hana.

 

The resulting formula is:
'IIF([%INDICADORES_OPEX%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC",(SUM(PERIODSTODATE([%TIEMPO%].[%TIMEYEARLEVEL%], [%TIEMPO%].CURRENTMEMBER),-[MEASURES].[/CPMB/SDATA])/[%TIEMPO%].CURRENTMEMBER.PROPERTIES("2/CPMB/MONTHNUM")),IIF([%INDICADORES_OPEX%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP",SUM(PERIODSTODATE([%TIEMPO%].[%TIMEYEARLEVEL%],  [%TIEMPO%].CURRENTMEMBER),[MEASURES].[/CPMB/SDATA])/[%TIEMPO%].CURRENTMEMBER.PROPERTIES("2/CPMB/MONTHNUM"),IIF([%INDICADORES_OPEX%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="AST",([MEASURES].[/CPMB/SDATA],  CLOSINGPERIOD([%TIEMPO%].[%TIMEBASELEVEL%]))/[%TIEMPO%].CURRENTMEMBER.PROPERTIES("2/CPMB/MONTHNUM"),IIF([%INDICADORES_OPEX%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ",-([MEASURES].[/CPMB/SDATA],  CLOSINGPERIOD([%TIEMPO%].[%TIMEBASELEVEL%]))/[%TIEMPO%].CURRENTMEMBER.PROPERTIES("2/CPMB/MONTHNUM"),-[MEASURES].[/CPMB/SDATA]/[%TIEMPO%].CURRENTMEMBER.PROPERTIES("2/CPMB/MONTHNUM")))))';SOLVE_ORDER=3


Also, i have followed this thread to assure i'm doing the right things. http://scn.sap.com/thread/3162729.

 

The problem is that when i want to save the custom formula, i'm obtaining this error message:
"MDX statement error:"Invalid MDX command with <num_val> / <num_val>"
Message no. UJO_READ_EXCEPTION000"

 

We check all sap notes with this error, but our NW and BPC version is the last, and the notes are for older versions.

And, by the other hand, if i create the YTD AVG measure for the planning model of our Environment, its works.

 

How can i solve it?

 

Regards,

 

Agustín.



Viewing all articles
Browse latest Browse all 5414

Trending Articles