Avatar of mburk1968
mburk1968
Flag for United States of America asked on

SSRS Expression syntax with Iif Else

I have the following expression

=Iif(Parameters!ShowCost.Value="Y","Cost: " + CStr(Fields!std_cost.Value) + " ","") + Iif(Parameters!ShowPrice.Value="Y","Price: " + CStr(Fields!std_price.Value),"") + Iif(Fields!ETADate.Value="01/01/1900"," NO ETA"," ETA: " + CStr(Fields!ETADate.Value))

Open in new window


I need to change this section so that if the ShowPrice = "Margin" then Price would be NPrice
Iif(Parameters!ShowPrice.Value="Y","Price: " + CStr(Fields!std_price.Value),"") + 

Open in new window

* syntaxSSRS

Avatar of undefined
Last Comment
Arifhusen Ansari

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Arifhusen Ansari

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23