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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summarize in Cross-Tabs per half hour

Status
Not open for further replies.

kate8

Programmer
Feb 14, 2001
184
US
Hi,
I create a report using Cross-Tabs in Crystal Report XI. I need to do summarize for every half hour. The records are grouped by a field which data type is TIME (is in DB2). So in Cross-Tap Expert, under the group option, I only can choose "for each hour”,” for each second"...there is NO "for 30 minutes/half hour". Is there a way I can do "The column will be printed" for each 30 minutes/half hour?

Thanks a lot for any help!!
 
Create a formula like this:

if minute({table.time}) < 30 then
"00 - 29" else
"30 - 59"

Then use this formula in your crosstab.

-LB
 
lbass,

Thanks a lot!!!
I have created the formula, but couldn't test it since our database is down now. I believe it will work.

Have a nice weekend!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top