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
I am trying to combine two different IIF expressions as one. Is that possible by using "and"?? and I dont want to concatenate it. Any suggessions??
Posted
Comments
AmitGajjar 13-Dec-12 8:40am    
what you mean by concatenate ?
Member 9581488 13-Dec-12 9:16am    
You can try the following
=IIf(Parameters!MyField1.Value="Month" And Parameters!MyField2.Value="Sale",
Iif(Sum(Fields!Total.Value) = 0, "Zero sum", "Non-zero sum"),
"Test")
ZurdoDev 13-Dec-12 10:16am    
You should post that as the solution. Good job.
Member 9581488 13-Dec-12 10:38am    
Thank you!

1 solution

You can try the following
=IIf(Parameters!MyField1.Value="Month" And Parameters!MyField2.Value="Sale",
Iif(Sum(Fields!Total.Value) = 0, "Zero sum", "Non-zero sum"),"Test")
 
Share this answer
 
v2

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