Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2016 : Report Design
Message Icon Topic: Incrementing a Number on a Change of Group Post Reply Post New Topic
Author Message
jsh8286
Newbie
Newbie
Avatar

Joined: 09 Mar 2012
Online Status: Offline
Posts: 31
Quote jsh8286 Replybullet Topic: Incrementing a Number on a Change of Group
    Posted: 09 Jun 2020 at 5:22am
We have a report where we have generated a "fake" number detail field formula to return a value of '1'(this is a number).

The report is grouped by invoice description for an invoice.

So at the moment the '1' previously mentioned appears as '1' obviously in each group for every detail line.

What we want is for this number to increment by '1' for each group listed.

So for the first group each detail line would return:
1
2 group 2
3 group 3
4 group 4
5 and so on

Hope this makes sense.

Thanks in advance for any info posted.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1545
Quote kevlray Replybullet Posted: 10 Jun 2020 at 5:16am
Does the built in Special Field Group Number work for you?
IP IP Logged
jsh8286
Newbie
Newbie
Avatar

Joined: 09 Mar 2012
Online Status: Offline
Posts: 31
Quote jsh8286 Replybullet Posted: 10 Jun 2020 at 7:26am
Sorry don't know what you mean. Could you expand?

Thanks for your input.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9048
Quote DBlank Replybullet Posted: 10 Jun 2020 at 10:28am
In Field Explorer, look at the 'Special Fields' section and select the field called 'Group Number' This is available if you have created a group in your report. If you have could. If you use that special field in your report canvas it will display the number you described. If that does not work you can create a Running Total and use it.
IP IP Logged
jsh8286
Newbie
Newbie
Avatar

Joined: 09 Mar 2012
Online Status: Offline
Posts: 31
Quote jsh8286 Replybullet Posted: 11 Jun 2020 at 6:22am
OMG do I feel like an idiot (nothing new

Thanks DBlank. Never used that field before never even dawwned on me to look.

Works perfect!

Thanks again.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
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



This page was generated in 0.018 seconds.