newjeep19
asked on
SSRS expression problem for VS2012 Report viewer report IIF
I have a report that I am building in Visual Studio Reportviewer. I need for one of the texboxes in the matrix(table) to compare two fields. The two fields equal certian data then in that textbox show the value (data) of a third field. Below is an example of what I am talking about.
=IIF(Fields!EDU_MARKET.Val ue = "21" AND Fields!EDU_CLASS_NM.Value = "Sales University", Fields!STAFFCNT21.Value,
IIF(Fields!EDU_MARKET.Valu e = "22" AND Fields!EDU_CLASS_NM.Value = "Sales University", Fields!STAFFCNT22.Value,
IIF(Fields!EDU_MARKET.Valu e = "23" AND Fields!EDU_CLASS_NM.Value = "Sales University", Fields!STAFFCNT23.Value,
IIF(Fields!EDU_MARKET.Valu e = "24" AND Fields!EDU_CLASS_NM.Value = "Sales University", Fields!STAFFCNT24.Value, etc.....
So In this examplr if EDU_MARKET equals 21 and EDU_CLASS_NM equals Sales University then display/show the data in STAFFCNT21
then proceed to the nes IIF statement.
=IIF(Fields!EDU_MARKET.Val
IIF(Fields!EDU_MARKET.Valu
IIF(Fields!EDU_MARKET.Valu
IIF(Fields!EDU_MARKET.Valu
So In this examplr if EDU_MARKET equals 21 and EDU_CLASS_NM equals Sales University then display/show the data in STAFFCNT21
then proceed to the nes IIF statement.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.