Notices



Reply
 
LinkBack Thread Tools Display Modes

Old 04-26-2007, 02:10 PM   #1 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

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

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

What Year Is It?

Apparently Blackbaud has trouble with this question, because it thinks that 2/15/2002 is in the current fiscal year.

I'm working with the Donor Analytics datamart that BB did for us when we took the TIE training. I was working on a formula that uses the IsInCurrentFiscal and getting VERY strange results. I looked at the code that BB was using and found a bug. BB passes the gift date, the current date, and the month that the fiscal year starts to a function that is supposed to tell you whether the gift date falls within the current fiscal year. The problem is that BB uses the GIFT date rather than the current date to calculate the current fiscal year. Essentially the formula boils down to "Is the gift in a period that's parallel to FY to date?" Since we've passed 2/15 in the current fiscal year, 2/15/2002 is in a parallel period for fiscal year 2002.

The worst thing is that BB used two different user defined functions (which causes your data to be processed linearly rather than as a set) with a total of 3434 characters to produce the WRONG answer when I was able to produce the RIGHT answer with only 227 characters and no UDFs.

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
Sponsored links
Reply

Tags
formulas bug


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


Internet Marketing - United Specialties - Renegade Motorhomes - Credit Cards
All times are GMT -6. The time now is 08:39 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Integrated by BBpixel Team 2009 :: jvbPlugin R1012.364.1
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 65 66 67 68 69 70 71