Get dimension values for a particular financial dimension

Financial Dimension can be custom(new ones) or existing(customer,Item,Department)

DimensionAttribute table has all the Financial dimensions,this is the main table to drilldown to get the dimension values of each dimenion.
Dimension values for above dimensions sit in different tables or views like OMoperatingunitview, OMDepartmentView, DimattributeOMcostcenter etc.

dimensionattributevalue table has mapping for above two(dimension and dimensionvalue)

To get dimension values for a particular dimension, below code can be used.

Dimension attribute table holds the tableId which has the dimensionvalue.

while select BackingEntityTableId, BackingEntityValueFieldId, Type from dimensionAttribute where dimensionAttribute.type == j
    {

        dictTable = new dictTable(dimensionAttribute.BackingEntityTableId);
        common = dictTable.makeRecord();

        id = dimensionAttribute.BackingEntityValueFieldId;

        while select * from common join EntityInstance, DimensionAttribute, IsSuspended  from
            dimensionAttributeValue where dimensionAttributeValue.EntityInstance == common.RecId && dimensionAttributeValue.DimensionAttribute == dimensionAttribute.RecId
            {
          dimTempTable.FinancialDimension = dimensionAttribute.Name;
                dimTempTable.DimensionValue = common.(id);
                dimTempTable.EntityInstance      =   dimensionAttributeValue.EntityInstance;

Comments

Popular posts from this blog

AX 2012 DEVOPS Build, Release setup and configuration

AX 2012 Build process using AZURE DEVOPS

What is Microsoft Power Platform?