Hello, Our sales guys want me to write a report that returns the models that sold for more or less than comparable units. I am using crystal 8.5 quering an access 97 database.
The data looks like:
Year model # of cycles Sale price
1997 5p 45000 75.00
1998 4 20000 200.00
2000 6p 2500 120.00
1997 5p 7000 100.00
1997 5p 44000 120.00
1997 5p 6000 150.00
The report should return something like:
1997 5p 45000 75.00
1997 5p 44000 120.00
I have tried a select formula, year=year and model=model and cycle=((cycle>cycle*.9)or(cycle<cycle*1.1))and price=((price<price*.9)or(price>price*1.1))...that didn't work...so I tried grouping first by year then by model then running a select formula: cycle=((cycle>cycle*.9)or(cycle<cycle*1.1))and price=((price<price*.9)or(price>price*1.1)). I am lost at what to try next. Any guidance would be greatly appreciated.
Thank you
Jeff G.
The data looks like:
Year model # of cycles Sale price
1997 5p 45000 75.00
1998 4 20000 200.00
2000 6p 2500 120.00
1997 5p 7000 100.00
1997 5p 44000 120.00
1997 5p 6000 150.00
The report should return something like:
1997 5p 45000 75.00
1997 5p 44000 120.00
I have tried a select formula, year=year and model=model and cycle=((cycle>cycle*.9)or(cycle<cycle*1.1))and price=((price<price*.9)or(price>price*1.1))...that didn't work...so I tried grouping first by year then by model then running a select formula: cycle=((cycle>cycle*.9)or(cycle<cycle*1.1))and price=((price<price*.9)or(price>price*1.1)). I am lost at what to try next. Any guidance would be greatly appreciated.
Thank you
Jeff G.