Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

IIF In SSRS With Opposite Of = For A List

$
0
0

I am trying to build a Expression using IIF with the opposite of this in a calculated field:

=IIF((Fields!DEPARTMENT_CODE.Value = "22700") OR (Fields!DEPARTMENT_CODE.Value = "22800") OR (Fields!DEPARTMENT_CODE.Value = "22900") OR (Fields!DEPARTMENT_CODE.Value = "23000") OR (Fields!DEPARTMENT_CODE.Value = "2350") OR (Fields!DEPARTMENT_CODE.Value = "23800") OR (Fields!DEPARTMENT_CODE.Value = "23900") OR (Fields!DEPARTMENT_CODE.Value = "24000") OR (Fields!DEPARTMENT_CODE.Value = "24100") OR (Fields!DEPARTMENT_CODE.Value = "24200") OR (Fields!DEPARTMENT_CODE.Value = "24300"),1,0)

I have tried <>, AND, AND NOT, and XOR which all seem to yield the same results.  Any suggestions would be greatly appreciated!

Thanks in advance! Brett


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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