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

Script Logic

Hi Gurus,

How to pick up the value of a Property into a variable using script logic.

something like EVPRO.

Ex: - Account Dim has a property called MTOW which has a value (230). 
I want to use this value in my script which is further used to perform some calculation.

Thanks

Sravan

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2010 at 05:42 AM

    Hi Sravan,

    You cannot use property as a value used inside logic for evaluation.

    You can use these property as a condition for performing a logic as mentioned in the above logic by nilajan and boguner.

    In BPC Data is stored as a line item dimension

    Account Entity Category Time

    Headcount E100 ACTUAL 2010.APR 100

    You can use only value "100" inside the logic for manupulation not the property of Account Headcount as in this example.

    *WHEN ACCOUNT.MTOW

    *IS 230

    Your logic here

    *ENDWHEN

    Here it means only accounts having property mtow as "230" will only be considered as evaluation.

    In this case you should have to create a new account which will store this value "230" and use it for evaluation. Hope this helps.

    Regards,

    Ramanathan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2010 at 09:58 AM

    Hi Sravan,

    You can use something like,

    *WHEN ACCOUNT.MTOW
    *IS 230
       Your logic here
    *ENDWHEN

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2010 at 10:34 AM

    OR

    XDIM_FILTER ACCOUNT=[ACCOUNT].PROPERTIES("MTOW")="230"

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nilanjan and Bouguner,

      Thanks For the quick reply. My requirement is just a little bit diffrent. instead of using the static value as 230 i want the script to pick up the value because we have 1100 accounts and for each account there will be a different MTOW.

      May be something like currentmember.property

      OR

      Dimenssion.Property

      Thanks

      Sravan

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.