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

iif and the or statement

$
0
0

hi guys, can please help me, can u please check whats wrong with this statement:

=IIF((Parameters!Grouping.Value <> "N" AND Parameters!InputOutputVat.Value = "O"),
Fields!ID.Value = 2 OR
Fields!ID.Value = 3 OR
Fields!ID.Value = 4 OR
Fields!ID.Value = 5 OR
Fields!ID.Value =6 OR
SUM(Fields!TcAmtSalesTax.Value),
IIF((Parameters!Grouping.Value <> "N" AND Parameters!InputOutputVat.Value = "I"),
Fields!ID.Value = 1 OR
Fields!ID.Value = 3 OR
Fields!ID.Value = 4 OR
Fields!ID.Value = 5 OR
Fields!ID.Value = 6 OR
SUM(Fields!TcAmtSalesTax.Value)
))

tnks


Viewing all articles
Browse latest Browse all 20764


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