Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Ranges and Grouping Issues

Status
Not open for further replies.

floydian99

Programmer
Oct 22, 2003
2
US
Hello, I need some help on Grouping a set of Date Ranges.

I have a request for a report that would summarize data (Hours worked) based on a Date Range (Start Date and End Date). However the users want to enter in multiple date ranges (no set amount). So I created a Date parameter, and selected the Allow multiple values and Range values options on the Parameter. The problem now is creating a group based on the values they entered in the date range. If anyone would know how to group by the array that is passed back from the date range parameter, or if there is another work around to this solution I'd be greatful. Thanks!
 
You could create a formula {@daterangegroups}:

if {table.date} in {?date}[1] then "First Group" else
if {table.date} in {?date}[2] then "Second Group" else
"Third Group" //add as many clauses as the maximum number of date ranges the user can enter

Then insert a group on {@daterangegroups}.

-LB
 
Thanks that helped kick start the ideas. Thanks for the help, its much appreciated. Got it to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top