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

x
?
Solved

SSRS Format

Posted on 2009-06-29
3
Medium Priority
?
420 Views
Last Modified: 2012-05-07
I have a question on Conditional Format. I have 2 fields
=Fields!Cost.Value
=Fields!OrderCost.Value


I want to make a new dataset or a textbox that displays the greater of the 2 which is the easies way to do it?
0
Comment
Question by:gotti777
3 Comments
 
LVL 8

Accepted Solution

by:
Hadush earned 1600 total points
ID: 24740214
You can just use expression  
Note: How would like to handle them if they are both equal?


=IIF (Fields!Cost.Value>Fields!OrderCost.Value, Fields!Cost.Value, Fields!OrderCost.Value)

Open in new window

0
 

Author Comment

by:gotti777
ID: 24740240
display ordercost .. i guess it dont matter snice there the same
0
 
LVL 27

Assisted Solution

by:Chris Luttrell
Chris Luttrell earned 400 total points
ID: 24742788
If you just want the greatest value, irregardless of which field it came from, then the code Hadush provided will work.  I ran some test to make sure nulls would not cause any deviations and between 2 numeric fields, it works fine.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

772 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