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

Using "IN" or "OR" statement in SSRS

$
0
0

I would like to assign a value 1 to my expression if workflowcode is DRCP OR DRCOCP and TemporaryPermanent is 0


Is this expression valid?

=Sum(iif(Fields!WorkflowCode.Value = "DRCP"   And Fields!TemporaryPermanent.Value = 0, 1, 0)) OR
 Sum(iif(Fields!WorkflowCode.Value = "DRCOCP" And Fields!TemporaryPermanent.Value = 0, 1, 0))

OR


Is this expression valid?

=Sum(iif(Fields!WorkflowCode.Value = "DRCP" OR "DRCOCP" And Fields!TemporaryPermanent.Value = 0, 1, 0))

Thank you in advance!


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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