Im trying to do a report, which will show sales of a product, and then other types of products sold with it. In my example, I want to see how many DVDs are sold, in total and then see how many have the product TV sold with them (on the same agreement number). Im pulling the data from a table which has the agreement number in there, Product, Qty, Location and value. Its via an ODBC link, and im using crystal version 10. I thought about doing a subreport and just pulling out all the DVD sales Agreement numbers, then use this to pull out all the sales, but surely there must be another way?
See below for example, hope it makes sense
Data
Agree No Product Location Qty Value
1 DVD A 2 £80
2 TV B 1 £40
2 DVD B 1 £20
3 DVD A 1 £15
3 TAPE A 10 £5
3 TV A 2 £100
4 TV A 2 £100
Result im after:
Loca DVDs Sold Value of DVDs No of DVDs sold with TV Value of TVs sold with DVDs
A 3 £95 1 £100
B 1 £20 1 £40
See below for example, hope it makes sense
Data
Agree No Product Location Qty Value
1 DVD A 2 £80
2 TV B 1 £40
2 DVD B 1 £20
3 DVD A 1 £15
3 TAPE A 10 £5
3 TV A 2 £100
4 TV A 2 £100
Result im after:
Loca DVDs Sold Value of DVDs No of DVDs sold with TV Value of TVs sold with DVDs
A 3 £95 1 £100
B 1 £20 1 £40