I am using Visual Studio to create a Report. I am having a problem getting the appropriate value into a text field. Bare with me, because I am new to using Report Designer.
I have a DataSet with these values:
InfoPathFormsWorkflow
AvgProcessTime_Sum
AvgProcessTime_Count
This DataSet will only have 1 or 2 values in it. It is being populated by an InfoPath form (the values in the DataSet are all accurate and working).
InfoPathFormsWorkflow is either "Close" or "Open". I currently have 2 text fields with these expressions:
=IIF(Fields!InfoPathFormsWorkflow.Value = "Closed",Fields!AvgProcessTime_Sum.Value / Fields!AvgProcessTime_Count.Value,"No Value")
=IIF(Fields!InfoPathFormsWorkflow.Value = "Open",Fields!AvgProcessTime_Sum.Value / Fields!AvgProcessTime_Count.Value,"No Value")
When the DataSet only has 1 value (either with "Open" or "Close") that text field will display correctly, but when the DataSet has 2 values (both "Close" and "Open" entries) then only the fist one will display correctly and the second one will display "No Value". So if the first row has InfoPathFormsWorkflow.value = "Close" then it will work but the "Open" will not. Or visa versa.
Is there a trick to selecting the right row entry? I have read a bit about using Parameters, but I cant seem to understand how that works. Any help would be great! This got handed to me after another worker here spend 80 hours on it. I would rather get this working faster than that! Thanks