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 PROBLEM 1

Status
Not open for further replies.

OLTU

Technical User
Feb 14, 2005
39
NL
EFFECTIVEDATE Sum of cube Cube Day Time
10/11/2004 1:00PM 10.31 monday 13.00
10/11/2004 2:00PM 22.39 monday 14.00
10/11/2004 3:00PM 17.68 monday 15.00
10/11/2004 4:00PM 27.55 monday 16.00
10/11/2004 5:00PM 3.71 monday 17.00
10/11/2004 8:00AM 21.65 monday 8.00
10/11/2004 9:00AM 9.84 monday 9.00
10/11/2004 10:00AM 11.25 monday 10.00
10/11/2004 11:00AM 19.40 monday 11.00
10/11/2004 12:00PM 5.49 monday 12.00
10/12/2004 1:00PM 19.43 tuesday 13.00
10/12/2004 2:00PM 7.63 tuesday 14.00
10/12/2004 3:00PM 10.17 tuesday 15.00
10/12/2004 4:00PM 31.19 tuesday 16.00
10/12/2004 8:00AM 3.47 tuesday 8.00
10/12/2004 9:00AM 13.38 tuesday 9.00
10/12/2004 10:00AM 10.04 tuesday 10.00
10/12/2004 11:00AM 14.78 tuesday 11.00
10/12/2004 12:00PM 8.79 tuesday 12.00
10/13/2004 1:00PM 11.55 wednesday 13.00
10/13/2004 2:00PM 17.31 wednesday 14.00
10/13/2004 3:00PM 12.14 wednesday 15.00
10/13/2004 4:00PM 5.87 wednesday 16.00
10/13/2004 8:00AM 6.42 wednesday 8.00
10/13/2004 9:00AM 7.98 wednesday 9.00
10/13/2004 10:00AM 6.84 wednesday 10.00
10/13/2004 11:00AM 9.01 wednesday 11.00
10/13/2004 12:00PM 8.77 wednesday 12.00
10/14/2004 1:00PM 16.46 thursday 13.00
10/14/2004 2:00PM 8.62 thursday 14.00
10/14/2004 3:00PM 9.93 thursday 15.00
10/14/2004 4:00PM 0.23 thursday 16.00
10/14/2004 8:00AM 5.72 thursday 8.00
10/14/2004 9:00AM 21.04 thursday 9.00
10/14/2004 10:00AM 10.69 thursday 10.00
10/14/2004 11:00AM 10.27 thursday 11.00
10/14/2004 12:00PM 5.86 thursday 12.00
10/15/2004 1:00PM 26.46 friday 13.00
10/15/2004 2:00PM 32.65 friday 14.00
10/15/2004 3:00PM 14.07 friday 15.00
10/15/2004 4:00PM 6.62 friday 16.00
10/15/2004 8:00AM 8.61 friday 8.00
10/15/2004 9:00AM 25.98 friday 9.00
10/15/2004 10:00AM 13.29 friday 10.00
10/15/2004 11:00AM 13.96 friday 11.00
10/15/2004 12:00PM 1.08 friday 12.00
10/18/2004 1:00PM 2.52 monday 13.00
10/18/2004 2:00PM 8.42 monday 14.00
10/18/2004 3:00PM 6.25 monday 15.00
10/18/2004 4:00PM 17.52 monday 16.00
10/18/2004 5:00PM 5.77 monday 17.00
10/18/2004 8:00AM 8.48 monday 8.00
10/18/2004 9:00AM 15.93 monday 9.00
10/18/2004 10:00AM 22.90 monday 10.00
10/18/2004 11:00AM 7.86 monday 11.00
10/18/2004 12:00PM 21.81 monday 12.00
10/19/2004 1:00PM 4.38 tuesday 13.00
10/19/2004 2:00PM 20.20 tuesday 14.00
10/19/2004 3:00PM 12.57 tuesday 15.00
10/19/2004 4:00PM 15.60 tuesday 16.00
10/19/2004 8:00AM 11.62 tuesday 8.00
10/19/2004 9:00AM 9.26 tuesday 9.00
10/19/2004 10:00AM 6.35 tuesday 10.00
10/19/2004 11:00AM 20.03 tuesday 11.00
10/19/2004 12:00PM 3.11 tuesday 12.00
10/20/2004 1:00PM 4.57 wednesday 13.00
10/20/2004 2:00PM 13.11 wednesday 14.00
10/20/2004 3:00PM 44.82 wednesday 15.00
10/20/2004 4:00PM 22.21 wednesday 16.00
10/20/2004 5:00PM 5.23 wednesday 17.00
10/20/2004 8:00AM 9.88 wednesday 8.00
10/20/2004 9:00AM 7.32 wednesday 9.00
10/20/2004 10:00AM 10.55 wednesday 10.00
10/20/2004 11:00AM 15.73 wednesday 11.00
10/20/2004 12:00PM 5.26 wednesday 12.00
10/21/2004 1:00PM 7.89 thursday 13.00
10/21/2004 2:00PM 6.78 thursday 14.00
10/21/2004 3:00PM 21.60 thursday 15.00
10/21/2004 4:00PM 5.03 thursday 16.00
10/21/2004 8:00AM 10.63 thursday 8.00
10/21/2004 9:00AM 27.36 thursday 9.00
10/21/2004 10:00AM 10.09 thursday 10.00
10/21/2004 11:00AM 10.41 thursday 11.00
10/21/2004 12:00PM 14.40 thursday 12.00
10/22/2004 1:00PM 2.86 friday 13.00
10/22/2004 2:00PM 15.75 friday 14.00
10/22/2004 3:00PM 21.16 friday 15.00
10/22/2004 4:00PM 0.88 friday 16.00
10/22/2004 8:00AM 13.95 friday 8.00
10/22/2004 9:00AM 14.03 friday 9.00
10/22/2004 10:00AM 5.37 friday 10.00
10/22/2004 11:00AM 20.02 friday 11.00
10/22/2004 12:00PM 14.35 friday 12.00
10/25/2004 1:00PM 17.04 monday 13.00
10/25/2004 2:00PM 18.97 monday 14.00


Can someone pls helps on below?
How can I get the grndtotal for sum of cube with the time 8.00 from every monday.

The Cubes are sum of cube!
 
With the data you provided

To get the Monday and 8:00 AM data

In your record selection, you could use

{table.cube_day = "monday" and
{table.cube_time} = 8

or if the date is a datetime field, then you could use

dayofweek({table.datetime}) = 2 and
hour({table.datetime}) = 8

Insert a grandtotal and just sum {table.sum_of_cube}

-LW
 
I'm trying to get the grntot like

all mondays with 8
all monday with 9
all mondays with 10 etc.

and the same for tuesday like

all tuesdays with 8
all tuesdays with 9
all tuesdays with 9 etc.

and for wednesday, thursday, friday excatly the same.

and aslo be informed that the cube data which I have provided as above is also a sum of cube,so I want to get the grndtot of these sum of cubes per day and time.

hope this explains the problem better.
 
Do you have the option of grouping? First group on {table.cubeday} and then on {table.time}. Then create three formulas:

//{@reset} to be placed in the time group header;
whileprintingrecords;
numbervar sumcube := 0;

//{@accum} to be placed in the detail section:
whileprintingrecords;
numbervar sumcube := sumcube + {@sumofcube};
//where {@sumofcube} is your existing cube summary formula

//{@display} to be placed in the time group footer:
whilerpintingrecords;
numbervar sumcube;

You could then drag the group names for day and time into the time group footer next to {@display} and then suppress the details section.

-LB
 
Lbass your solutions have helped me many times and perhaps I am oversimplifying here but couldn't Dadas simply create a running total by specifying the following:

Summary / Field to summarize: Sum of cube

Evaluate / Use formula: Cube Day = "Mondy" AND Time = "8:00" (Oversimplified the time here intentionally)

Reset / Never

And then place this running total in the report footer?


Thanks and best regards,
-Lloyd
 
Lloyd,

I thought Dadas was saying that "sum of cube" was already a summary, in which case it would not have been available for a running total using the expert. If "sum of cube" is a database field, then running totals would work or inserting summaries (sums) on conditional formulas of the form:


//{@Monday8}:
if {table.cube_day} = "monday" and
{table.cube_time} = 8 then {table.sumofcube}

-LB
 
Ibass,Lioyd,

"sum of cube" is a summary,however the solution which
Ibass gave helped me.

Thanks both for your support on this.[2thumbsup]

Rgds,MHP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top