Dimension Primary Key - DimPk

DimPk is known as Dimension Primary Key. This is a unique primary key that is assigned to Dimensions when they are created. It is a combination of the DimTypeId and the DimId.

DimPk is commonly used to identify which Dimension should be used when checking for members as base members or descendants in a specific Dimension. DimPk is commonly used in the following functions:

  • Get Dimension Primary Key of a Specific Dimension

    • Example: api.Dimensions.GetDim("UD1DimName").DimPk

  • Check if it is a Base Member of a Specific Ancestor

    • Example: api.Members.IsBase(dimPk, ancestorMemberId, baseMemberId, dimDisplayOptions)

  • Get Base Members of Parent from GetMember

    • Example: api.Members.GetBaseMembers(api.Pov.UD1Dim.DimPk, parent.MemberId, Nothing)