Report Consolidating Data From Two Tables

kb2gmx
Member Posts: 3
Hello,
I have a problem trying to create a report with two tables.
I'm trying to show all sales quotes Currently Open and Archived.
The Archived Quotes reside in a customized table.
The task is to show Quotes Statistics by the person who entered the quote.
I can show each table in two separate reports but I want to put this information in 1 report.
The tables cannot be linked as a Quote is in on or the other table.
The tables are are designed in a similar way.
My question is how can I write 1 report that accumulates statistics about the Quotes (Open and Archived) subtotaled by the Quoted By field?
I'm thinking that I must create some kind of Temp file in the 50,000 range.
Make two passes at the sales Quotes Open and Archive and populate the temp file with minimal information about each quote.
Make a final pass at the Temp File and accumulate my data that way.
Is there a better way? I'm Using NAV 5.0 and the Navision Report Writer.
Thanks,
Dave Frantz
I have a problem trying to create a report with two tables.
I'm trying to show all sales quotes Currently Open and Archived.
The Archived Quotes reside in a customized table.
The task is to show Quotes Statistics by the person who entered the quote.
I can show each table in two separate reports but I want to put this information in 1 report.
The tables cannot be linked as a Quote is in on or the other table.
The tables are are designed in a similar way.
My question is how can I write 1 report that accumulates statistics about the Quotes (Open and Archived) subtotaled by the Quoted By field?
I'm thinking that I must create some kind of Temp file in the 50,000 range.
Make two passes at the sales Quotes Open and Archive and populate the temp file with minimal information about each quote.
Make a final pass at the Temp File and accumulate my data that way.
Is there a better way? I'm Using NAV 5.0 and the Navision Report Writer.
Thanks,
Dave Frantz
0
Comments
-
I assume that Open Quotes may or may not be Archived - is that correct?
What you describe is probably along the right direction.
Assuming I am correct in my assumption, then I would set up a temp variable for the Archived table. Loop through the quotes and add each to the temp archived variable. Then loop through the Archived adding to the variable if that Quote No. does not already exist. Then use an Integer data item to loop through the temp Archived table - filtered on 1 to the number of records in the temp variable.Gerry Kistler
KCP Consultores0 -
Open quotes are not Archived.
Archive Quotes are not Open.
Think of it this way, I have some of the numbers from 1 to 100.
The Even Numbers are in Table A and not sorted.
The Odd Numbers are in Table B Also in no particular order.
The Result must be the all Numbers and sorted in the correct order.
How can the two tables be read and reported ?0 -
Mostly the way I described, assuming the numbers are unique across both tables - no duplicates:
Set up a temp variable for the Archived table. Loop through the quotes and add each to the temp archived variable. Then loop through the Archived adding to the variable. Then use an Integer data item to loop through the temp Archived table - filtered on 1 to the number of records in the temp variable.Gerry Kistler
KCP Consultores0
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