Grouping and Sorting in Reports

david.weeks
Member Posts: 96
Hi All
I have a report that has Item has the first data item and item ledger entries at the second data item that is indented.
I want to generate the report firstly by GPPG from Item and then by Location from Item Ledger Entry.
I have got the report subtotalling by GPPG but I cannot find a way of grouping by GPPG and then Location because Location is only available from the second data item.
Any ideas?
I have a report that has Item has the first data item and item ledger entries at the second data item that is indented.
I want to generate the report firstly by GPPG from Item and then by Location from Item Ledger Entry.
I have got the report subtotalling by GPPG but I cannot find a way of grouping by GPPG and then Location because Location is only available from the second data item.
Any ideas?
0
Comments
-
Hi David,
I guess that you grouped the Item table by using GPPG in "GroupTotalFields" and GPPG as the Key in DataItemTabelView?
These 2 properties are exactly what you need to group in a report: the field(s) must be available as a sorting/key, and you need to declare as a grouptotalfield.
When you take a look at the keys of ILE you will see that Location is not available in a key (to be more specific: you would need Item no, Location).
There are several ways to solve this:
- add a Key to the ILE-Table, or ask your NSC to do this for you
- change your report: add the Location table as a new DataItem. It would go between Item and ILE. Thus the report will go through Item, for every Item go through all Locations, and for every Location go through all ILE. Please be aware that you will need to enter a SETRANGE or SETFILTER in the OnPreDataItem-trigger to get your filters right: Item no. and Location
And in case you would need some totals per group (item no. or location) you will need to add a CREATETOTALS-command too
Does this help?Kind regards,
Hans Fousert
Microsoft Certified Trainer and Jet Reports Certified Trainer0
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