SUM up of Amount per group
chad
Member Posts: 25
Hi Guys!
Anyone can help me to sum up the amount per group in my report? like e.g in SQL
select productpricegroupid,sum(amount) from mw_price_discount
group by productpricegroupid
Anyone can help me to sum up the amount per group in my report? like e.g in SQL
select productpricegroupid,sum(amount) from mw_price_discount
group by productpricegroupid
0
Comments
-
Welcome to mibuso..:D
there are couple of ways to do that in NAV but it depends on the requirements though.
- >group your report and put the variable Amount on the group footer use the createtotals function.
- > Create a function that return the sum of the amount.Function GetSumperProductID(pID : Code[10]) : Decimal YourTable.Setrange(yourTable.productpriceID,pID); if yourtable.findset then repeat vLocVariable += yourTable.Amount; until yourtable.next = 0; Exit(vLocVariable);
.
3. do the search, there are many threads here like on your problem..Sendoh
be smart before being a clever.0 -
Thanks sendoh!

I Created a function to sum up the amount thanks to you. thanks for helping to solve my problem..
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions