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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting Dimensions with Customer Transactions in SQL Query

(0) ShareShare
ReportReport
Posted on by

How can i get the dimensions using SQL Query without any AX Class. I am running a query on CustTrans in AX2012 but i am unable to get the appropriate dimensions in the transaction.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    for this you need to understand the Financial dimension data model of dynamics AX 2012,

    as per my understanding

    CustTrans is linked to DimensionAttributeValueSet using DefaultDimension

    DimensionAttributeValueSet  is linked  to DimensionAttributeValueSetItem table usning RecId

    DimensionAttributeValueSetItem table is having field called dispalyValue which will give you the financial Dimension value

    please validate

  • MikeG2001 Profile Picture
    on at

    I found the best method was to use the standard AX view DEFAULTDIMENSIONVIEW. This can be found using the DefaultDimension from the transaction and the DefaultDimension in this view. The Name in the view has the Financial dimension name and Display Value is the field you are after.

    Regards,

    Mike

  • Ronny Profile Picture
    80 on at

    select

    c.defaultdimension,

    dav.*

    c.*

    from

    custtable c

    inner join DEFAULTDIMENSIONVIEW  dav

    on dav.defaultdimension=c.defaultdimension

    where

    c.dataareaid=@DataAreaID

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans