Hello,
I am trying to automate a way to build control charts from a table formatted like below,
| Engine | 314-Date | 314-Parameter 1 | 314-parameter 2 | 314-Parameter ect. | 213-parameter 1 | 213- date | 241-parameter 1 | 241-parameter 2 | 241-Date |
| # | date | # | # | # | # | date | # | # | date |
| # | date | # | # | # | # | date | # | # | date |
I have this code which gets me close to what I want.
Rcols = dt << GetColumnNames( Continuous, String );
nw = New Window( "Control Charts", myVLB = V List Box() );
For( i = 1, i <= N Items( Rcols ), i++,
cc = Control Chart(
Sample Label( Column( dt, Rcols[1] ) ),
KSigma( 3 ),
Chart Col( Column( dt, Rcols[i] ), Levey Jennings )
);
myVLB << Append( Report( cc ) );
cc << close window;
);
However, the issue now is trying to find a way to make the sample label the correct date for the ID of the parameters. There are not equal amounts of parameters for each ID so the table is not uniform in that way, which also makes this a little more difficult.
Thanks!