HI All,
I currently have a report where i have a crosstab table that list staff and their respective logon time and break report. I would like to have a summary section at the top of the report and outside the cross tab so that we can indicate the staff with the heights break and the name of the staff.The orange area in the attachment.
Currently, i have attempted to use IFF function but it has not been successful as the true and false parts of the IFF functions are not only staff that meet the expression. I am currently using the following expression.
=IIF((Fields.BreakDuration) > 0 AND Exec('table2', (Fields.BreakDuration)) <= Exec('table2', Max(Fields.BreakDuration)),
"Highest Agent Break Time: " + Fields.AgentName + " - " + Format("{0:00}:{1:00}:{2:00}"
, Truncate((Max(Fields.BreakDuration)) / 1000 / 3600)
, Truncate(((Max(Fields.BreakDuration)) /1000/60) MOD 60)
, Truncate(((Max(Fields.BreakDuration)) / 1000) MOD 60)
),"No Break Time ")