Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8851

Re: How to modify existing script that calculates account 1 * account 2 to be dynamic for different time members

$
0
0

Hi Vadim

Thanks for your reply. Yes, this is for default logic & pls see attachments in original post which answers 'how to ask questions on script logic issue' .

 

The first part of the code (refer below) is working fine:

*WHEN S_ACCOUNT

*IS A_OUTPUT

*REC(FACTOR = ([S_ACCOUNT].[A_OUTPUTGM],[S_TIME].[CC_GM_PERC]),S_ACCOUNT = A_GMARGIN,DATASRC = D_CALC)

*ENDWHEN

 

Issue as you identified is with second part:

*WHEN S_ACCOUNT

*IS A_OUTPUTGM

*WHEN S_TIME

*IS CC_GM_PERC

*REC(FACTOR = ([S_ACCOUNT].[A_OUTPUT]),S_ACCOUNT = A_GMARGIN,DATASRC = D_CALC)

*ENDWHEN

*ENDWHEN

 

I am not sure how to select/manipulate the existing (multiple) records against A_OUTPUT (i.e. one per month), when a single change is made against A_OUTPUTGM. (one change per year category)

 

The selection

*WHEN S_ACCOUNT

*IS A_OUTPUTGM

 

will only return a single record in the d/base, when i need to make changes to multiple records stored against A_OUTPUT.

 

Perhaps i need to use some thing in addition to *WHEN *IS*ENDWHEN

 

Thank all,

Glen


Viewing all articles
Browse latest Browse all 8851

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>