cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-507339%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EProblema%20nella%20definizione%20del%20valore%20della%20cella%20come%20variabile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-507339%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%3C%2FP%3E%3CP%3EVoglio%20utilizzare%20i%20valori%20di%20un%20datatable%20come%20linee%20di%20riferimento%20su%20un%20grafico%20di%20variabilit%C3%A0%20basato%20su%20un%20datatable%20separato.%20Il%20mio%20codice%20attuale%20%C3%A8%20sotto%2C%20si%20spera%20che%20abbia%20senso%20come%20condiviso.%20Sto%20usando%20JMP%2015.2%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIl%20mio%20problema%20%C3%A8%20che%20quando%20eseguo%20tutto%20questo%20in%20una%20volta%2C%20non%20ottengo%20alcuna%20linea%20di%20riferimento%20sulla%20mia%20trama.%3C%2FP%3E%3CP%3ETuttavia%2C%20se%20eseguo%20prima%20solo%20la%20sezione%20prima%20di%20%22%2F%2FSPLIT%20POINT%22%20e%20quindi%20eseguo%20separatamente%20la%20sezione%20dopo%20%22%2F%2FSPLINT%20POINT%22%2C%20funziona%20senza%20problemi%20(le%20linee%20di%20riferimento%20sono%20visibili%20sul%20mio%20grafico).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUn%20ultimo%20punto%20%C3%A8%20che%20se%20lo%20uso%3C%2FP%3E%3CP%3EDestinazione%20%3D%20dt1_spec_limits%3A%3ANome(%20%22data_column_A%22%20)%5B1%5D%3C%2FP%3E%3CP%3Einvece%20di%3C%2FP%3E%3CP%3EDestinazione%20%3D%20dt1_spec_limits%3ANome(%22Graph_Target_line%22)%5B1%5D%3C%2FP%3E%3CP%3Ela%20linea%20di%20riferimento%20viene%20visualizzata%20sulla%20trama%2C%20anche%20quando%20l'intero%20script%20viene%20eseguito%20come%20uno.%20Quindi%20penso%20che%20abbia%20qualcosa%20a%20che%20fare%20con%20i%20calcoli%20che%20si%20aggiornano%20nel%20datatable%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEventuali%20approfondimenti%20sarebbero%20molto%20apprezzati%2C%20grazie.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CJSL%3E%3C%2FJSL%3E%3C%2FP%3E%3CP%3E%2F%2Funisciti%20a%20due%20datatable%20per%20creare%20una%20tabella%20dei%20limiti%20delle%20specifiche%3CBR%20%2F%3E%20dt1_spec_limits%20%3D%20dt1_mean_join%20%26lt%3B%26lt%3B%3CBR%20%2F%3E%20Giuntura(%3CBR%20%2F%3E%20Con(dt1_std_join)%2C%3CBR%20%2F%3E%20Abbinando%20le%20colonne%20(%20%3AJoin%20%3D%20%3AJoin%20)%2C%3CBR%20%2F%3E%20Rilascia%20multipli(%200%2C%200%20)%2C%3CBR%20%2F%3E%20Includi%20non%20corrispondenze(%200%2C%200%20)%2C%3CBR%20%2F%3E%20Conserva%20l'ordine%20del%20tavolo%20principale(%201%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20%3B%3CBR%20%2F%3E%20%2F%2Fcalcola%20i%20valori%20Target%2C%20USL%20e%20LSL%3CBR%20%2F%3E%20Nuova%20colonna%20(%22Graph_Target_line%22%2C%3CBR%20%2F%3E%20Numerico%2C%3CBR%20%2F%3E%20%22Continuo%22%2C%3CBR%20%2F%3E%20Formato(%20%22Migliore%22%2C%206%20)%2C%3CBR%20%2F%3E%20Formula(%20%3ANome(%20%22data_colonna_A%22%20)%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20%3B%3C%2FP%3E%3CP%3ENuova%20colonna(%20%22Graph_USL%22%2C%3CBR%20%2F%3E%20Numerico%2C%3CBR%20%2F%3E%20%22Continuo%22%2C%3CBR%20%2F%3E%20Formato(%20%22Migliore%22%2C%206%20)%2C%3CBR%20%2F%3E%20Formula(%3CBR%20%2F%3E%20%3ANome(%22colonna_dati_A%22)%20%2B%203.15%20*%3CBR%20%2F%3E%20%3ANome(%22colonna_dati_B%22%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20%3B%3C%2FP%3E%3CP%3ENuova%20colonna(%20%22Graph_LSL%22%2C%3CBR%20%2F%3E%20Numerico%2C%3CBR%20%2F%3E%20%22Continuo%22%2C%3CBR%20%2F%3E%20Formato(%20%22Migliore%22%2C%206%20)%2C%3CBR%20%2F%3E%20Formula(%3CBR%20%2F%3E%20%3ANome(%22colonna_dati_A%22%20)%20-%203.15%20*%3CBR%20%2F%3E%20%3ANome(%22colonna_dati_B%22%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20%3B%3C%2FP%3E%3CP%3E%2F%2FPUNTO%20DIVISO%3CBR%20%2F%3E%20%2F%2Fassegna%20le%20variabili%20da%20utilizzare%20nel%20grafico%20delle%20variabili%3CBR%20%2F%3E%20USL%20%3D%20dt1_spec_limits%20%3ANome(%22Graph_USL%22)%5B1%5D%3CBR%20%2F%3E%20%3B%3CBR%20%2F%3E%20LSL%20%3D%20dt1_spec_limits%3ANome(%22Graph_LSL%22)%5B1%5D%3CBR%20%2F%3E%20%3B%3CBR%20%2F%3E%20Destinazione%20%3D%20dt1_spec_limits%3ANome(%22Graph_Target_line%22)%5B1%5D%3CBR%20%2F%3E%20%3B%3CBR%20%2F%3E%20%2F%2FTraccia%20in%20base%20ai%20dati%20di%20una%20tabella%20con%20le%20righe%20di%20riferimento%20basate%20su%20sopra%3CBR%20%2F%3E%20Tabella%20dati%20corrente(dt1_plotting_data)%3CBR%20%2F%3E%20%3B%3CBR%20%2F%3E%20Grafico%20di%20variabilit%C3%A0(%3CBR%20%2F%3E%20Y(%20%3ANome(%20%22colonna_1%22%20)%20)%2C%3CBR%20%2F%3E%20X(%20%3AAttrezzatura%2C%20%3AData%2C%20%3AOra%20)%2C%3CBR%20%2F%3E%20Tipo%20di%20analisi%20(%22Scegli%20la%20migliore%20analisi%20(EMS%20REML%20bayesiano)%22%20)%2C%3CBR%20%2F%3E%20Grafico%20sviluppo%20standard(%200%20)%2C%3CBR%20%2F%3E%20SendToReport(%3CBR%20%2F%3E%20Spedizione(%3CBR%20%2F%3E%20%7B%22Grafico%20della%20variabilit%C3%A0%20per%20la%20colonna_1%22%7D%2C%3CBR%20%2F%3E%20%222%22%2C%3CBR%20%2F%3E%20ScaleBox%2C%3CBR%20%2F%3E%20%7B%3CBR%20%2F%3E%20Aggiungi%20Ref%20Line(%200%2C%20%22Punteggiato%22%2C%20%22Grigio%20chiaro%20medio%22%2C%20%22%22%2C%201%20)%2C%3CBR%20%2F%3E%20Aggiungi%20Ref%20Line(Target%2C%20%22Solido%22%2C%20%22Verde%20medio%20scuro%22%2C%20%22Target%22%2C%201)%2C%3CBR%20%2F%3E%20Aggiungi%20Ref%20Line%20(USL%2C%20%22Solid%22%2C%20%22Medium%20Dark%20Red%22%2C%20%22USL%22%2C%201%20)%2C%3CBR%20%2F%3E%20Aggiungi%20Ref%20Line(LSL%2C%20%22Solid%22%2C%20%22Medium%20Dark%20Red%22%2C%20%22LSL%22%2C%201%20)%7D%3CBR%20%2F%3E%20)%2C%3CBR%20%2F%3E%20Spedizione(%3CBR%20%2F%3E%20%7B%22Grafico%20della%20variabilit%C3%A0%20per%20la%20colonna_1%22%7D%2C%3CBR%20%2F%3E%20%22Grafico%20di%20variabilit%C3%A0%22%2C%3CBR%20%2F%3E%20Cornice%2C%3CBR%20%2F%3E%20%7BLegenda%20riga(%3CBR%20%2F%3E%20Strumento_MM%2C%3CBR%20%2F%3E%20Colore(%201%20)%2C%3CBR%20%2F%3E%20Tema%20colore%20(%22Predefinito%20JMP%22)%2C%3CBR%20%2F%3E%20Indicatore(%200%20)%2C%3CBR%20%2F%3E%20Tema%20dell'indicatore(%20%22%22%20)%2C%3CBR%20%2F%3E%20Scala%20continua(%200%20)%2C%3CBR%20%2F%3E%20Scala%20inversa(%200%20)%2C%3CBR%20%2F%3E%20Righe%20escluse(%200%20)%3CBR%20%2F%3E%20)%7D%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20)%3CBR%20%2F%3E%20)%3C%2FP%3E%3CP%3E%3CJSL%3E%3C%2FJSL%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-507339%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3ETabella%20dati%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGrafica%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESceneggiatura%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-507409%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Problema%20che%20definisce%20il%20valore%20della%20cella%20come%20variabile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-507409%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESospetto%20che%20la%20tua%20tabella%20di%20dati%20dt1_spec_limits%20non%20sia%20stata%20completata%20prima%20dell'esecuzione%20del%20grafico%20di%20variabilit%C3%A0.Prova%20ad%20aggiungere%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EWait(%200%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Eappena%20prima%20del%20%2F%2F%20PUNTO%20DI%20SPLIT.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-507422%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20Problema%20che%20definisce%20il%20valore%20della%20cella%20come%20variabile%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-507422%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGrazie%20mille%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
JB-2
Level I

Issue defining cell value as variable

Hi,

I want to use values from one datatable as reference lines on a Variability plot based on a separate datatable. My current code is below, it hopefully makes sense as shared. I am using JMP 15.2

 

My issue is that when I run all of this at once, I do not get any reference lines on my plot.

However, if I first run only the section before '//SPLIT POINT' and then separately run the section after '//SPLINT POINT', it works without issue (reference lines are visible on my plot).

 

A final point is that if I use 

Target = dt1_spec_limits::Name( "data_column_A" )[1]

instead of 

Target = dt1_spec_limits:Name("Graph_Target_line")[1]

the reference line shows on the plot, even when the whole script is run as one. So I think it is something to do with the calculations updating in the datatable?

 

Any insights would be greatly appreciated, thanks.

 

//join two datatables to create table of spec limits
dt1_spec_limits = dt1_mean_join <<
Join(
With( dt1_std_join ),
By Matching Columns( :Join = :Join ),
Drop multiples( 0, 0 ),
Include Nonmatches( 0, 0 ),
Preserve main table order( 1 )
)
;
//calculate the Target, USL and LSL values
New Column( "Graph_Target_line",
Numeric,
"Continuous",
Format( "Best", 6 ),
Formula( :Name( "data_column_A" ) )
)
;
New Column( "Graph_USL",
Numeric,
"Continuous",
Format( "Best", 6 ),
Formula(
:Name( "data_column_A" ) + 3.15 *
:Name( "data_column_B" )
)
)
;
New Column( "Graph_LSL",
Numeric,
"Continuous",
Format( "Best", 6 ),
Formula(
:Name( "data_column_A" ) - 3.15 *
:Name( "data_column_B" )
)
)
;
//SPLIT POINT
//assign the variables to be used in the Variability plot
USL = dt1_spec_limits :Name("Graph_USL")[1]
;
LSL = dt1_spec_limits:Name("Graph_LSL")[1]
;
Target = dt1_spec_limits:Name("Graph_Target_line")[1]
;
//Plot based on data from one table with the reference lines based on above
Current data table(dt1_plotting_data)
;
Variability Chart(
Y( :Name( "column_1" ) ),
X( :Equipment, :Date, :Time ),
Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
Std Dev Chart( 0 ),
SendToReport(
Dispatch(
{"Variability Chart for column_1"},
"2",
ScaleBox,
{
Add Ref Line( 0, "Dotted", "Medium Light Gray", "", 1 ),
Add Ref Line( Target, "Solid", "Medium Dark Green", "Target", 1 ),
Add Ref Line( USL, "Solid", "Medium Dark Red", "USL", 1 ),
Add Ref Line( LSL, "Solid", "Medium Dark Red", "LSL", 1 )}
),
Dispatch(
{"Variability Chart for column_1"},
"Variability Chart",
FrameBox,
{Row Legend(
Tool_MM,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
)
)
)
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Issue defining cell value as variable

I suspect that your dt1_spec_limits data table is not completed before the Variability Chart is run.  Try adding 

Wait( 0 );

just before the // SPLIT POINT.

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Issue defining cell value as variable

I suspect that your dt1_spec_limits data table is not completed before the Variability Chart is run.  Try adding 

Wait( 0 );

just before the // SPLIT POINT.

Jim
JB-2
Level I

Re: Issue defining cell value as variable

Thanks very much

 

Recommended Articles