The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
pling
3 years agoNew Contributor II
Removezeros in getdatabuffer
Hi,
We have a seeding rule that is copying zeros:
sourceActualsBuffer = api.Data.GetDataBuffer(DataApiScriptMethodType.Calculate,S#Actual_Opco:U5#None,False, destinationBuffer)
I am trying ...
- 3 years ago
Hi, you can use GetDataBufferUsingFormula, e.g.
api.Data.GetDataBufferUsingFormula("RemoveZeros(FilterMembers(S#ACT:O#Top,F#Closing.Base))",,False)You can also use your data buffer, loop through the cells and remove the zeros and no data cells like that.
pling
3 years agoNew Contributor II
Thanks Henning! seems to work. Need to further test it!
Related Content
- 1 year ago
Is it possible to use .DescendantsInclusive to define a data buffer in a Finance Business Rule? This is needed to clear data from legacy accounts that are no longer needed. For example: Dim myDataBuffer As DataBuffer = api.Data.GetDataBufferUsingFormula("RemoveZeros(Cb#Consol:A#Top.DiscendantsInclusive)", DataApiScriptMethodType.Calculate, False, destination)
4 years ago