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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

computed field in view

(0) ShareShare
ReportReport
Posted on by 50

Hi guys,

I have created a view in AOT which has data source query (static AOT Query)

i have calculated sum of purchline amount that is correct and it gives correct result,

but somebody guide me how i will calculate multiplication of two fields in AOT View like Tsql (Sum(pl.LINEAMOUNT)*sum(pl.PURCHQTY)))

and subtraction of ,(sum(pl.PURCHQTY)-sum(vpst.QTY))'Balance Receipt Qty'

  • Suggested answer
    Komi Siabi Profile Picture
    13,253 Most Valuable Professional on at

    Hello Mark,

    I personally haven't being using computed columns on view. Something I would explore more. However, for me I would have created a display method on the view where I will do my x++ select statement to get the sum and compute.

    I can display this method on my form, ssrs report...

    My own suggestion

  • Suggested answer
    huijij Profile Picture
    19,813 on at

    Hi makdax2012r3

    Please refer to the MS document about adding a Computed Column to a View:

    docs.microsoft.com/.../walkthrough-add-a-computed-column-to-a-view

  • makdax2012r3 Profile Picture
    50 on at

    i have already seen this walkthrough but plez tell me how i ac do this Tsql (Sum(pl.LINEAMOUNT)*sum(pl.PURCHQTY)))

  • Suggested answer
    Israel Gonzalez Profile Picture
    746 on at

    Hi makdax2012r3,

    You can use the table fields for doing calcs. Check out this: https://community.dynamics.com/ax/b/axwithisraelgonzalez/posts/work-with-computed-columns-on-a-view

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 426 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 353 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans