Jump to content

Nick Gigliotti

Seeq Team
  • Posts

    6
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. Nick Gigliotti's post in Scorecard Metric with Signal Name / Display Signal Name for the Maximum of a number of Signals was marked as the answer   
    As a user, I would like to be able to display the name of the maximum signal in an organizer this will help simplify troubleshooting. Is there anyway to do this?
    This is relatively simple using Formula and the splice() function. 
    The main trick is getting the string value into the scorecard metric. This can be done by creating a scorecard metric with no statistics to create a scorecard that just displays the value of this string. I have shown an example of this below. 

     
    This functionality is very useful if you want to create a string signal that has more than one value. For example, say that I have three signals. I want to create a scorecard metric that tells me which of these three signals is the largest at any point in time.
     

    I will start by creating a signal who's value at any given time is the corresponding name of the signal with the max value. This can be done relatively easy with formula using the max() and splice() functions.

    Example Formula: 
    $maxValue =  $s1.max($s2).max($s3) 'No Max'.splice('Signal1 is Max', $s1 == $maxValue) .splice('Signal2 is Max', $s2 == $maxValue) .splice('Signal3 is Max', $s3 == $maxValue) The following shows the result of the formula.

     
    Finally, I'll use Simple Scorecard again to create a metric that displays this Max Signal for use in Organizer Topics.

    Content Verified DEC2023
×
×
  • Create New...