Solved

SUM by Group

Posted on 2006-07-03
2
553 Views
Last Modified: 2013-12-24
 <cfoutput group="ReferralSourceIntake" query="......">
    <tr bgcolor="FFFFCC">
       <td>#ReferralSourceIntake#</td>
         <cfSet count = 1>
         <cfoutput>
             <cfif count NEQ 1>
                 </tr>
                 <tr>
                 <td>&nbsp;</td>
             </cfif>
                  
      <td>#dateformat("#IntakeDate#", "mm/dd/yyyy")#</td>
      <td>#TheCount#</td>
    </tr>
        <cfset count = count + 1>
      </cfoutput>
  </cfoutput>

I want to put SUM (= SUM of #TheCount#) of each group at the end of each group section.
How do you accomplish this?
0
Comment
Question by:ethanjohnsons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
mkishline earned 500 total points
ID: 17032001
<cfoutput group="ReferralSourceIntake" query="......">
    <tr bgcolor="FFFFCC">
       <td>#ReferralSourceIntake#</td>
         <cfset groupcount = 0 />
         <cfSet count = 1>
         <cfoutput>
             <cfif count NEQ 1>
                 </tr>
                 <tr>
                 <td>&nbsp;</td>
             </cfif>
               
      <td>#dateformat("#IntakeDate#", "mm/dd/yyyy")#</td>
      <td>#TheCount#</td>
    </tr>
       <cfset count = count + 1>
       <cfset groupcount = groupcount + TheCount />
     </cfoutput>
     #GroupCount#
  </cfoutput>
0
 

Author Comment

by:ethanjohnsons
ID: 17032247
great!
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IIS url rewrite rule for web application 3 65
SSL sertificate 5 75
DNS @ Naked Domain Record 5 112
Testing site for http code 200 or curl equiv for Windows 2 54
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question