Skip to main content

Notifications

Announcements

No record found.

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
    Israel Gonzalez Profile Picture
    Israel Gonzalez 733 on at
    RE: computed field in view

    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

  • makdax2012r3 Profile Picture
    makdax2012r3 50 on at
    RE: computed field in view

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

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: computed field in view

    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

  • Suggested answer
    Komi Siabi Profile Picture
    Komi Siabi 12,772 Most Valuable Professional on at
    RE: computed field in view

    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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans