Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Formula Help!! Post Reply Post New Topic
<< Prev Page  of 3 Next >>
Author Message
venlisa
Newbie
Newbie
Avatar

Joined: 23 Sep 2015
Location: United States
Online Status: Offline
Posts: 12
Quote venlisa Replybullet Posted: 28 Oct 2015 at 7:21am
The Max on the formula field doesn't work. The error message shows "this field cannot be summarized" on that formula field.

Lisa
IP IP Logged
venlisa
Newbie
Newbie
Avatar

Joined: 23 Sep 2015
Location: United States
Online Status: Offline
Posts: 12
Quote venlisa Replybullet Posted: 28 Oct 2015 at 7:25am
The alternative...I could just highlight the maximum value on the formula field. Do you happen to know how to do that?

Thanks so much for your help!!
Lisa
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Oct 2015 at 8:01am
what is your exact formula that could not be summarized?

Edited by DBlank - 28 Oct 2015 at 8:02am
IP IP Logged
venlisa
Newbie
Newbie
Avatar

Joined: 23 Sep 2015
Location: United States
Online Status: Offline
Posts: 12
Quote venlisa Replybullet Posted: 28 Oct 2015 at 8:20am
If I use your formula: if {Status}="Completed" then {Sequence_No} else 0 - I can't get the result I want, because #50 became 0 since it has a released status.

So I changed the formula to:
if Previous({Status})="Completed" then {Sequence_No} else 0

Once I changed this formula, it became unable to summarize.

I don't understand why!!
Lisa
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Oct 2015 at 8:31am
previous and next functions cannot be summarized.

In you example you want #50 to be 0.
we want the highest completed item.
once we have that we can add the value of 1 (or perhaps you go by 10's) to that and it will be the 'next item' to do.
IN the below example you would have 40 as the max value. Add 10 to it and you get 50.
use that as your suppression formula
max(formula,jobid)+10 <> sequence
Whenever that is TRUE it will suppress essentially hiding sequences 10,20,30,40,60

Sequence#10 - Prep - Status: completed 10
Sequence#20 - Work - Status: released 0
Sequence#30 - Inspection - Status: completed 30
Sequence#40 - Repair - Status: completed 40
Sequence#50 - Inspection - Status: released 0
Sequence#60 - packing/Shipping - Status: released 0
IP IP Logged
venlisa
Newbie
Newbie
Avatar

Joined: 23 Sep 2015
Location: United States
Online Status: Offline
Posts: 12
Quote venlisa Replybullet Posted: 28 Oct 2015 at 8:56am
It worked!!! But then it created a different problem. The steps there we suppressed in your formula is showing blank lines. How do I get rid of all that blank lines??
Lisa
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Oct 2015 at 8:58am
where did you place your suppression formula?
IP IP Logged
venlisa
Newbie
Newbie
Avatar

Joined: 23 Sep 2015
Location: United States
Online Status: Offline
Posts: 12
Quote venlisa Replybullet Posted: 28 Oct 2015 at 9:08am
under Section Expert - Details - Suppress(no drill-down) the X-2 button.
Lisa
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 28 Oct 2015 at 9:10am
that should hide the 'lines'.
DO you mean you have groups with all the lines hidden that you need to also hide?
IP IP Logged
venlisa
Newbie
Newbie
Avatar

Joined: 23 Sep 2015
Location: United States
Online Status: Offline
Posts: 12
Quote venlisa Replybullet Posted: 28 Oct 2015 at 9:11am
wait, i fixed it, I just need to hide the group header area. Thank you so so much!!!!!
Lisa
IP IP Logged
<< Prev Page  of 3 Next >>
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.016 seconds.