Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

multiple IIF's in SSRS

$
0
0

I have been playing with this for about an hour and figured I would reach out for some assistance. My eyes are ready to pop!

The SSRS statement below works except for the condition whenFields!CSHRCTYP.Value = 2. Instead of displaying "Credit Card" it displays "Check Number"

Invoice, finance charge, credit memo and checks all display correctly. Cash and Credit card do not. I think the issue is that I am not using the multiple IIF statements correctly.

Any thoughts would be greatly appreciated.

=IIF(FIELDS!RMDTYPAL.Value = 9 AND Fields!CSHRCTYP.Value = 0,"Check Number " + LTrim(RTrim(Fields!CHEKNMBR.Value)), IIF(Fields!CSHRCTYP.Value = 1,"Cash Payment" , IIF(Fields!CSHRCTYP.Value = 2, "Credit Card Payment", IIF(FIELDS!RMDTYPAL.Value = 1, "Invoice", IIF(FIELDS!RMDTYPAL.Value = 4, "Finance Change" , IIF(FIELDS!RMDTYPAL.Value = 7, "Credit...

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>