cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar

Add result column based on diffent binning result

I am not sure if this is even possible. I am trying to add final result column. In that I want to output first failure mode. Also if device pass in a retest I need pass as a result.

ConfidenceOwl94_0-1726767229729.png

 

3 REPLIES 3
jthi
Super User

Re: Add result column based on diffent binning result

Is it possible that SN is retested from good to bad?

 

Edit:

Going with the assumption of no

Names Default To Here(1);

dt = Open("$DOWNLOADS/Sample1.jmp");
dt << new column("OK", Character, Nominal, Formula(
	If(Col Max(Col Sum(:Bin == "Pass", :SN, :Run), :SN) == Col Number(:SN, :Run),
		"Pass"
	,
		:Bin[Col Min(If(:Bin != "Pass", Row(), .))];
	);
));


dt = Open("$DOWNLOADS/Sample2.jmp");
dt << new column("OK", Character, Nominal, Formula(
	If(Col Max(Col Sum(:Bin == "Pass", :SN, :Run), :SN) == Col Number(:SN, :Run),
		"Pass"
	,
		:Bin[Col Min(If(:Bin != "Pass", Row(), .))];
	);
));

Write();

This will create "OK" column for you from which you can get the formula

If(Col Max(Col Sum(:Bin == "Pass", :SN, :Run), :SN) == Col Number(:SN, :Run),
	"Pass",
	:Bin[Col Min(If(:Bin != "Pass", Row(), .))]
)
-Jarmo

Re: Add result column based on diffent binning result

Yes, you are right. It should not be possible. But it is possible because of tester error or instrument with poor GRR. Chances are really low and we can ignore that possibility for now.

 

Solution you gave did work for the given example. But when I applied it to with multiple SN, It did not worked. 

ConfidenceOwl94_0-1726774872351.png

 

jthi
Super User

Re: Add result column based on diffent binning result

It might be enough if you add :SN to the result and modify Col Number slightly (or even better change it to col sum of one)

If(Col Max(Col Sum(:Bin == "Pass", :SN, :Run), :SN) == Col Number(1, :SN, :Run),
	"Pass"
,
	:Bin[Col Min(If(:Bin != "Pass", Row(), .), :SN)]
)

-Jarmo

Recommended Articles