使用 ssrs,我需要用 - 替换 0,用 + 替换 1

working with ssrs and i need to replace 0 with - and 1 with +

使用 SSRS,我需要在一个字段上将 0 替换为 - 并将 1 替换为 +,我尝试了一个嵌套的 iif 语句,但我找不到我做错了什么,它不起作用

=IIf(Fields!partyAA.Value="0", iif (Fields!partyAA.Value = "1", "+"),"-")

我怀疑你想要:

=IIf(Fields!partyAA.Value="0", "-", IIf (Fields!partyAA.Value = "1", "+", Fields!partyAA.Value))

这会将 0 变为 -,将 1 变为 +,并保持其他值不变。