Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Report Design
Message Icon Topic: Combine Data Post Reply Post New Topic
Author Message
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Topic: Combine Data
    Posted: 27 Jul 2023 at 7:48am
I have a report created by someone no longer with the company, whose CR skills FAR exceed my extremely basic knowledge. He wrote a daily report that sums job tickets by day by customer, except for one category of customer that is listed by individual job. His formula field that does this is below.

Shared MiscTotal as Number

formula = GroupName ({Ticket.CustomerName})
if left({Ticket.CustomerNum},1)="W" then
    formula="!Misc! - "+GroupName ({Ticket.CustomerName})
    MiscTotal=MiscTotal+Sum ({@Ticket Total}, {Ticket.CustomerName})
end if


Any ideas how I can tweak this so that all orders from customers whose customer # begins with W are added together as one total, instead of each order listed separately?

Thanks!
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 07 Sep 2023 at 11:55am
I realize that I am really late to this...
Would you just remove the IF clause to accomplish this?

HTH
IP IP Logged
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Posted: 08 Sep 2023 at 3:52am
I'll give that a try. Probably be next week before I get a chance to look at it. I'll let you know. Thanks.
IP IP Logged
bjfils
Newbie
Newbie


Joined: 03 Apr 2016
Online Status: Offline
Posts: 31
Quote bjfils Replybullet Posted: 15 Sep 2023 at 10:18am
All that does is remove some text the prepends the customer name so instead of showing !Misc! - ABC Co, it just shows ABC Co.
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.031 seconds.