Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

Calculation to be performed through Script logic

$
0
0

Hello Experts, Need your guidance to achieve below calculation in script logic: For Q1: ACCOUNT1 = (ACCOUNT2* 5%*-1)/4 For Q2: ACCOUNT1=  (ACCOUNT2*5%*-1)/4 +Q1 value etc..... By writing below script, I m facing challenge is  for Quater1 also, it is adding data for previous year last month which is not the requirement. It needs to add data for Q2 as Q2+Q1 , Q3 as Q3+Q2 and Q4 as Q4 as Q4+Q3 and Q1 should equal to Q1. *XDIM_MEMBERSET CAT = BUD *XDIM_MEMBERSET CURR_RPT = SEK *XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL) *XDIM_MEMBERSET PRC_B = %PRC_B_SET% *XDIM_MEMBERSET ACCOUNT_B = BAS(ACCOUNT2) *XDIM_MEMBERSET TIME = %TIME_SET%*XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL) *XDIM_MEMBERSET AUDIT_FB = BAS(UU3) *WHEN ACCOUNT_B *IS BAS(ACCOUNT2) *REC(FACTOR = -.01/4, ACCOUNT_B = "ACCOUNT1") *ENDWHEN *COMMIT *XDIM_MEMBERSET CAT = BUD *XDIM_MEMBERSET CURR_RPT = SEK *XDIM_MEMBERSET CURR_CODE = BAS(CURR_ALL) *XDIM_MEMBERSET PRC_B = %PRC_B_SET% *XDIM_MEMBERSET PC_IG_B = BAS(PC_IG_ALL) *XDIM_MEMBERSET ACCOUNT_B = ACCOUNT1 *XDIM_MEMBERSET TIME = TMVL(-3,%TIME_SET%),%TIME_SET% *XDIM_MEMBERSET AUDIT_FB = BAS(UU3) *WHEN_REF_DATA = MASTER_DATA *WHEN ACCOUNT_A *IS ACCOUNT1 *REC(FACTOR= 1,TIME_SET = %TIME_SET%) *ENDWHEN *COMMIT Regards, Apoorva


Viewing all articles
Browse latest Browse all 845

Trending Articles



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