Solved

Crystal report comparing two Running total fields?

Posted on 2014-10-13
2
642 Views
Last Modified: 2014-10-14
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
Comment
Question by:karlo mark medina
2 Comments
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 250 total points
ID: 40376963
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
 
LVL 34

Accepted Solution

by:
James0628 earned 250 total points
ID: 40379763
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
Hello, In my precious Article  (http://www.experts-exchange.com/Database/Reporting/A_15280-Create-Project-in-Microstrategy-Part-I.html)we saw the Configuration part for Microstrategy which included Metadata Creation and DataSource Preparation as …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question