Help with query ... and export/output of said query

Comments
-
Check the KB -- Also, remember that query is for grouping and export is for exporting. If you run that query through export you should get the 120 results that you are looking for. Make sure you are using the right type of query too -- if you want a list of consituents use a constituent query/export, but if you want a list of gifts you need a gift query/export. Basically.
Why are there duplicates in the query results and how to remove them?Query is a way to group records; it is not a reporting tool. The query output shows you whether the record belongs in the query. If a field with a one-to-many relationship BB61118 0 -
Use an Export instead, using the query for the records to include. You are getting more records in your results because it is displaying the constituent info for each of their gifts. The query criteria does not apply to the gift information on the output tab.
Josh0 -
Sandra,
This is a perfect example of how one-to-many fields add records to query and why query is a grouping tool, not an export tool. When you output a field like gift date/fund/gift amount it will pull every gift date/fund/gift amount. But it's not that hard to work with. Just take your query with results of 120, save it. Go to the Export function of RE. You'll want a constituent export, excel file. Use your query for the records to include and then in this function select the fields you want to output. It does work really well. You'll get one line per record with all the fields you choose to output.
Post again if you run into trouble.0 -
JoAnn Strommen:
Sandra,
This is a perfect example of how one-to-many fields add records to query and why query is a grouping tool, not an export tool. When you output a field like gift date/fund/gift amount it will pull every gift date/fund/gift amount. But it's not that hard to work with. Just take your query with results of 120, save it. Go to the Export function of RE. You'll want a constituent export, excel file. Use your query for the records to include and then in this function select the fields you want to output. It does work really well. You'll get one line per record with all the fields you choose to output.
Post again if you run into trouble.Sandra, don't want to cause confusion down the road. You can use either query as both are pulling 120 constituents - one just shows multiple listings due to the output fields. Either query can be used in Export (this is the separate function,not just the icon on the query window) and will/should give you the 120 records.
For your export do you need to see each payment info? That will be a little more work to export each gift amount and gift date. You'll need to estimate the largest # of payments on a record and export the gift date/amount info that many times when it asks how many you want to output.0 -
What I need to see is only people that gave cumulative gifts that amounted to 1,000.00 and over ….if you gave 100.00 every month that totaled out to be 1,200.00 then I need to see each date (each month you gave) and I need to see which funds you gave to as well. I am lost as to where to get a report/query that can give me just those specifics. Like you said it is giving me every gift from forever! Thanks for helping
0 -
Sandra Thompson:
What I need to see is only people that gave cumulative gifts that amounted to 1,000.00 and over ….if you gave 100.00 every month that totaled out to be 1,200.00 then I need to see each date (each month you gave) and I need to see which funds you gave to as well. I am lost as to where to get a report/query that can give me just those specifics. Like you said it is giving me every gift from forever! Thanks for helping
So, take your query that grouped the 120 records that meet your criteria to the Export module. New Export > Constituent, format Excel. For Include - select your query. Then on output tab select any bio date that you want and then select Gifts > Gift Amount. On that tab then put 12 for # of gifts to export if that is the most any donor would have. Select date info, order gifts by date, filters, gift types etc. After you have all that criteria. Select Gifts > Gift Date also Gifts > Fund.
You don't need to output the summary info here as you want detailed gift info. The summary you used in query grouped the records you need.
One neat feature of Export is the preivew - right up below the word 'tools' there is an icon that you can click and it will show you the first 15 records you'll be exporting and all the fields you have selected.
Give it a try - you really can't mess anything up by trying.0 -
Another way to do this in query - and not export, though that is definitely a good option - is to run your query with no output, then create a new query that points at that first query (Tools, Query Options, Record Processing, Select from query). Then you can pull summary information without duplicate rows. However, if you are pulling any individual gifts info, you will get all those extra rows. Just don't pull any one-to-many fields. This is a bit of a shortcut just to review your records, without having to look at an exported spreadsheet.0
-
Susan,
That's an interesting work around - haven't tried pulling using another query.
However, in Sandra's case I think it's just creating an extra step. The summary information was not giving her extra rows - don't know of a case where it would. Pulling the one-to-many fields as you said will cause the duplications and that was the issue to begin with as that's the info she needs.0 -
And I'll just add here what I've heard from Blackbaud repeatedly over the years - do not EVER output gift data out of a query!
You definitely want to use Export to ensure that the gift data is correctly calculated and processed.0 -
You need a Constituent Query that determines WHO will be included and then a Gift Export (based on that Query) that will pull the Gifts you want for that set of Constituents.
Create a Constituent Query that uses Summary Information > Summary for Gift > Total Amount of Gifts > greater than or equal to $1,200 and then filter by the date range and any other relevant information. For the Ouput of the Query you only want to add the Constituent's Name, maybe Constituent ID. If you add any Gift fields here you'll end up seeing lots of duplicate rows that can be confusing. Save that Query.
Start a Gift Export and use your new Query as the source to "Include...". On the Outupt tab, note that in the right pane of the window when you click on the "New Gift Export" you have a "Criteria" button available at the bottom of the pane. Here is where you can filter and Export the specfic Gifts for each of those chose Constituents. This will Export one row for each gift that meets your criteria, repeating any Constituent inormation you might include on each of those rows.0 -
Sandra,
I hadn't thought about a gift Export as John suggests. That will give you each gift on a separate line with your constituent data. Might be easier to view that was for 120 records (probably not for 1200 records). The previous posts' directions will get you 120 lines with each person having their record and all their gifts listed out to the right. Basically horizonal data vs. Gift export which would be vertical. Both should pull data you need correctly.0 -
John Heizer:
You need a Constituent Query that determines WHO will be included and then a Gift Export (based on that Query) that will pull the Gifts you want for that set of Constituents.
Create a Constituent Query that uses Summary Information > Summary for Gift > Total Amount of Gifts > greater than or equal to $1,200 and then filter by the date range and any other relevant information. For the Ouput of the Query you only want to add the Constituent's Name, maybe Constituent ID. If you add any Gift fields here you'll end up seeing lots of duplicate rows that can be confusing. Save that Query.
Start a Gift Export and use your new Query as the source to "Include...". On the Outupt tab, note that in the right pane of the window when you click on the "New Gift Export" you have a "Criteria" button available at the bottom of the pane. Here is where you can filter and Export the specfic Gifts for each of those chose Constituents. This will Export one row for each gift that meets your criteria, repeating any Constituent inormation you might include on each of those rows.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
- 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