x
login about faq Site discussion (meta-askssc)

Getting boolean value in expression

=iif(Parameters!exce.Value=1,iif((Fields!LIMIT_AMOUNT.Value-Fields!BILL_AMOUNT.Value)>0,0,(Fields!BILL_AMOUNT.Value-Fields!LIMIT_AMOUNT.Value))>0,iif((Fields!LIMIT_AMOUNT.Value-Fields!BILL_AMOUNT.Value)>0,0,(Fields!BILL_AMOUNT.Value-Fields!LIMIT_AMOUNT.Value)))

this expression is giving an result as boolean like True or False, actually it should return suppose if the parameter exec value=1 then it should return all >0 values other wise it should return all the values.

more ▼

asked Mar 14 '12 at 07:35 AM in Default

Mohan gravatar image

Mohan
314 18 30 42

Can you please explain what you are trying to achieve? What does mean by "it should return all >0 values other wise it should return all the values"? You have to let us know whether it is a field expression, property expression etc?

Mar 14 '12 at 10:27 AM Usman Butt
(comments are locked)
10|1200 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x53

asked: Mar 14 '12 at 07:35 AM

Seen: 433 times

Last Updated: Mar 14 '12 at 10:27 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.