Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Al Languauge Query-

(1) ShareShare
ReportReport
Posted on by 24
Dears.
 
I am writing API query object i want to get sum of Quanity and Sales Line Total from Sales Archive table for last version number only.
 
.Lets say i have 3 Version..i Need last record. Sum(Quantity) + Sum(Total Lines Amount) 
 
I tried with sum and Max method..but not working.
any suggestions. plz.
 
Thanks in Advance.
Aqeel. 
  • aqeel2020uae Profile Picture
    aqeel2020uae 24 on at
    Al Languauge Query-
    Dear 
    Thanks a lot for your help.
    But where i can use filter for document number its givng me max of lines table not for same docuemnt.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,942 Super User 2024 Season 2 on at
    Al Languauge Query-
    Hi, try adding two levels of DataItem (same table), using the Max method at the root level to collect lines, and then using Sum method in the child DataItem to get the total amount.
    Sorry the example is not exactly the same, it is somewhat similar to the following.
     
    Hope this can give you some hints.
    Thanks.
    ZHU

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans