Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi How to use Between-And in the iif condition of SSRS? I have to write expression for the below:

if(parameter=1, If (a>3 OR a<(-3)) display "Red", if the value of A is between -3 and 3 display "green")

I want to know the syntax how to write Between-And in SSRS..

Pls Help...
Posted
Comments
ZurdoDev 26-Dec-12 10:17am    
iif(parameter=1, iif(a>3 OR a<-3), red,green),"parameter is not 1") - something like that.
Zoltán Zörgő 26-Dec-12 14:34pm    
What about some feedback on this one?

1 solution

Not too sure, but sounds like you are looking for:
VB
=iif(parameter=1, iif(((a>-3) and (a<3)), "red", "green"), "Condition not met")


Here, have a look at the examples: MSDN: Expression Examples (Report Builder and SSRS)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900