Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

New to ssrs unable to get correct syntax for IF AND statment.

$
0
0

I have a formula I tested in exel that works but I cannot seem to be able to figure out the correct way to use Iif.

Formula:

=IIF(AND(Fields!Assigned_TO_SVD.Value="PI LAB INFR",Fields!Assigned_TO_SVD.Value<>Fields!Assigning_SVD.Value,Fields!Assigning_SVD.Value<>"PI BIL HST INFR",Fields!Action_Type.Value=1),Fields!Action_Date.Value-Fields!Start_Date.Value,IIF(AND(Fields!Assigned_TO_SVD.Value="PI BILHSTINFR",Fields!Assigned_TO_SVD.Value<>Fields!Assigning_SVD.Value,Fields!Assigning_SVD.Value<>"PI LAB INFR",Fields!Action_Type.Value=1),Fields!Action_Date.Value-Fields!Start_Date.Value,"N/A"))

I know this is not correct but not sure how to write it.

Thanks in advance for any assistance.


Viewing all articles
Browse latest Browse all 24955

Latest Images

Trending Articles



Latest Images

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