CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Tracking donors by approximate age when no birdate is known?
Pages: [1]

Author Topic: Tracking donors by approximate age when no birdate is known?  (Read 528 times)

paco verde

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
Tracking donors by approximate age when no birdate is known?
May 20, 2011, 11:19:49 am
Our donor liaison has requested the ability to segregate our donors based upon age. Unfortunately, we do not know the birthdate of virtually any of our donors, and she doesn't want to start calling up donors to ask them their birthday (too creepy.)

I suggested rather than putting some kind of fictitious value into the "date of birth" field that we add a new field named something like "estimated age" or "approximate age" that would allow us group donors more or less by generation without putting known incorrect data into the standard "date of birth" field. I suppose we could even eventually configure a trigger to increment by one the value in this new field every year.

Does this seem like a reasonable approach, or is there another common way to handle this problem?

Thanks,

Glenn Gillis
IT Manager
Environmental Law Alliance Worldwide
http://www.elaw.org

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Tracking donors by approximate age when no birdate is known?
May 20, 2011, 12:40:44 pm

Seems like a reasonable approach. Might want to use a custom data group with three fields:

approx age
date created
date last modified

and then update the approx age based on date created and date last modified via triggers / stored procedure / cron job

You can potentially optimize it and store one date only

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Tracking donors by approximate age when no birdate is known?

This forum was archived on 2017-11-26.