Created a formula to Group Records - records missing from report
Options
I created the formula below to group on Solicitor Gifts and Community Engagement Appeal. Line 3 is not producing any records in the report. What am I doing wrong?
This is what I am looking for:
If appeal like *CE then Community Engagement Appeal (doesn't matter what solicitor is listed)
If solicitor like *Harrison, but appeal is blank or appeal is not like *CE then Solicitor Gifts
Formula:
Line1: IF IsNULL({CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name}) and {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}like "*CE" then "Community Engagement Appeal" else
Line 2: IF {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}like "*CE" then "Community Engagement Appeal" else
Line 3: IF {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}<> "*CE" and {CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name} like "*Harrison*" then "Solicitor Gifts"
Thanks,
DThomas
This is what I am looking for:
If appeal like *CE then Community Engagement Appeal (doesn't matter what solicitor is listed)
If solicitor like *Harrison, but appeal is blank or appeal is not like *CE then Solicitor Gifts
Formula:
Line1: IF IsNULL({CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name}) and {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}like "*CE" then "Community Engagement Appeal" else
Line 2: IF {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}like "*CE" then "Community Engagement Appeal" else
Line 3: IF {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}<> "*CE" and {CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name} like "*Harrison*" then "Solicitor Gifts"
Thanks,
DThomas
Tagged:
1
Comments
-
Hello Darcene,
Maybe in Line 3, instead of <>, replace it with " not like" or " not (<string> like "*CE") " ?
Just a thought...
:-DTang.1 -
Hi David,
I so wanted this to work! I even changed the line order and Solicitor Gifts is still missing.
It's probably something really simple.
Thanks :-)
1 -
What is your Appeal ID?0
-
Hello Darcene,
Have you attempted just the inner condition to see if you pull "Solicitor Gifts"?
IF (IsNull({CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}) or Not ({CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID} like "*CE")) and
({CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name} like "*Harrison*") then "Solicitor Gifts"
1 -
My appeal ID is anything containing "CE" (i.e., 2020 CE, 2021 CE, etc.).0
-
Maybe something like this?
Line 1: IF {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}like "*CE" then "Community Engagement Appeal" else
Line 2 IF {CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name} like "*Harrison*" then "Solicitor Gifts"
else "Solicitor Gifts"1 -
Good Morning Marie,
That doesn't work either. Below are the possible combinations.
Appeal - Solicitor
*CE - Harrison
*CE - Other solicitors
*CE - blank
Solicitor - Appeal
Harrison - blank
Harrison - <> *CE
0 -
So if the solicitor is not Harrison and the appeal is not like CE, then what should happen?0
-
They should not list in the report.
My record selection is: {@Appeal} in ["Community Engagement Appeal", "Solicitor Gifts"]0 -
Have you tried writing a formula and adding it to your report to see if it's returning the correct results? You could do it in stages
If (not isnull({appeal}) and {appeal} like *CE* )
then "Community engagement"
Run that, are they showing up correctly? If so, then add another line, something like:
If ((not isnull({appeal})) and not ({appeal} like *CE*)) and
(not isnull({solicitor}) and solicitor like "*harrison")
then "solicitor"
else "whatever"
make sense? testing for nulls each step of the way and gradually adding conditions. Also, I know I use a lot of parentheses and sometimes some are unnecessary, but they don't hurt and help me organize things.
Edit: once you get it figured out so your formula shows up correctly for each record, then you can move the formula over and group by it. You can also use a modified version of it as a record selection formula by taking out the if then else and just having the two statements there.3 -
Hi James,
The community engagement formula works great on its own, but when I add the solicitor formula only records for community engagement show up.
The solicitor formula on its own doesn't produce any records.
The parentheses do make it easier to read. I will play with the solicitor formula.
Thanks1 -
Try changing your Report Options: Convert Database NULL values to Default and Convert Other NULL Values to Default. No idea if this will help but mentioning it anyway. You might also need to test for blank values ("") in addition to NULL.0
-
Darcene Thomas:
The community engagement formula works great on its own, but when I add the solicitor formula only records for community engagement show up.
The solicitor formula on its own doesn't produce any records.
OK besides testing for blank values as Josh suggested, do you have more than one solicitor on a gift? I see you're looking not at the solicitors field in CnGf, but actually at the solicitor constituent record a couple of tables away in CnGf_1Sol_1Cn. So if you have more than one solicitor on a gift that's going to be a one-to-many relationship and Crystal is just going to look at the first one and move on if it doesn't apply. You could test for this by making a subreport with just that table in it and running that formula through it, taking a look at the links back to CnGf_1Sol_1 and CnGf_1. Then maybe you could integrate the subreport into your report.
Otherwise -- if that's the case and you have multiple solicitors -- you're looking at working with variables (or custom SQL statements) to get the one you want.
0 -
Are your joins set up as left outer join? I can never remember the technical bits of why, but doing this has an effect on which records show up.0
-
James, with a minor tweak your formula worked!
If (not isnull({CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name}) and {CnGf_1Sol_1Cn.CnGf_1Sol_1Cn_Last_Name} like "*Harrison*" )
then "Solicitor Gifts" else
If (not isnull({CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID}) and {CnGf_1Apls_1.CnGf_1Apls_1_Appeal_ID} like "*CE*" )
then "Community Engagement Appeal"
Thank you all for your help!0 -
I'm glad it helped! My Crystal formula syntax is rusty because we don't use it as much anymore, but good to hear it worked.0
Categories
- All Categories
- Shannon parent
- shannon 2
- shannon 1
- 21 Advocacy DC Users Group
- 14 BBCRM PAG Discussions
- 89 High Education Program Advisory Group (HE PAG)
- 28 Luminate CRM DC Users Group
- 8 DC Luminate CRM Users Group
- Luminate PAG
- 5.9K Blackbaud Altru®
- 58 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 409 bbcon®
- 2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- donorCentrics®
- 1.1K Blackbaud eTapestry®
- 2.8K Blackbaud Financial Edge NXT®
- 1.1K Blackbaud Grantmaking™
- 527 Education Management Solutions for Higher Education
- 21 Blackbaud Impact Edge™
- 1 JustGiving® from Blackbaud®
- 4.6K Education Management Solutions for K-12 Schools
- Blackbaud Luminate Online & Blackbaud TeamRaiser
- 16.4K Blackbaud Raiser's Edge NXT®
- 4.1K SKY Developer
- 547 ResearchPoint™
- 151 Blackbaud Tuition Management™
- 1 YourCause® from Blackbaud®
- 61 everydayhero
- 3 Campaign Ideas
- 58 General Discussion
- 115 Blackbaud ID
- 87 K-12 Blackbaud ID
- 6 Admin Console
- 949 Organizational Best Practices
- 353 The Tap (Just for Fun)
- 235 Blackbaud Community Feedback Forum
- 124 Ninja Secret Society
- 32 Blackbaud Raiser's Edge NXT® Receipting EAP
- 55 Admissions Event Management EAP
- 18 MobilePay Terminal + BBID Canada EAP
- 36 EAP for New Email Campaigns Experience in Blackbaud Luminate Online®
- 109 EAP for 360 Student Profile in Blackbaud Student Information System
- 41 EAP for Assessment Builder in Blackbaud Learning Management System™
- 9 Technical Preview for SKY API for Blackbaud CRM™ and Blackbaud Altru®
- 55 Community Advisory Group
- 46 Blackbaud Community Ideas
- 26 Blackbaud Community Challenges
- 7 Security Testing Forum
- 1.1K ARCHIVED FORUMS | Inactive and/or Completed EAPs
- 3 Blackbaud Staff Discussions
- 7.7K ARCHIVED FORUM CATEGORY [ID 304]
- 1 Blackbaud Partners Discussions
- 1 Blackbaud Giving Search™
- 35 EAP Student Assignment Details and Assignment Center
- 39 EAP Core - Roles and Tasks
- 59 Blackbaud Community All-Stars Discussions
- 20 Blackbaud Raiser's Edge NXT® Online Giving EAP
- Diocesan Blackbaud Raiser’s Edge NXT® User’s Group
- 2 Blackbaud Consultant’s Community
- 43 End of Term Grade Entry EAP
- 92 EAP for Query in Blackbaud Raiser's Edge NXT®
- 38 Standard Reports for Blackbaud Raiser's Edge NXT® EAP
- 12 Payments Assistant for Blackbaud Financial Edge NXT® EAP
- 6 Ask an All Star (Austen Brown)
- 8 Ask an All-Star Alex Wong (Blackbaud Raiser's Edge NXT®)
- 1 Ask an All-Star Alex Wong (Blackbaud Financial Edge NXT®)
- 6 Ask an All-Star (Christine Robertson)
- 21 Ask an Expert (Anthony Gallo)
- Blackbaud Francophone Group
- 22 Ask an Expert (David Springer)
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 6 Ask an All-Star Sunshine Reinken Watson and Carlene Johnson
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 14 Ask an All-Star (Elizabeth Johnson)
- 7 Ask an Expert (Stephen Churchill)
- 2025 ARCHIVED FORUM POSTS
- 322 ARCHIVED | Financial Edge® Tips and Tricks
- 164 ARCHIVED | Raiser's Edge® Blog
- 300 ARCHIVED | Raiser's Edge® Blog
- 441 ARCHIVED | Blackbaud Altru® Tips and Tricks
- 66 ARCHIVED | Blackbaud NetCommunity™ Blog
- 211 ARCHIVED | Blackbaud Target Analytics® Tips and Tricks
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- Luminate CRM DC Users Group
- 225 ARCHIVED | Blackbaud eTapestry® Tips and Tricks
- 1 Blackbaud eTapestry® Know How Blog
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- 1 Blackbaud K-12 Education Solutions™ Blog
- 280 ARCHIVED | Mixed Community Announcements
- 3 ARCHIVED | Blackbaud Corporations™ & Blackbaud Foundations™ Hosting Status
- 1 npEngage
- 24 ARCHIVED | K-12 Announcements
- 15 ARCHIVED | FIMS Host*Net Hosting Status
- 23 ARCHIVED | Blackbaud Outcomes & Online Applications (IGAM) Hosting Status
- 22 ARCHIVED | Blackbaud DonorCentral Hosting Status
- 14 ARCHIVED | Blackbaud Grantmaking™ UK Hosting Status
- 117 ARCHIVED | Blackbaud CRM™ and Blackbaud Internet Solutions™ Announcements
- 50 Blackbaud NetCommunity™ Blog
- 169 ARCHIVED | Blackbaud Grantmaking™ Tips and Tricks
- Advocacy DC Users Group
- 718 Community News
- Blackbaud Altru® Hosting Status
- 104 ARCHIVED | Member Spotlight
- 145 ARCHIVED | Hosting Blog
- 149 JustGiving® from Blackbaud® Blog
- 97 ARCHIVED | bbcon® Blogs
- 19 ARCHIVED | Blackbaud Luminate CRM™ Announcements
- 161 Luminate Advocacy News
- 187 Organizational Best Practices Blog
- 67 everydayhero Blog
- 52 Blackbaud SKY® Reporting Announcements
- 17 ARCHIVED | Blackbaud SKY® Reporting for K-12 Announcements
- 3 Luminate Online Product Advisory Group (LO PAG)
- 81 ARCHIVED | JustGiving® from Blackbaud® Tips and Tricks
- 1 ARCHIVED | K-12 Conference Blog
- Blackbaud Church Management™ Announcements
- ARCHIVED | Blackbaud Award Management™ and Blackbaud Stewardship Management™ Announcements
- 1 Blackbaud Peer-to-Peer Fundraising™, Powered by JustGiving® Blogs
- 39 Tips, Tricks, and Timesavers!
- 56 Blackbaud Church Management™ Resources
- 154 Blackbaud Church Management™ Announcements
- 1 ARCHIVED | Blackbaud Church Management™ Tips and Tricks
- 11 ARCHIVED | Blackbaud Higher Education Solutions™ Announcements
- 7 ARCHIVED | Blackbaud Guided Fundraising™ Blog
- 2 Blackbaud Fundraiser Performance Management™ Blog
- 9 Foundations Events and Content
- 14 ARCHIVED | Blog Posts
- 2 ARCHIVED | Blackbaud FIMS™ Announcement and Tips
- 59 Blackbaud Partner Announcements
- 10 ARCHIVED | Blackbaud Impact Edge™ EAP Blogs
- 1 Community Help Blogs
- Diocesan Blackbaud Raiser’s Edge NXT® Users' Group
- Blackbaud Consultant’s Community
- Blackbaud Francophone Group
- 1 BLOG ARCHIVE CATEGORY
- Blackbaud Community™ Discussions
- 8.3K Blackbaud Luminate Online® & Blackbaud TeamRaiser® Discussions
- 5.7K Jobs Board