reporting services - SSRS calculating IF THEN ELSE with nulls -
i trying create calculated field in ssrs dataset fields need summed have nulls , can't formula correct. below description of trying do
if value.field1 = 1 , value.field2 not null, use value.field2 otherwise use value.field3
i sure there simple answer this, new ssrs , can't seem find right answer.
you should able this. check value of field1 , boolean value of whether or not field2 null.
iif(fields!field1.value = 1 , isnothing(fields!field2.value) = 0, fields!field2.value, fields!field3.value)
the iif() statement ssrs structured in way:
iif(conditional logic , executed if evaluated true, executed if evaluated false)
Comments
Post a Comment