Welcome to Forums Sign in | Join | Help | Forums
in Search


Complex Query: $300+ donors in any 10 years

Last post 02-04-2009 12:13 PM by Harriet Farmer. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 01-22-2009 1:13 PM

    • Tony Lee
    • Not Ranked
    • User Since: 2005
    • Posts 15
    • Organization: SOS Children's Village - USA, Inc.
    • Products:  The Raiser's Edge

    Complex Query: $300+ donors in any 10 years

    I am trying to find out who is part of a giving society were are creating for anyone who gives $300+ in any 10 years (doesn't have to be consecutive).  Does anyone have ideas how to do this?

    Tony R. Lee
    Database Administrator
    SOS Childrens Villages-USA
  • 01-22-2009 1:41 PM In reply to

    • Drew Allen
    • Top 10 Contributor
    • Posts 514
    • Organization: Children's Hospital of Philadelphia
    • Products:  The Information Edge, The Raiser's Edge

    Re: Complex Query: $300+ donors in any 10 years

    The RE interface cannot handle queries of this complexity.  It requires two levels of summaries (total by fiscal year and then count of fiscal years) in order to calculate, but RE only supports one level of summary.

    This can be done quite easily in SQL.  If you don't have access to the SQL back end, you can export all the gifts and then import into MS Access and do the processing there.

    Drew

    J. Drew Allen
    The Children's Hospital of Philadelphia
    Filed under:
  • 01-22-2009 2:08 PM In reply to

    • Mark Zarbailov
    • Top 100 Contributor
    • User Since: 2000
    • Posts 77
    • Organization: Ethical Culture Fieldston School
    • Products:  Blackbaud NetCommunity, Online Campus Community, The Education Edge, The Financial Edge, The Raiser's Edge, The Researcher's Edge

    Re: Complex Query: $300+ donors in any 10 years

    Actually this could be easily done through the export into excel.

    Run a constituent export with:

    Constituent ID, Name, and any other fields you might need in the export, plus 10 summary totals. Each summary total would indicate different period of time ( I assume fiscal years).

     

    If you do not want to use export, you could use a query to basically do the same thing, having 10 different summaries for each period using the OR operator.

     

    Mark Zarbailov
    Director of Database Services
    Ethical Culture Fieldston School
    212-712-6240
  • 01-22-2009 2:34 PM In reply to

    • Drew Allen
    • Top 10 Contributor
    • Posts 514
    • Organization: Children's Hospital of Philadelphia
    • Products:  The Information Edge, The Raiser's Edge

    Re: Complex Query: $300+ donors in any 10 years

    There are a couple of problems doing this in Excel, particularly the way that you suggest.

    First and foremost is Excel (depending on version) only supports about 65,000 rows.  Many organizations have more constituents than that, so the export file would be truncated once they reach that point.

    Second, the question implied that the time periods may be different for different people. If you wanted to look specifically at ten constant time periods, there is no reason to resort to an export at all, since, as you later state, you can set up those time periods in query.

    Because the qualifying time periods are not constant across constituents, you need to use a gift export, which means that you'll hit the Excel row limits even more quickly.

    Finally, Excel also doesn't handle multiple levels of summary very well.  You can set up a pivot report for the first level of summary, but it will return all values, not just the ones that are $300+ and then it's not easy to get a count of the fiscal years that do meet that criteria.

    All in all, if you're going to do an export, you're much better off pulling this into Access than Excel.

    Drew

    J. Drew Allen
    The Children's Hospital of Philadelphia
  • 01-22-2009 3:18 PM In reply to

    • Mark Zarbailov
    • Top 100 Contributor
    • User Since: 2000
    • Posts 77
    • Organization: Ethical Culture Fieldston School
    • Products:  Blackbaud NetCommunity, Online Campus Community, The Education Edge, The Financial Edge, The Raiser's Edge, The Researcher's Edge

    Re: Complex Query: $300+ donors in any 10 years

    You totally right about excel limits (65,000). The latest version (2007) I believe supports 1,000,000 rows. But be on the safe side, Access would be the better choice.


    You can summarize all totals into one column true/false, by writing a nested IF statement that would check summary totals. There is a limit here too. Only seven layers of IF statements can be nested in excel.

    So, I guess the query or export into Access.

    Mark.

     

    Mark Zarbailov
    Director of Database Services
    Ethical Culture Fieldston School
    212-712-6240
  • 02-04-2009 12:13 PM In reply to

    Re: Complex Query: $300+ donors in any 10 years

    I get all my "non-consecutive" reports via Pivot Reports.  You can show a column for each year, with rows for amount given in each year.  If the basic RE Pivot Report does not provide all the totals I want, I export it to Excel in order to add various sums and other functions.  I then use the resulting spread sheet to create an import file to add an Attribute to the those who meet the criteria I set.

     

     

    Filed under:
Page 1 of 1 (6 items)