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)

Querying Financial Dimensions from InventTable

(0) ShareShare
ReportReport
Posted on by

Hi,

I need to build a SQL query that links Inventory Item ID's (InventTable) with their Financial Dimension values but cannot find the relation between the InventTable and the Financial Dimension tables.  The Financial Dimensions are stored in 'DimensionAttribute' table and their values in DimAttributeCustGroup table.

Is this even possible?

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    What should the relation represent? In other words, what are you trying to achieve?

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,146 Super User 2025 Season 2 on at

    Hi Peter,

    The data model is complex on the financial dimensions. You can try a view which is available in standard AX. Try one of the views DimensionAttributeLevelValueAllView, DimensionAttributeLevelValueView or DimensionAttributeSetItemView.

  • Peter_R Profile Picture
    on at

    Hi Martin,

    the goal is to create a report that will find freight accruals that are stored outside of AX and then upload them into AX via Excel.  The accounting controller wants me to link inventory items with 5 financial dimensions.  Apparently, these freight accruals need to hit our financial dimensions.  Hope that helps?

  • Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    You can't just randomly link items and financial dimensions. You have to define which transactions with items and financial dimensions you want to look at and how you'll work with them.

    For example, you can find all customer group used when invoicing a sales line with the given item, or you might want to look at inventory movements, or almost infinite number of other things. You can't implement anything unless you know what logical relation you're looking for.

  • Suggested answer
    Peter_R Profile Picture
    on at

    Hi Martin,

    Thank you for your reply.  Could you please follow up with explanation how it is possible to see the Financial Dimension setup in 'Product information management/Common/Released products>Financial Dimensions' then?  AX already knows which Dimensions have been assigned to the Product, so why cannot I export the setup too?  See the image.  Sorry, I am new to AX and just trying to understand.

    FinancialDimensionsSetup.JPG

  • Peter_R Profile Picture
    on at

    Hi Andre,

    thank you for your reply.  I can see the links between Items and Dimensions in the Views suggested by you but I am not getting the expected results in 'DisplayValue' column.  I was trying to link 'VALUECOMBINATIONRECID' column with either 'PRODUCT' or 'RECID' from InventTable.

  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Aha, you mean product's default dimensions, not actual ledger dimensions.

    All right, so what you want to do with them? You said you wanted a query, but I'm not sure what the query should do. Do you want only a single dimensions or all of them?

    Maybe your requirement can be achieved by a simple join with DefaultDimensionView.

  • Peter_R Profile Picture
    on at

    Thanks for the reply, Martin.

    Yes, you are right - it is the Default Financial dimensions; we have 8 of them - sorry for any confusion.

    The query should pull sales invoice line details and for each line it should calculate freight costs based on the product weight and weekly shipping rates provided by the trucking company (external data).  The resulting 'freight accruals' will be periodically imported into AX.  It seems accounting dpt wants to keep a track of these costs using the Default Financial dimensions, as mentioned.  They want to see 5 dimensions per invoice line.

    Hope this helps?

    P.S. I tried the View suggested; I see the dimension codes are in there; I just wasn't able to match them with the Item records as of yet.

  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    Really? Are you sure that you want to calculate something for sales invoice lines but you'll ignore dimensions there? Do you really want default dimensions of the product, despite the fact that the invoice line can use completely different values?

  • Peter_R Profile Picture
    on at

    Hi Martin,

    I will forward your questions to our accountants and the implementation team as the financial dimension concept is new to me (and to them too); we are about to go live with AX soon.  Thank you for the suggestion, you were right again; I checked the dimension values in SALESLINE table and they do not match any dimension values in INVENTTABLE.

    At least for now I have got the product dimensions from DefaultDimensionView as you suggested and the business requested.

    I am good for now and in case I have a follow up question do you mind if I contact you again?  If so, should I post the question here or via a private message?

    Thanks again!!

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