CodyMonster
Board Regular
- Joined
- Sep 28, 2009
- Messages
- 155
I was wondering if someone could help me with a query problem.
Its been a few years since I had to work in Access so my problem solving skills are very rusty.
I'm looking to find deals in a table of data that offset each (final deal amount negative and positive). I created the absolute value column, and ran a query looking for duplicates. This is working out fine. However, I'm trying to exclude the ones that have three instances, for example Abs Volume 5077. I was thinking of doing a count expression, but when I try to do it, it still has each line of data as independent due to the strategy number being different. But I need the strategy number, so I can not remove it.
If someone could throw me some ideas to get me started that would be great..
Thanks
<CAPTION>Find duplicates for Daily Profit & Loss</CAPTION>
<THEAD>
</THEAD><TBODY>
</TBODY><TFOOT></TFOOT>
Its been a few years since I had to work in Access so my problem solving skills are very rusty.
I'm looking to find deals in a table of data that offset each (final deal amount negative and positive). I created the absolute value column, and ran a query looking for duplicates. This is working out fine. However, I'm trying to exclude the ones that have three instances, for example Abs Volume 5077. I was thinking of doing a count expression, but when I try to do it, it still has each line of data as independent due to the strategy number being different. But I need the strategy number, so I can not remove it.
If someone could throw me some ideas to get me started that would be great..
Thanks
Strategy Number | Type of Trade | Contract Price | Market Price | FOB Price | Final Deal Amount | Abs Volume |
---|---|---|---|---|---|---|
2012/695 | US DOM | 91.6600 | 86.1700 | 91.6600 | (183,320.00) | 2000 |
2012/9 | US DOM | 91.6600 | 86.1700 | 91.6600 | 183,320.00 | 2000 |
2012/597 | US DOM | 106.5352 | 95.7800 | 106.5352 | (377,978.44) | 3547.92 |
2012/548 | US DOM | 106.5352 | 95.7800 | 106.5352 | 377,978.44 | 3547.92 |
2012/508 | US DOM | 121.6190 | 118.8300 | 121.6190 | (602,786.33) | 4956.35 |
2012/13 | US DOM | 121.6190 | 118.8300 | 121.6190 | 602,786.33 | 4956.35 |
2012/271 | PHYS-(1232)- | 120.4975 | 113.8704 | 120.4975 | (611,765.81) | 5077 |
2012/181 | PHYS-(1233)- | 120.4975 | 113.8704 | 120.4975 | 611,765.81 | 5077 |
2012/271 | PHYS-DEC Slate DCR (948)- | 120.4975 | 113.8704 | 120.4975 | 611,765.81 | 5077 |
</THEAD><TBODY>
</TBODY><TFOOT></TFOOT>