Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 23rd, 2006, 05:49 AM
Registered User
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Restart new group number in Group Footer

Hi, All.

I need to display record in Group Footer, which is the group number will be started to beginning for each group.
Here is my sample record in footer group and need to be displayed as follow:

Group A
No. Qty
1 50
2 30
3 20

Group B
No. Qty
1 10
2 20
3 40

Now, I'm trying to insert the group number, but the display is not as I expected.

Here is the sample:
Group A
No. Qty
1 50
2 30
3 20

Group B
No. Qty
4 10
5 20
6 40


Best Regards,


Reply With Quote
  #2 (permalink)  
Old August 31st, 2006, 10:46 AM
Authorized User
Join Date: Dec 2004
Location: flushing, ny, USA.
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts

create 2 formulas one that increments counts for each group and one to reset the value.
Reply With Quote
  #3 (permalink)  
Old October 13th, 2006, 12:11 PM
Registered User
Join Date: Oct 2006
Location: Edmonds, WA, USA.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

Alternatively, you can create a Running Total Field on your group title (use "count" or "distinct count") that resets on a change of your group title. In your example, you'd be receiving 3 rows of data per group, each with the same group title (e.g. "Group A"), and the RTF would count 'em 1, 2, 3, and reset the counter upon every change of the group title. Then just drag your new RTF onto your report where you want the number to appear (left of your Qty in your example).

Hope that helps.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting a number range from tag attribute group maikm XSLT 6 August 25th, 2008 04:54 PM
Group Within another Group, xslt1.0 jhansib4u BOOK: XSLT Programmer's Reference, 2nd Edition 4 November 22nd, 2007 01:24 AM
How can i create a number of page of group?? tetrap Crystal Reports 0 September 10th, 2006 10:08 AM
Group by , Sub Group by and Sum mateenmohd SQL Server 2000 1 March 29th, 2005 09:51 AM
Sorting based on formula in group footer NixyJ Crystal Reports 0 August 27th, 2004 06:37 AM

All times are GMT -4. The time now is 07:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.