![]()  | 
 
[SOLVED] GroupRow SumSub With SubTotals | 
 
    Post Reply  
   | 
  
| Author | |
   
   Xander75  
   
   Senior Member  
    
   Joined: 26 April 2007 Status: Offline Points: 353  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: [SOLVED] GroupRow SumSub With SubTotalsPosted: 24 September 2010 at 7:44am  | 
 
| 
   
    
   
Hi, 
   
  I have used the following code to correctly add a Total to the GroupRow column of my choice, I am also aware of the limitation of the calculation if the column numeric values contains a comma. 
 What I would like to know is if there is anyway in which to divide the GroupFormula by 2, or even loop through and only select the Rows required to add to the SUMSUB calculation? The reason I ask is that my child rows contain Sub Totals, therefore the SUMSUB calculation is doubling up the Total in the GroupRow. ![]() I have tried to fix this but I have not yet found a solution to this issue.  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) v15.3.1  
   
  Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 September 2010 at 5:58am | 
 
| 
   
    
   Hi, 
 
   
  How do you create the subtotals? Is it just reportitem?  
Can you upload small demo? 
 | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.0.2 
 
   
  Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option....  | 
 |
![]()  | 
 |
   
   Xander75  
   
   Senior Member  
    
   Joined: 26 April 2007 Status: Offline Points: 353  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 September 2010 at 5:04am | 
 
| 
   
    
   Hi, 
   
  You're correct, the Subtotals are just an extra ReportItem that I use prior to adding any new data that does not match that of the previous record. Then I use the BeforeDrawRow to do the colouring, font bold & underline.  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) v15.3.1  
   
  Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 27 September 2010 at 12:36pm | 
 
| 
   
    
   Hi,
 
   
  Use same event (BeforeDrawRow event) and use Metrics object to show value. Metrics.Text supports Markup as well.  
 | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.0.2 
 
   
  Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option....  | 
 |
![]()  | 
 |
   
   Xander75  
   
   Senior Member  
    
   Joined: 26 April 2007 Status: Offline Points: 353  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 28 September 2010 at 4:53am | 
 
| 
   
    
   
Thanks Aaron!!! 
   
  Using your suggestion I have managed to resolve the issue I had with the Group Row SUMSUB calculation. ![]() I had to overcome the FormatNumber issue too, so I will post the following code for anyone else who has had this issue in the past, present or future! 
  | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) v15.3.1  
   
  Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)  | 
 |
![]()  | 
 |
   
   SHAN  
   
   Groupie  
    
   Joined: 17 July 2010 Location: Dubai Status: Offline Points: 73  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 29 September 2010 at 11:57am | 
 
| 
   
    
   Hi,
 
   
  Please add this  types of Code  in Code snipplet topic   
This will help lot of Users to quickly view by topic.... 
    | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) version 15.0.2 
 
   
  Platform: Windows 7 Professional Language: Visual Basic 6.0  | 
 |
![]()  | 
 |
   
   RJAMIN  
   
   Newbie  
   Joined: 29 September 2010 Location: Houston, TX Status: Offline Points: 5  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 05 October 2010 at 4:03pm | 
 
| 
   
    Do you allow additional grouping or real-time grouping (User can drag and drop column to group by)?  | 
 |
![]()  | 
 |
   
   Xander75  
   
   Senior Member  
    
   Joined: 26 April 2007 Status: Offline Points: 353  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 18 October 2010 at 3:22am | 
 
| 
   
    
   @ RJAMIN
 
   
  The short answer is "no"! The requirement I had was for a static report were the report was grouped exactly as required with no need for further manipulation. 
    | 
 |
| 
   
     
     Product: Xtreme SuitePro (ActiveX) v15.3.1  
   
  Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |