Hi there.
I'm currently using Microsoft Visual Studio 2005 to design reports that were previously done through crystal. I'm having difficulty recreating a formula field based on the If condition. The following is a shortened version of what I have used in Crystal:
if {Table.Product} = "X-RECO-S-30,000IUPFS" THEN 30000 ELSE
IF {Table.Product} = "X-RECO-C-20,000IU" THEN 20000 ELSE
"Not Applicable"
this is how I've translated it in Reporting Services
=IIf(Fields!Product.Value="X-RECO-S-30,000IUPFS",30000, IIf(Fields!Product.Value="X-RECO-C-20,000IU",20000,"Not Applicable"))
This field always returns Not Applicable regardless of what is in the Product field. Any ideas why?
Thanks
I'm currently using Microsoft Visual Studio 2005 to design reports that were previously done through crystal. I'm having difficulty recreating a formula field based on the If condition. The following is a shortened version of what I have used in Crystal:
if {Table.Product} = "X-RECO-S-30,000IUPFS" THEN 30000 ELSE
IF {Table.Product} = "X-RECO-C-20,000IU" THEN 20000 ELSE
"Not Applicable"
this is how I've translated it in Reporting Services
=IIf(Fields!Product.Value="X-RECO-S-30,000IUPFS",30000, IIf(Fields!Product.Value="X-RECO-C-20,000IU",20000,"Not Applicable"))
This field always returns Not Applicable regardless of what is in the Product field. Any ideas why?
Thanks