Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SUM by Group

Posted on 2006-07-03
2
Medium Priority
?
570 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
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 …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 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