SQL Challenge: Custom Output element including a SUM formula?

Our lowest membership level is a $50 donation--but that amount is meant to be cumulative, not an initiation fee, so we have a "pre member" level below that (with a range of $0.01-$49.99). This level has a duration of 1 month and no lapsed/renewal period, with the intention that if someone gives again during that period, the PRE membership will upgrade to the $50+ giving level.

We are hoping to begin reaching out to donors whose giving is between membership levels to see if they want to increase their gift to upgrade to the next level. We'd like the emails to say something like, "You're just $5 away from XXX level Membership!" In particular, we want to encourage donors in this "pre member" level to give the DIFFERENCE that will allow them to upgrade to the $50 level.

Is there a way to create this field in an output set that could be imported into WordFly?

Let's say someone gave $45 on 5/20/22. We want to have an output field that is "$50 - (minus) [last gift amount]" or "$50 - (minus) [total giving last 30 days]". So in this person's case, the output field would be $5.
Is this possible?
Parents Reply Children
No Data