cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

How to enter a conditional "Where" clause in the below Script?

I would like to make two Tabulate tables instead of one Tabulate table.  I'd like one Tabulate table for :Prog = "A" and one for :Prog = "B".  The script below gives me one Tabulate table with both Programs "A" and "B" in the Tabulate table.  I think if I was to break this up into two lines of script; one line being . . . where :Prog = "A" and the other line of identical script except for  . . . where :Prog = "B" would do the trick I just don't know where or how to insert the "where" clause.

 

Tabulate( Add Table( Row Table( Grouping Columns( :Prog, :Matl_Desc ) ) ) );
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to enter a conditional "Where" clause in the below Script?

Tabulate( Add Table( Row Table( Grouping Columns( :Prog, :Matl_Desc ) ) ),
where(:Prog == "A") );

You may want to look into using the Page feature in Tabulate, it will create a separate table for each level of Prog

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How to enter a conditional "Where" clause in the below Script?

Tabulate( Add Table( Row Table( Grouping Columns( :Prog, :Matl_Desc ) ) ),
where(:Prog == "A") );

You may want to look into using the Page feature in Tabulate, it will create a separate table for each level of Prog

Jim
dfusco923
Level III

Re: How to enter a conditional "Where" clause in the below Script?

Thanks for the help.

Recommended Articles