Building a query for gift in at least two of the last five years
Curious all of your thoughts on the best way to structure a query to find all constituents who have given a gift in at least 2 of the last 5 fiscal years. The best way that I've been able to come up is -
(Gift Date Between 01-01-2020 and 12-31-2020 AND Last Gift Date greater than or equal to 01-01-2021)
OR (Gift Date Between 01-01-2021 and 12-31-2021 AND Last Gift Date greater than or equal to 01-01-2022).
OR (Gift Date Between 01-01-2022 and 12-31-2022 AND Last Gift Date greater than or equal to 01-01-2023).
OR (Gift Date Between 01-01-2023 and 12-31-2023 AND Last Gift Date greater than or equal to 01-01-2024).
Comments
-
@Laura Neidhold That looks good to me, not sure you could get anything better without having to export
1 -
@Laura Neidhold This looks fine. I depending on your needs, I might use summary fields if I needed to exclude pledges and only include payments. Especially if unpaid annual pledges are a thing at your organization.
3 -
@Laura Neidhold
what you have will work out well for the “2 out of X” situation, as your query is looking for having gift in a year AND having another gift after that year. Won't work well if 3 or more out of X.While this method won't work if you need the query itself to show the exact constituent that meets the criteria, it is more flexible and easily to handle:
constituent query:
critera: “summary of gift amount greater than 0” with sub criteria of gift date between 1/1/2020 and 1/1/2024. (this is to avoid dup record rows if criteria using “gift date” that is a 1-to-many relationship to constituent)
output: all info you want and “summary of gift amount” with sub criteria for each year range
in excel, there is a few ways you can determine “X out of Y” giving columns being greater than 0.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 206 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 357 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 561 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.6K SKY Developer
- 242 ResearchPoint™
- 117 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 778 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


