Hello DJ,
Let me see if I can explain more clearly to help you understand.
I think the most important thing is that each drive is unique and will have one projected procedure number and one performed procedure number. But each drive may have multiple incentives assigned to each drive. Where I run into trouble is when I have more than one incentive on a drive.
I'll try to illustrate below:
Drive | Projected | Performed | Incentive(s): |
---|---|---|---|
A | 10 | 12 | Movie Tickets |
Gift Card | |||
B | 5 | 10 | Movie Tickets |
Beach Towel | |||
C | 20 | 25 | Gift Card |
Based on these entries, what I'm trying to have summarized should look like this:
Pre-Drive (Sum of Projected) | Post-Drive (Sum of Performed) | |
---|---|---|
Movie Tickets | 15 | 22 |
Gift Card | 30 | 37 |
Beach Towel | 5 | 10 |
So if an incentive is assigned to a drive, I would like to have all of the projected and performed numbers summarized that the particular incentive appears on. Hopefully this makes sense.
And one last screen shot here of a query I ran against the database to illustrate how a drive can have multiple incentives on the drive.