简体   繁体   中英

SSRS IIF statement issue

Trying to figure out why my IIF statement is not populating anything, and I'm sure it's something incorrect. I am trying to display a row only if the Team is "A Team" and the StatusID is 10, and here is the expression.

=iif((Fields!Team.Value="A Team") and (Fields!StatusID.Value=10), True,False)

Try

=iif((Fields!Team.Value LIKE "%A%") and (Fields!StatusID.Value=10), True,False)

If that works try taking off the wildcards one by one and see if that still works or adding Team and the space, it could be the spacing or formating of the Team.

SSRS is case sensitive. Try this
=iif((UCASE$(Fields!Team.Value) LIKE "A%TEAM") and (Fields!StatusID.Value=10), True,False)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM