|
|
Question : Present multiple IFF statements on a single column
|
|
There is a web application that stores all the employee information. I am building a report that shows the efficiency of the managers and generates a nice report for upper management.
In the report, there is a column that says Reason for Alert. I want to display information such as New Hire, Change of Name, Termination and such.. the data that comes from the db is stored in different columns and have different names ( 0,1) and i have to convert it to IFF statements.
Before, if i wanted to report 0,1,2 from the same column, i can easily use the Switch () formulae stating that if 0 then TRUE, 1, FAlse, 2 MAYBE.
But now for the information to show, i have a column that has hire date from the HireDate column, Termination Date from the SeprateDate Column, Change of name from the NAMECHANGE column.. How can i add it all together to where it shows all of that in one column and i can rename it for reporting sakes to say TERMINATED,CHANGE OF NAME and NEW HIRE just like a SWITCH STATEMENT.
Also, some of the info comes in this format: 1.Active = Active / Not active 2.HireDate - old hiredate/new hire date.. So the last digits change according to modification.
Let me know if you would have a clue on this.. as i have no idea..
Thanks
|
Answer : Present multiple IFF statements on a single column
|
|
Like I said in the other post, You can write the similar Switch Code in the Report Properties-> Code Tab and tehn call it in the expression for the column.mination
or You can also have nested IIf statement in the expression like : IIf(IsNothing(Fields!termDt.Value),IIf(IsNothing(Fields!NewHiredt.Value),IIF(IsNothing(Fields!HireDt.Value), IIF(IsNothing(Fields!NameChanged.Value),"","Name Changed"),"Hired Before"),"New Hire"),"Terminated")
|
|
|
|
|