I am trying to get images to display based on two conditions.
The first condition will always be the same, it is the second condition that would determine which image to display.
I tried using the following:
=IIF(Fields!ItemPrice.Value > 0 AND Parameters!Loc.Value = "1" OR Parameters!Loc.Value = "2","Img01")
IIF(Fields!ItemPrice.Value > 0 AND Parameters!Loc.Value = "3","Img02")
That of course, didn't work.
So, I tried using the SWITCH function. But when I use this, I get the red X.
=SWITCH (
Fields!ItemPrice.Value > 0,
Parameters!Loc.Value = "1" OR Parameters!Loc.Value = "2","Img01",
Parameters!Loc.Value = "3","Img02"
)
My image source is set to embedded and the images are in the images folder under the report data. I made sure I could see the images so I tried a simple IIF statement and the images display, just not under the conditions I would like them to.
=IIF(Fields!ItemPrice.Value > 0, "Img01", "Img02")
Any ideas?