Solved

SSRS Format

Posted on 2009-06-29
3
398 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 400 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 26

Assisted Solution

by:Chris Luttrell
Chris Luttrell earned 100 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now