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

Sum and Average Values for a Max Summarized field

Status
Not open for further replies.

dhv919401

Programmer
Apr 26, 2004
34
CA
I have the following crosstab:
--------------Month------

District Year Quarter 1 2 3 Total
XX 2007 FirstQuarter 6.2 6.1 5.6 Avg(6.2,6.1,5.6)
YY 2007 FirstQuarter 1.1 1.3 0.4 Avg(1.1,1.3,0.4)
----- --- --- ----------------
Total Sum Sum Sum Sum of this row
(1, (2, (3,
6.2, 6.1, 5.6,
1.1) 1.3) 0.4)


1. I tried to put a running total but the problem is when it is switching to the next month.
2. I cannot create a group by district,year,quarter and month and put the crosstab in that group. Then the crosstab shows split by District.


Any idea how to do this?


 
You would have to remove the column field on months and use conditional formulas in your summaries to define the months, and then in the above example, you would have three summaries, Month 1, 2, and 3. You would then be able to use running totals in the formatting area that would allow you to do the average.

-LB
 
Can you give me a little more explanation please. I did not catch what you were saying in that.
Thank you for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top