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

Count formulae

Status
Not open for further replies.

syedmca

Technical User
Jul 28, 2007
16
IN
Hi,

I am beginner in crystal reports I want to calcultate a total timetaken by formtype by suing the formule
total timetaken formtype= count(TOtalformtype)* (max(endtime)-min(starttime))/100 .How can I do this in crystal reports .I mean to say how to write formule for this


Form_ type Tota formtype totaltimetaken
Form_type
HH:MM
AAAA
AAAA
AAAA
AAAA
AAAA 4





BBBBB
BBBBB 2
 
Insert a group on form_type, and then create a formula:

datediff("n",minimum({table.start_time},{table.form_type}),maximum({table.end_time},{table.form_type})

This would return the number of minutes per formtype. Not sure why you would want to multiply that by the count for the formtype or why you would divide by 100.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top