web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get individual dimensions value from Ledger Dimension

(0) ShareShare
ReportReport
Posted on by 169

Dear ALL;

I have one record like this

33510002-OSP-Projects-OSR-02-02-04-0068-C-OSP-0253

and his record is saving in ledgerdimension field. I want to display all the segments separately. Can Somebody please share the

code how can I display all the dimensions separately..

Thanks and regards..

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    236,353 Most Valuable Professional on at
    RE: Get individual dimensions value from Ledger Dimension

    If you want to display all values, you can use DimensionAttributeLevelValueAllView.

    If you wanted to work with individual segments in code, DimensionStorage class would help you.

  • Suggested answer
    Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: Get individual dimensions value from Ledger Dimension
    static DimensionDisplayValue getAttributeValueFromCombination(
        DimensionAttributeValueCombination _combination, 
        Name _attributeName = 'BusinessUnit')
    {
        DimensionAttributeLevelValueView valueView;
        DimensionAttribute attribute = DimensionAttribute::findByName(_attributeName);
        ;
        select DisplayValue from valueView 
            where valueView.ValueCombinationRecId == _combination.recId 
            && valueView.DimensionAttribute == attribute.RecId;
        return valueView.DisplayValue;
    }


    Above code should help you .

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Get individual dimensions value from Ledger Dimension

    Hi Mohamed Ahmed Hassan,

    For what purpose do you need this separation?

    If it is 'only' for investigating the results then you can make use of the trial balance form in GL that allows you this separation by the selection of a standard parameter inside the form.

    Best regards,

    Ludwig

  • Mohamed Ahmed Hassan Profile Picture
    169 on at
    RE: Get individual dimensions value from Ledger Dimension

    Hi Ludwig;

    No I have to display them in report. That's why I was looking for code...

    Thanks..

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at
    RE: Get individual dimensions value from Ledger Dimension

    I see.

    Then try to take a look at the trial balance form and how they realized the separation of the findims there.

    Best regards,

    Ludwig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans