Forum Discussion

Marco's avatar
Marco
Contributor II
16 days ago
Solved

How can I remove empty values from GetDataBuffer and obtain the entity with Text1, Text2, Text3?

Hi Everyone. I would like to know how I can remove zero values in my GetDataBufferUsingFormula. Dim DatabufferCalc As DataBuffer = api.Data.GetDataBufferUsingFormula("FilterMembers(E#" & strPare...
  • rhankey's avatar
    rhankey
    16 days ago

    There are two variations of the api.Entity.Text() function.  One variant takes no parameters, and will operate on the POV entity.  The second version allows you to specify any Entity member.  Much the same as all the other api.[DimTypeName].Text() functions do too.

    You need to be very careful when getting Cube data from a different entity, of for more than one entity, as the currencies for those entities could differ.  And in many instances, those entities may not share the same cube and thus could have different dimensionality.  In addition to that, when getting children of an entity, you can find that the sum of the children<>the parent due to things like eliminations unless you consider very carefully what data you get from the cube.