Jump to content
Private Messaging is activated - check "How to" on how to disable it ×

Formula to change result always to positive?


---
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

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

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

 Share

×
×
  • Create New...