Description: Resolves a global reason by name and sums durations for that reason and all descendants in the selected container.
Calling convention: SumIfReasonName ("ReasonName": String, "ReasonContainerName": String): Float
Parameters:
ReasonName: global reason name.
ReasonContainerName: reason-container entry in the current record.
Returns: Total duration, or 0 when there are no matches. NULL is returned for an unknown reason name or when no current record is available.
Availability: Default; requires a current record, a valid global reason name, and a valid reason container.
Example:
Total := SumIfReasonName("Mechanical", "DowntimeReasons");