Notices


Reply
 
LinkBack Thread Tools Display Modes

Old 05-21-2008, 10:38 AM   #1 (permalink)
Senior Member

Join Date: Sep 2006
Posts: 257
Rep Power: 3 jas. is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

formula for memberships as of gift date?

Can any of you tell me if this formula is correct or not? It seems to be working, but I have had formulas that seemed to work before, but were actually incorrect.

I'm trying to report on the membership as of the gift date. So I queried for the gifts I wanted, then did a gift export with the gift into, the constituent info, and then four membership transactions. What I want the formula to do is cycle through the membership transactions in reverse date order, find the first one that isn't "Dropped" where the transaction date is before the gift date.

So if the gift date is 9/1/06, and there is a membership transaction of Renew Upgrade - Household 12/1/06, and another transaction of Renew Same - Individual on 12/1/05 -- I want it to pull Individual.

So I created this formula:

Code:
WhileReadingRecords;
if ({Gf.Gf_Date} > {GfCnMem_1Hst_1.GfCnMem_1Hst_1_TransDate}
    and {GfCnMem_1Hst_1.GfCnMem_1Hst_1_Type} <> "Dropped")
then stringvar memcat := {GfCnMem_1Hst_1.GfCnMem_1Hst_1_Category_description}
else stringvar memcat := "No Membership";
And then I grouped on it -- and it seems to be working, except for the fact that "No Membership" isn't showing up when there's a null in the transaction date (i.e. people who actually have no membership).

But is there something else I'm missing? Anyone?
__________________
james andrews
manager of development services
philadelphia museum of art
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 05-21-2008, 11:15 AM   #2 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,155
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

If a field can be null, you need to check for that before using it in any comparisons or your formula will return NULL. Your first test needs to be IsNull({Gf.Gf_Date}).

It's not clear whether you did one instance of the membership with four records or four instances with one record each. If it's one instance with four records, your formula will not work. Grouping can only be done on Context Free formulas, but you need to compare multiple records in order to determine the correct membership. Comparing multiple records is a Context Sensitive operation.

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 05-21-2008, 12:00 PM   #3 (permalink)
Senior Member

Join Date: Sep 2006
Posts: 257
Rep Power: 3 jas. is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)

thanks Drew. that gives me a lot to look up.

I did indeed export one instance of the membership, with four records--and I'm not sure how to go about it the other way--so I guess it's no good.

Back to the drawing board.
__________________
james andrews
manager of development services
philadelphia museum of art
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
crystal, formula


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


Loans - Credit Counseling - Credit Card - Mortgage
All times are GMT -6. The time now is 07:18 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