Forum Discussion
A Databuffer holds data for a Data Unit, who's key is Cube, Entity, Parent, Scenario, Time & Cons. So, you aren't going to find Entity in the rows of the Databuffer, which contains some or all of a DataUnit. You can see what is in a DataBuffer for yourself with the following sample command:
DataBufferCalc.LogDataBuffer(api,"contents of databuffer",100)
If you want the data for multiple entities, you will need to get a separate DataBuffer for each entity.
As for getting the Text properties for an entity member, take a look at api.Entity.Text().
To pre-remove Zeros or NoData as you wish when you get a DataBuffer you can use RemoveZeros() or RemoveNoData() as follows. The RemoveZeros can be done before or after the filtering:
api.Data.GetDataBufferUsingFomrula("FilterMembers(RemoveZeros(A#NetInc),[some filter])")
Of course, you can skip over the zeros or NoData when cycling through your DataBuffer.
Lastly, the FilterMembers() function you show makes no sense, as you are providing a filter in your first parameter. The first parameter is supposed to specify the intersection to which you want to apply the filtering, which is specified in the subsequent parameters.
Hi Rhankey.
I do not want to obtain the Text1 of the entity from the POV. Instead, for example, I want to obtain the entities of an element based on the BR and get the Text1 of those entities whose names I have. Regarding the removal of zeros or no data, I appreciate your help. As for obtaining the entities, I want to get the entities under another entity, but for now, I am not exactly sure how to do it
Related Content
- 3 years ago
- 4 years ago
- 2 years ago
- 2 years ago