Login / Register  search  syndication

          George Jensen's Blog

George Jensen on Reporting, Business Intelligence, Crystal Reports, Visual Analyzer, and more.

The DateRange Functions

Business Objects Crystal Reports comes with some really nice standard functions that make working with your data very easy.  I have been working on series of blog posts that introduces some of these functions to help SalesLogix report writers with their efforts.  Today I will focus on the start writing about function under the category of "Date Ranges"  The first set we will look at are the aging, more specifically Aged0to30Days, Aged31to60Days, and Aged61to90Days.

The function looks at the current date and depending on the function being used will return records that fall within the date range. 

The syntax for the formula is very basic:

{Table.DateField} in Aged0to30Day

So in SalesLogix, if I wanted to create a quick report that list all of Accounts created within the last 30 days I could write this Record Selection formula:

{ACCOUNT.CREATEDATE} in Aged0To30Days

To expand the functionality for my users, I could add a parameter with some choices like "0 - 30 Days" which will allow my users to select which of the three functions they want to use, my Record Selection Formula will then look like this.

if {?DateRange} = "0 - 30 Days" then {ACCOUNT.CREATEDATE} in Aged0To30Days
else
if {?DateRange} = "31 - 60 Days" then {ACCOUNT.CREATEDATE} in Aged31To60Days
else
if {?DateRange} = "61 - 90 Days" then {ACCOUNT.CREATEDATE} in Aged61To90Days

We could even go a little bit farther and add to our parameter some values like "Last 60 Days" and "Last 90 Days".  Then again edit our Record Selection formula and add:

else
if {?DateRange} = "Last 60 Days" then {ACCOUNT.CREATEDATE} in Aged0To30Days or {ACCOUNT.CREATEDATE} in Aged31To60Days
else
if {?DateRange} = "Last 90 Days" then {ACCOUNT.CREATEDATE} in Aged0To30Days or {ACCOUNT.CREATEDATE} in Aged31To60Days or {ACCOUNT.CREATEDATE} in Aged61To90Days

Nothing real fancy here.  I am sure there are other ways to get this same thing accomplished but I hope this gives some of the new users out there an idea of how to use these functions. 

Happy New Year!

Please have a plan and Stay Safe

What's This?
Bookmark and Share

About George Jensen

   George Jensen is a Senior Developer for Customer FX Corporation.


Related Content
   Searching for Matching Records in the SalesLogix Web Client
In this short video the user will learn how to search for matching records while adding new records to th
Posted on Mar 10, 2010 by Dale Richter to Tech Talk
 
   Opening Several Records in the SalesLogix Web Client
This webinar will show the user how to open several records at one time. Often you would like to be able
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
   The "What's New" Feature in SalesLogix Web Client
This webinar will focus on the functionality of the "What's New" Feature. This feature all
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
   Converting a Lead in SalesLogix Web Client
This webinar will teach the user how to convert a Lead into an Account/Contact in your database. Leads a
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
   Creating Lead Qualifications in SalesLogix Web Client
In this webinar the user will learn how create Lead Qualification questions necessary to qualify a lead
Posted on Mar 10, 2010 by Dale Richter to SalesLogix Training
 
Comments

 

Twitter Trackbacks for The DateRange Functions - George Jensen's Blog [customerfx.com] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 The DateRange Functions - George Jensen's Blog         [customerfx.com]        on Topsy.com

December 29, 2009 3:07 PM

Leave a Comment

(required)  
(optional)
(required)  
Add
All contents Copyright © 2010 Customer FX Corporation
Customer FX Corporation
2324 University Avenue West, Suite 115
Saint Paul, Minnesota 55114
Tel: 800.728.5783

  Follow @CustomerFX on twitter
Follow the best news, tips, and articles
  Subscribe to Customer FX on youtube
Watch SalesLogix tutorial videos from Customer FX
Login / Register