Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SSRS
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 13-Dec-12 3:38am
Comments
@AmitGajjar at 13-Dec-12 8:40am
   
what you mean by concatenate ?
Member 9581488 at 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")
ryanb31 at 13-Dec-12 10:16am
   
You should post that as the solution. Good job.
Member 9581488 at 13-Dec-12 10:38am
   
Thank you!

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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")
  Permalink  
v2

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



Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100