Can't group by and seperate item !
haihth
Member Posts: 32
Hi all mem !
I have to make a report like that: ( from Sales Lines table)
Product Group Code 1
---Item no 11
Quantity
Amount
---Item no 12
Quantity
Amount
Product Group Code 2
---Item no 21
Quantity
Amount
---Item no 22
Quantity
Amount
---Item no 22
Quantity
Amount
---Item no 23
Quantity
Amount
Problem is:
I wanna group by same No. Item (to have a total quantity ) and use Product Group Code to seperate all item in same Product Group.
If i define TotalGroupBy, program is not seperate item in same product group.
Who can help me, please, thanks!
I have to make a report like that: ( from Sales Lines table)
Product Group Code 1
---Item no 11
Quantity
Amount
---Item no 12
Quantity
Amount
Product Group Code 2
---Item no 21
Quantity
Amount
---Item no 22
Quantity
Amount
---Item no 22
Quantity
Amount
---Item no 23
Quantity
Amount
Problem is:
I wanna group by same No. Item (to have a total quantity ) and use Product Group Code to seperate all item in same Product Group.
If i define TotalGroupBy, program is not seperate item in same product group.
Who can help me, please, thanks!
0
Comments
-
I hope you have done grouping by Product Group Code and Item no.0
-
mohana_cse06 wrote:I hope you have done grouping by Product Group Code and Item no.
I did what you say. But it is not what i want.
I just only want to group by Item No and use Product Group Code to seperate all item in a same product group.
Can you help me?0 -
this is what grouping will do..haihth wrote:I just only want to group by Item No and use Product Group Code to seperate all item in a same product group.0 -
mohana_cse06 wrote:
this is what grouping will do..haihth wrote:I just only want to group by Item No and use Product Group Code to seperate all item in a same product group.
insert into itemmenu(itemmenuid,parentid,name,site)
values(40,1,'View Analysis','~/admin_analysis.aspx')
insert into group_itemmenu(groupid,itemmenuid)
values(1,40)mohana_cse06 wrote:
this is what grouping will do..haihth wrote:I just only want to group by Item No and use Product Group Code to seperate all item in a same product group.
I did that:
-DataItemTableView:Sorting(Product Group Code,No.)
-GroupTotalFields:Product Group Code, No.
-TotalFields:Quantity
And result is not exactly with expected report.
If I did that:
-DataItemTableView:Sorting(Product Group Code,No.)
-GroupTotalFields:No.
-TotalFields:Quantity
Result is: All same item no will group by, but can't seperate all item into same product group.
(is Product group code in header group section? )
Anybody can help me?0 -
GroupTotalFields should be "Product Group Code".
I guess there is something wrong with your section design.
I suggest you create the report from scratch again by using the report wizzard.
This thing is doing almost everything for you that is needed for this report.
For Sorting select: Product Group Code,No.
For Grouping select: Product Group Code
Have a look at the result.Thomas Martin
NAV Developer0 -
thmartin wrote:GroupTotalFields should be "Product Group Code".
I guess there is something wrong with your section design.
I suggest you create the report from scratch again by using the report wizzard.
This thing is doing almost everything for you that is needed for this report.
For Sorting select: Product Group Code,No.
For Grouping select: Product Group Code
Have a look at the result.
I did what you say and this is result:
Group Name
Item No.
Quantity
Amount
Book
Book 1 ---1
5
Book 1 ---1
5
Book 1 ---1
5
Book 2 ---7
12
CD
CD 1 ---8
11
CD 2 ---1
4
CD 2 ---1
4
You notice the line Book1, and CD2, it is not group by Item No.
Can you have any idea?0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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
