cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Posting a rounding difference

Thandeka
Explorer
0 Likes
626

Hi Experts

I have a calculation that is not working and hoping you can help. I have a data action that looks at the Trial balance (has income statement and balance sheet data). I need to round the amounts/values to the nearest thousand. And then post the rounding difference [(Amounts/1000) - Round((Amounts/1000),0), to 3 accounts. 

  • For the income statement rounding difference, it should be posted to IS_ROUND
  • For the Balance sheet rounding difference, it should be posted to either BS_ROUND_DR or BS_ROUND_CR, depending on whether the rounding difference is positive or negative.

The issue is that the rounding difference I see when I run the data action, I get a higher number than expected. Please advise, thanks in advance.

My Data action:
MEMBERSET [d/CBS_PROFIT_CENTER] = (BASEMEMBER([d/CBS_PROFIT_CENTER].[h/TOTAL], %profit_center%))
IF [d/Measures] = "IS_Rounding" AND [d/CBS_ACCOUNTS] = "ROUNDING_IS" AND [d/CBS_Account_Cognos].[p/BIS_Company_Code] = "46212" THEN
DATA([d/CBS_ACCOUNTS] = "ROUNDING_IS", [d/Measures] = "Rounding_Measure", [d/CBS_Account_Cognos] = "IS-ROUNDING46212M-PL20300") = RESULTLOOKUP([d/CBS_ACCOUNTS] = "ROUNDING_IS", [d/Measures] = "IS_Rounding")
ENDIF
IF RESULTLOOKUP([d/Measures] = "IS_Rounding", [d/CBS_ACCOUNTS] = "ROUNDING_BS") < 0 THEN
IF [d/CBS_Account_Cognos].[p/BIS_Company_Code] = "46212" THEN
DATA([d/CBS_ACCOUNTS] = "ROUNDING_BS", [d/Measures] = "Rounding_Measure", [d/CBS_Account_Cognos] = "BS-ROUNDING46212M-BS20400") = RESULTLOOKUP([d/CBS_ACCOUNTS] = "ROUNDING_IS", [d/Measures] = "IS_Rounding")
ELSE
DATA([d/CBS_ACCOUNTS] = "ROUNDING_BS", [d/Measures] = "Rounding_Measure", [d/CBS_Account_Cognos] = "BS-ROUNDING46212M-BS10420") = RESULTLOOKUP([d/CBS_ACCOUNTS] = "ROUNDING_IS", [d/Measures] = "IS_Rounding")
ENDIF
ENDIF

Accepted Solutions (0)

Answers (0)