Skip to main content
Member
July 26, 2026
Solved

Need help updating member formula calculation for base level accounts

  • July 26, 2026
  • 3 replies
  • 86 views

Hi Folks,

I need help updating a UD5 member formula that should impact the base level accounts only. I want the consolidation to aggregate/consolidate parent accounts with the calculated base level values.

Currently my logic calculates all accounts including the base and parents and no consolidation/aggregation takes place. Basically i want the calculation to happen like the logic below:

For example:

For a given UD5 Member i.e. growth the member formula is driving certain calculations for the account hierarchy members.  For a parent account 1200, i want the member formula to update values for all its base members using the logic 2*3.

For all other accounts beside the account 1200 in the account hierarchy, i want the following logic applied 2+3 at the base level. 

After these two set of calculations at base level accounts, i want natural OS aggregation to calculate the rest of the accounts in relation to ud5 member where the logic is being applied.

Does anyone know how to go about this? Currently i am stuck at applying the logic to base level members only for both if and else if conditions. 

Thanks in advance.

-Uzimon

Best answer by sameburn

Here is a very simple example of one way (there are many other ways) to do this using the api.Data.Calculate (ADC) method in a Finance rule and passing in your account filter as a member expansion and setting the amount for each set of base account members.

' Declare or retrieve the amount that you want to set as a Decimal						
Dim amt As Decimal = Decimal.Zero
' Use ADC (api.Data.Calculate) formula with Account filter on your first parent account base members and set the Amount e.g. 0.00
api.Data.Calculate($"Cb#YourCube:E#YourEntity:S#YourScenario:T#YourTime:V#YourView = {amt}","A#YourParentAccount1.Base",,,,,,,,,,,,,, True)
' Set the amount as something else
amt = 2*3
' Use ADC formula with Account filter on your second parent account base members and set the Amount
api.Data.Calculate($"Cb#YourCube:E#YourEntity:S#YourScenario:T#YourTime:V#YourView = {amt}","A#YourParentAccount2.Base",,,,,,,,,,,,,, True)
' Repeat as required

There is also enablement on how to do this via Navigator e.g. https://onestream.thoughtindustries.com/learn/course/writing-financial-calculations

There is also information in the Design & Reference guide e.g. Finance Business Rules and Finance Functions APIs

Hope this helps

Sam

3 replies

Advisor
August 20, 2026

Hi ​@usmali 

I would recommend reaching out to Remote Consulting via Support if you still need assistance with this

Your use case is very specific to your Data Model; so I am not sure you are going to get the help you need here e.g. without somebody also having access to your Data Model

Please be aware that this will likely be considered a billable activity

Hope this helps

Sam

usmaliAuthor
Member
August 31, 2026

Actually, this is more of conceptual issue, i am just trying to understand if there is a way in OneStream to set base level members of one parent(within the account hierarchy) to a certain values(could be anything) while all other base level members in the same account hierarchy to a completely different values(again could be anything). 
 

 

sameburnAdvisorAnswer
Advisor
September 1, 2026

Here is a very simple example of one way (there are many other ways) to do this using the api.Data.Calculate (ADC) method in a Finance rule and passing in your account filter as a member expansion and setting the amount for each set of base account members.

' Declare or retrieve the amount that you want to set as a Decimal						
Dim amt As Decimal = Decimal.Zero
' Use ADC (api.Data.Calculate) formula with Account filter on your first parent account base members and set the Amount e.g. 0.00
api.Data.Calculate($"Cb#YourCube:E#YourEntity:S#YourScenario:T#YourTime:V#YourView = {amt}","A#YourParentAccount1.Base",,,,,,,,,,,,,, True)
' Set the amount as something else
amt = 2*3
' Use ADC formula with Account filter on your second parent account base members and set the Amount
api.Data.Calculate($"Cb#YourCube:E#YourEntity:S#YourScenario:T#YourTime:V#YourView = {amt}","A#YourParentAccount2.Base",,,,,,,,,,,,,, True)
' Repeat as required

There is also enablement on how to do this via Navigator e.g. https://onestream.thoughtindustries.com/learn/course/writing-financial-calculations

There is also information in the Design & Reference guide e.g. Finance Business Rules and Finance Functions APIs

Hope this helps

Sam