Inspection Sheet Possibilities
I am attempting to build an inspection sheet that will state if the dimension entered is within the specified tolerance. I have attached a screenshot of how I would like it to function, however after a week of reading the community pages. I have had little success in making it operational.
Current Setup(see attached): Column #1 (Data Entry-Multi Choice or Numeric). Column #2 (output based on Column #1, OK/Green, Out of Tolerance/Red) Column#3 (Section view, visual reference only)
I have had varied success with Column #2 as Text-Formula or Rich Text Formula using If statements with Greater Than, Less Than, and Equal to statements. ie. it does something but not the desired outcome.
Questions: Is my idea possible?
If so, Is Numeric/Multi Choice the correct choice for Column #1? Am I missing a step where I need to change the numeric into text and then apply the formula?
Any help or ideas on how to accomplish this would be greatly appreciated.
Regards,
Landon
Admittedly they don't make it easy.
try this
var text MyNumber = ToText([Measurement]);
var text NumberWithDecimalInTextFormat = $MyNumber
& If(not Contains($MyNumber,"."),"."); // deal with an exact integer measurement
var text IntegerPart = Left($NumberWithDecimalInTextFormat,".");
var text DecimalPart = PadRight(Right($NumberWithDecimalInTextFormat,"."),3,"0");
var text FinalResult = List(".", $IntegerPart, $DecimalPart);
If([Ø 0.328]<=0.333 and [Ø 0.328]>=0.323,"<span style='font-size: 15pt; text-align: left; color: green'>" & $FinalResult & "</span>",
[Ø 0.328]<0.323,"<span style='font-size: 15pt; text-align: left; color: red'>" & & $FinalResult & "</span>",
[Ø 0.328]>0.333,"<span style='font-size: 15pt; text-align: left; color: red'>" & & $FinalResult & "</span>")