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 2: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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 710
1 OriginalGriff 543
2 Abhinav S 318
3 thatraja 245
4 Tadit Dash 140
0 Sergey Alexandrovich Kryukov 8,322
1 OriginalGriff 4,790
2 Peter Leow 3,784
3 Maciej Los 3,515
4 Er. Puneet Goel 3,107


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