Click here to Skip to main content
12,244,489 members (42,902 online)
Rate this:
 
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 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")
ryanb31 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

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2016
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