Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Query default financial dimensions for Fixed Assets

Posted on by Microsoft Employee

I am working on a BI solution and am looking to query the default financial dimensions for fixed assets (eventually will need them in other areas as well).  I need to pull in all 3 fields of the dimension, as shown in the screen shot below.  I have a query that seems to work, but it doesn't seem like the most elegant solution possible.  I am wondering if I have the query correct and/or if there are standard AX views that I can use to get this information as well?  My query is below the screen shot.  Thanks in advance for the help.

FinancialDims.PNG

SELECT abk.ASSETID
,abk.BOOKID
,da.NAME
,davsi.DISPLAYVALUE
,coalesce(dft.DESCRIPTION,bu.NAME,dept.NAME) AS Name2
FROM dbo.ASSETBOOK abk
INNER JOIN dbo.DIMENSIONATTRIBUTEVALUESET davs
ON davs.RECID = abk.DEFAULTDIMENSION
INNER JOIN dbo.DIMENSIONATTRIBUTEVALUESETITEM davsi
ON davsi.DIMENSIONATTRIBUTEVALUESET = davs.RECID
INNER JOIN dbo.DIMENSIONATTRIBUTEVALUE dav
ON dav.RECID = davsi.DIMENSIONATTRIBUTEVALUE
INNER JOIN dbo.DIMENSIONATTRIBUTE da
ON da.RECID = dav.DIMENSIONATTRIBUTE
LEFT OUTER JOIN dbo.DIMENSIONFINANCIALTAG dft
ON davsi.DISPLAYVALUE = dft.VALUE
AND da.VIEWNAME = 'DimensionFinancialTag'
LEFT OUTER JOIN dbo.DIMATTRIBUTEOMDEPARTMENT dept
ON davsi.DISPLAYVALUE = dept.VALUE
AND da.VIEWNAME = 'DimAttributeOMDepartment'
LEFT OUTER JOIN dbo.DIMATTRIBUTEOMBUSINESSUNIT bu
ON davsi.DISPLAYVALUE = bu.VALUE
AND da.VIEWNAME = 'DimAttributeOMBusinessUnit'

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Query default financial dimensions for Fixed Assets

    Ludwig - That may be what the requester is looking for.  Unfortunately, the requirements I have are not very clear.  Would you mind answering my question based on the dimensions used for the transactions?

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Query default financial dimensions for Fixed Assets

    Hi,

    Why are you interested in the default financial dimensions?

    Aren't the one that were used when posting the fixed asset transactions more important?

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans