cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

hide and exclude interactive

hcarr01
Level VI

 

Hello everyone,
 
Is it possible to make the "row selector" module interactive (to hide and exclude rows the user doesn't need)
Maybe with the help of “Model Dialog”?
 
Thank you for your answers.

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

1 ACCEPTED SOLUTION

Accepted Solutions


Re: masquer et exclure interactif

I believe the following script will do what you are asking. Full script with sample data table attached.

cdg = Column Dialog ("Input Columns",
	cols = Col List ("Columns", Min Col (1), Data Type ("Numeric"));
);

for each ({i}, cdg["cols"],
	dt << select where (i == 0) << Hide and Exclude;
);

View solution in original post

6 REPLIES 6


Re: masquer et exclure interactif

Is the Data Filter what you're looking for (Rows...Data Filter)? Selecting the "show" and "include" checkboxes makes the hide and exclude interactive. If not, can you clarify what you need a bit more, please?

Jed_Campbell_0-1683037056949.png

 

hcarr01
Level VI

Re: hide and exclude interactive

Good morning,
 
To be more precise, I have several test columns: value 1 if the column meets a condition, value 0 otherwise.
Depending on what I'm looking to study, I would like to be able to hide the observations with a value of 0 in the column that interests me.
 
undefined

 

Here this script will work for test a only, but I would like at best 1 only script in which it asks me which test I want to hide (test a,.....,test z).
The goal is not to repeat the same script n times. 

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .


Re: masquer et exclure interactif

I believe the following script will do what you are asking. Full script with sample data table attached.

cdg = Column Dialog ("Input Columns",
	cols = Col List ("Columns", Min Col (1), Data Type ("Numeric"));
);

for each ({i}, cdg["cols"],
	dt << select where (i == 0) << Hide and Exclude;
);
hcarr01
Level VI

Re: hide and exclude interactive

Great thank you that is exactly what I needed.
Just a clarification, to go further after doing that, is it possible depending on the test column chosen by the user to launch a graph (with the column chosen interactively)?
 
For example: the user chooses the column "test c" and after having hidden the lines: the script launches the tool "Put in Table" according to the column test c with the options.

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .


Re: masquer et exclure interactif

Yes, assuming you're looking for the tabulate platform, here's code to grab the first of the selected columns (you could remove the [1] portion to use all the selected columns):

tab = Tabulate(
	Show Control Panel( 0 ),
	Set Format( Uniform Format( 10, 2 ) ),
	Add Table(
		Column Table( Analysis Columns( :Y ), Statistics( Mean, Std Dev ) ),
		Row Table( Grouping Columns( cdg["cols"][1] ) )
	)
);
hcarr01
Level VI

Re: hide and exclude interactive

Modifying your code a bit, I get exactly what I was looking for

 

undefined

 

Thanks for your help !

 

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .