Finding the Child Containing the Maximum Value in the Rollup Section

Hello,

I would like to ask a question about rollups in PI AF.

 

In Analyze, there is an option to perform a rollup from a parent element to its child elements. I have a uniform template for all child elements, which includes a field of type

float64. Each child element has a different value in this field. For the parent element, I performed a rollup of type "Maximum" to find the maximum value among all the child elements. I then stored this maximum value in a variable (an AF attribute).

 

My question is as follows: This method identifies the maximum value, but how can I determine which child element has this maximum value? Each child element has a field called "unit".

 

How can I extract the value of the "unit" field for the child element that has the maximum value?

 

I would greatly appreciate your assistance with this matter, as it is very important to me. I am looking forward to your response. Thank you in advance for your help!

Parents Reply Children