Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Re: Problems with running totals

$
0
0

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:

DriveProjectedPerformedIncentive(s):
A1012Movie Tickets
Gift Card
B510Movie Tickets
Beach Towel
C2025Gift 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 Tickets1522
Gift Card3037
Beach Towel510

 

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.


Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>