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'

I have the same question (0)
  • Suggested answer
    Komi Siabi Profile Picture
    13,226 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,811 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 501 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 298

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans