Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

Crystal report comparing two Running total fields?

Hi Experts, Please help me creating my report
i do have two total running fields which a summary of sum formula:
problem is how can i show wich of the two has higher value?

exaample

RUNNINGTOTAL1            RUNNINGTOTAL2
             2                                        3

i must show in report RUNNINGTOTAL2 since it has higher value:

tried using this formula but didnt work it shows only blank section:
IF RUNNINGTOTAL1 > RUNNINGTOTAL2 THEN
                 RUNNINGTOTAL1  ELSE
RUNNINGTOTAL2

please help guys



-karlo
0
karlo mark medina
Asked:
karlo mark medina
2 Solutions
 
mlmccCommented:
What didn't work?

Are any of the values NULL?


If you put the running totals in that section what values do you see?

mlmcc
0
 
James0628Commented:
Basically, what mlmcc said.  :-)  What you tried to do _seems_ OK, and a blank result does suggest that nulls might be the problem.

 FWIW, a simpler way to do what you described would be something like
Maximum ( [ {#rtotal1}, {#rtotal2} ] )

 But what you described should work too, so I would try to figure out why that isn't working first.

 James
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now