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!

calculation of total hours

Status
Not open for further replies.

swetham

Programmer
May 5, 2010
257
DE
I have 2 groups, group1 and group 2. My database data is in this way,

emp group1 group2 hours date
e1 g1_0 g2_0 5 2010-06-01
e1 g1_0 g2_0 4 2010-06-01
e2 g1_1 g2_1 6 2010-06-05
e3 g1_2 g2_1 7 2010-02-04
e4 g1_0 g2_0 5 2010-06-01

I want the report as

Name 2010-06-01 2010-06-02 2010-06-03 2010-06-04 2010-06-05
g1_0 : g2_0

e1 9 0 0 0 0
e4 5 0 0 0 0

g1_1 : g2_1
e2 0 0 0 0 6

g1_2 : g2_1
e3 0 0 0 7 0


Now i created the manual crosstab report as,
1) created two groups using group expert g1,g2
2) Placed 'name','2010-06-01','2010-06-02','2010-06-03','2010-06-04','2010-06-05' text objects on the page header
3)in g2 header section i placed the 'emp' field and 5 formula field for the 5 date text objects and wrote formula for all the hours field as

if {Record.Record Date}='6/01/2010' then
{Record.Duration}
else
now ia m getting the report as,

Name 2010-06-01 2010-06-02 2010-06-03 2010-06-04 2010-06-05
g1_0 : g2_0

e4 5 0 0 0 0

g1_1 : g2_1
e2 0 0 0 0 6

g1_2 : g2_1
e3 0 0 0 7 0


Can anyone please help me out?
 
sorry i am getting the report as,



Name 2010-06-01 2010-06-02 2010-06-03 2010-06-04 2010-06-05
g1_0 : g2_0

e4 0 0 0 0 0

g1_1 : g2_1
e2 0 0 0 0 6

g1_2 : g2_1
e3 0 0 0 7 0
 
i have placed all the formula fields in details section ,now i am getting the report as,

Name 2010-06-01 2010-06-02 2010-06-03 2010-06-04 2010-06-05
g1_0 : g2_0

e1 5 0 0 0 0
e1 4 0 0 0 0
e4 5 0 0 0 0

g1_1 : g2_1
e2 0 0 0 0 6

g1_2 : g2_1
e3 0 0 0 7 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top