How to show a row sum amount by group CG Group in Report.

caroline_85
Member Posts: 2
Hello experts!
I am making a report based on available report. The new report only show a row sum according to group CG Group instead if show all as old report.
Exam: Available report
CG Code Amount Current 1-30days 31-60days 61-180days >180days
1.1 50 10 100 50 10 5
1.1 30 20 60 35 20 20
1.1 20 30 80 7 80 60
1.2 30 50 50 1 100 80
1.2 40 70 90 5 75 15
2.3 100 20 20 150 20 30
3.1 60 10 10 80 10 4
3.1 30 60 5 100 5 60
New report as sample:
CG Code Amount Current 1-30days 31-60days 61-180days >180days
1.1Total 100 60 240 92 110 85
1.2Total 70 120 140 6 175 95
2.3Total 100 20 20 150 0 30
3.1Total 90 70 15 180 15 64
I see code of available report has SQL sentence as
select AmountMST from CustTransOpen where
custTransOpen.AccountNum == CustTable.AccountNum
&& custTransOpen.TransDate <= balanceAs
&& CustTransOpen.TransDate >= compareDate1
&& CustTransOpen.TransDate <= compareDate2
I have created view get data from 2table (Custtransopen, Custtable), then I also write SQL to group CG Group as
select sum(AmountMST),StatisticsGroup from SKV_CustAging3
group by StatisticsGroup
where SKV_CustAging3.TransDate <= balanceAs
&& SKV_CustAging3.TransDate < compareDate1;
I aslo try to use Section Group to total every CG Group but I still show detail record, finally I show sum total for every CG Code. Are there any way to show only one record sum total for every CG?
Please help me. I am new officers to make this report, so I don't many experience about Axapta.Thanks.
I am making a report based on available report. The new report only show a row sum according to group CG Group instead if show all as old report.
Exam: Available report
CG Code Amount Current 1-30days 31-60days 61-180days >180days
1.1 50 10 100 50 10 5
1.1 30 20 60 35 20 20
1.1 20 30 80 7 80 60
1.2 30 50 50 1 100 80
1.2 40 70 90 5 75 15
2.3 100 20 20 150 20 30
3.1 60 10 10 80 10 4
3.1 30 60 5 100 5 60
New report as sample:
CG Code Amount Current 1-30days 31-60days 61-180days >180days
1.1Total 100 60 240 92 110 85
1.2Total 70 120 140 6 175 95
2.3Total 100 20 20 150 0 30
3.1Total 90 70 15 180 15 64
I see code of available report has SQL sentence as
select AmountMST from CustTransOpen where
custTransOpen.AccountNum == CustTable.AccountNum
&& custTransOpen.TransDate <= balanceAs
&& CustTransOpen.TransDate >= compareDate1
&& CustTransOpen.TransDate <= compareDate2
I have created view get data from 2table (Custtransopen, Custtable), then I also write SQL to group CG Group as
select sum(AmountMST),StatisticsGroup from SKV_CustAging3
group by StatisticsGroup
where SKV_CustAging3.TransDate <= balanceAs
&& SKV_CustAging3.TransDate < compareDate1;
I aslo try to use Section Group to total every CG Group but I still show detail record, finally I show sum total for every CG Code. Are there any way to show only one record sum total for every CG?
Please help me. I am new officers to make this report, so I don't many experience about Axapta.Thanks.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions