Notices



Reply
 
LinkBack Thread Tools Display Modes

Old 05-26-2006, 12:49 PM   #1 (permalink)
Systems Manager

Join Date: May 2006
Posts: 44
Rep Power: 0 JJolin is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)
- API/VBA

Adjustments - Report Problems

Problem: Reporting on adjusted gifts for past time frames. Once a gift is adjusted you can’t report on the previous information very easily. This will be an issue for all reports.

If you want to get the pledge balance by fund as of 3/31/2006, then you need to find all the adjustments that have been done after that date. Since gifts can be adjusted more than once you must make sure you find the first adjustment to the gift after the end date of the report.

Easiest Solution: Either keep a copy of your db from certain dates (year-end, etc.), or make sure not to enter adjustments until you have reported on a period. If that is not possible then see below.

My Solution: In Access using the direct ODBC connection I write the following queries

1st Query: Gift Table – All gifts in a range (limit gift type or other data as needed)

2nd Query: Link GiftAdjustment table to GiftPreviousSplit table to Gift table by GiftID and also link the Gift Adjustment table to the Gift table_1 by the AdjustmentId and choose the start date of adjustments that you don’t want to show in your report. If you wanted to report thru 3-31-2006 then you would look for the first adjustment to any gift on or after 4-1-2006. Access SQL below:


SELECT dbo_GiftAdjustment.GiftId, dbo_GiftPreviousSplit.FundId AS PreviousFundID, dbo_GiftPreviousSplit.CampaignId AS PreviousCampaignID, dbo_GiftPreviousSplit.AppealId AS PreviousAppealID, dbo_GiftPreviousSplit.Amount AS PreviousAmt, dbo_GIFT_1.DTE AS GiftDate, First(dbo_GIFT.DTE) AS AdjustmentDate
FROM ((dbo_GiftAdjustment INNER JOIN dbo_GiftPreviousSplit ON dbo_GiftAdjustment.GiftId = dbo_GiftPreviousSplit.GiftId) INNER JOIN dbo_GIFT AS dbo_GIFT_1 ON dbo_GiftPreviousSplit.GiftId = dbo_GIFT_1.ID) INNER JOIN dbo_GIFT ON dbo_GiftAdjustment.AdjustmentId = dbo_GIFT.ID
GROUP BY dbo_GiftAdjustment.GiftId, dbo_GiftPreviousSplit.FundId, dbo_GiftPreviousSplit.CampaignId, dbo_GiftPreviousSplit.AppealId, dbo_GiftPreviousSplit.Amount, dbo_GIFT_1.DTE
HAVING (((First(dbo_GIFT.DTE))>#4/1/2006#));

The second query will give you all the adjustments which will throw off your reports. Pull the Previous amount and fund ( or campaign or appeal info) into output of query.

3rd Query: Link the first two queries and use an IIF statement to replace the gift amount with the previous gift amount if previous gift amount <> null.

You can now write a report off the 3rd query and it will give you the totals you are looking for (before the adjustment).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
adjustments, report, problems


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Debt Consolidation - Cheap Gas - Loan - Credit Counseling
All times are GMT -6. The time now is 03:21 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64