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

Error in an expression using IN operator or using OR statement

$
0
0

Can anybody see an error in the following SSRS expression?  It's giving me an error when I run the report. 

I simply want to check if WorkflowCode is FINALRO or DRRO or DELRO and TemporaryPermanent is 1 then make it 0 otherwise make it 1.

I basically want to use an "IN" operator.

=IIF (LTRIM(RTRIM(Fields!WorkflowCode.Value="FINALRO")) OR

        LTRIM(RTRIM(Fields!WorkflowCode.Value="DRRO      "))OR

        LTRIM(RTRIM(Fields!WorkflowCode.Value="DELRO     "))AND

        Fields!TemporaryPermanent.Value = 1,0,1)


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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