Skip to Content
author's profile photo Former Member
Former Member

LINE 11 syntax error: " missing name after .operator"

Hi Can you guys help me how to reslove this error. Iam trying to create 6 months forecast logicscript. Just started with the first month and iam getting this error.LINE 11 syntax error: " missing name after .operator"

*XDIM_MEMBERSET CATEGORY = Forecast

*XDIM_MEMBERSET ENTITY = %ENTITY_SET%

*XDIM_MEMBERSET PRODUCT_ALLOC = %PRODUCT_ALLOC_SET%

*XDIM_MEMBERSET RPTCURRENCY = LC

*XDIM_MEMBERSET TIME = %TIME_SET%

*SELECT(%ACCTSET%,"ID",ACCOUNT,"IS_ACCT_FC = 'Y'")

*FOR %ACCT% = %ACCTSET%

[ACCOUNT].[#%ACCT%] = 1/6 * (([ACCOUNT].[%ACCT%],[CATEGORY].[Actual],[TIME].[TMVL(-1,%TIME_SET%)]) + ([ACCOUNT].[%ACCT%],[CATEGORY].[Actual],[TIME].[TMVL(-2,%TIME_SET%)]) + ([ACCOUNT].[%ACCT%],[CATEGORY].[Actual],[TIME].[TMVL(-3,%TIME_SET%)]) + ([ACCOUNT].[%ACCT%],[CATEGORY].[Actual],[TIME].[TMVL(-4,%TIME_SET%)]) + ([ACCOUNT].[%ACCT%],[CATEGORY].[Actual],[TIME].[TMVL(-5,%TIME_SET%)]) + ([ACCOUNT].[%ACCT%],[CATEGORY].[Actual],[TIME].[TMVL(-6,%TIME_SET%)]))

*NEXT

*COMMIT

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2015 at 02:02 PM

    Hi vadim, this time also no luck, please find the attached datafile and test_result.Any comments on this please.


    test_result.PNG (36.3 kB)
    Datafile.PNG (95.5 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 08, 2015 at 06:34 PM

    Sorry, but I do not recommend using MDX syntax like in your code!

    WHEN/ENDWHEN is dramatically faster!

    You want to put 1/6 of sum of previous 6 months in the current month!

    Then:

    *XDIM_MEMBERSET CATEGORY = Actual

    *XDIM_MEMBERSET ENTITY = %ENTITY_SET%

    *XDIM_MEMBERSET PRODUCT_ALLOC = %PRODUCT_ALLOC_SET%

    *XDIM_MEMBERSET RPTCURRENCY = LC

    *SELECT(%ACCTSET%,[ID],ACCOUNT,"[IS_ACCT_FC] = 'Y'")

    *XDIM_MEMBERSET ACCOUNT=%ACCTSET%

    // Scope 6 previous months

    *XDIM_MEMBERSET TIME = TMVL(-1,%TIME_SET%),TMVL(-2,%TIME_SET%),TMVL(-3,%TIME_SET%),TMVL(-4,%TIME_SET%),TMVL(-5,%TIME_SET%),TMVL(-6,%TIME_SET%)

    *WHEN ACCOUNT

    *IS *

    *REC(EXPRESSION=%VALUE%/6,TIME=%TIME_SET%,CATEGORY=Forecast)

    *ENDWHEN

    Vadim

    Message was edited by: Vadim Kalinin CATEGORY corrected

    Add a comment
    10|10000 characters needed characters exceeded

    • Sorry, but the log:

      #dim_memberset=6

      CATEGORY:Actual,1 in total.

      ENTITY:CSO,1 in total.

      PRODUCT_ALLOC:BW,1 in total.

      RPTCURRENCY:LC,1 in total.

      ACCOUNT:PL110,PL120,PL200,PL300,PL310,...7 in total.

      TIME:2010.09,2010.10,2010.11,2010.12,2011.01,...6 in total.

      REC :%VALUE%/6

      CALCULATION BEGIN:

      QUERY PROCESSING DATA

      QUERY TIME : 1.00 ms. 0 RECORDS QUERIED OUT.

      Clearly states that there is no data in the model for this scope!!!

      Vadim

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.