[Ry...] Posted yesterday at 03:18 PM Share Posted yesterday at 03:18 PM (edited) Good Morning, I am trying to figure out a formula that I can put into a result element to always show a positive value. I want to find the maximum result from 10 result elements, but if any of the results are negative, the maximum result characteristic does not consider the value. My formula is finding the difference of actual x and nominal x from 10 points. I do not have a lot of experience with functions in Calypso. Any help or advice would be appreciated. Edited yesterday at 03:21 PM Link to comment Share on other sites More sharing options...
[Ca...] Posted yesterday at 03:43 PM Share Posted yesterday at 03:43 PM Hi Ryan, If I am following correctly, could you pull in a max and min result (under Size - More) to find the most positive and most negative results. Then, use one result element to find the absolute value of the minimum result (to make it positive) - something like: abs(Min Result).actual Then you have one result element showing the positive minimum value and a maximum result characteristic, then you can pull both of those into another maximum result to get the maximum between those two which would give you then the largest deviation. An example of using something similar can be found in this Knowledge Base article: https://portal.zeiss.com/knowledge-base?id=2495545 Link to comment Share on other sites More sharing options...
[Ry...] Posted yesterday at 03:49 PM Author Share Posted yesterday at 03:49 PM Please sign in to view this username. This worked perfectly! Thank you for your suggestion!! I did some research before posting this question and was struggling with getting the abs function to work originally. Wasn't aware that I needed to put parenthesis around the minimum result actual. Thank you so much Link to comment Share on other sites More sharing options...
[Ca...] Posted yesterday at 04:11 PM Share Posted yesterday at 04:11 PM Great! So glad! One place you can check for correct for formatting if you're struggling in the future is the PCM manual which can be found with every CALYPSO install here: C:\Program Files\Zeiss\CALYPSO 7.8\userinfo\manuals\en-US. You can sometimes search it for what you're trying to do and it'll show you the formatting. If you're just browsing, page 73 is where it starts showing a lot of the mathematical expressions. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in