dianemarie
Instructor
Hello, we do a lot of If Then Else statements in Crystal, and I need to start converting them to SSRS. An example of (what I think of) as a nested if in Crystal:
if {ordhist.qtyopt} = "1" then "MAX" else
if {ordhist.qtyopt} = "2" then "ALL" else
if {ordhist.qtyopt} = "3" then "APPROX" else
if {ordhist.qtyopt} = "4" then "REUSE"
I've been working with the iif function in SSRS. I tried duplicating it similar to the way I would do it in Excel, but it doesn't like it. Ex: (it's only 2 of the 4 criteria but I stopped once it choked on me)
=iif(Fields!qtyopt.Value=1,"MAX",iif(Fields!qtyopt.Value=2,"ALL"))
Any help would be appreciated. I'm still searching Help as well but not having much luck. Thank you.
if {ordhist.qtyopt} = "1" then "MAX" else
if {ordhist.qtyopt} = "2" then "ALL" else
if {ordhist.qtyopt} = "3" then "APPROX" else
if {ordhist.qtyopt} = "4" then "REUSE"
I've been working with the iif function in SSRS. I tried duplicating it similar to the way I would do it in Excel, but it doesn't like it. Ex: (it's only 2 of the 4 criteria but I stopped once it choked on me)
=iif(Fields!qtyopt.Value=1,"MAX",iif(Fields!qtyopt.Value=2,"ALL"))
Any help would be appreciated. I'm still searching Help as well but not having much luck. Thank you.