cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
rossmiller
Level I

Calculations using the Tabulate function

I've been using the Tabulate function to provide summaries of data tables. I'm trying to compare the % change between two sums for multiple groups.

Is there a way to add a simple calcuation of two columns summed in Tabulate, like column A / column B? I know I can make this into a data table, but I wanted to include it in a presentation and the formatting looks much better in the Tabulate window.

Here's a simple example pasted from the Tabulate dialog:

region brand Sum Sum
AU Clinique 104119 103289
Estee Lauder 58009 56009
Jo Malone 30125 29535
La Mer 16895 16730
MAC 106306 111065
2 ACCEPTED SOLUTIONS

Accepted Solutions
vince_faller
Super User (Alumni)

Re: Calculations using the Tabulate function

For this specific example where Mean(.5 x Column) = .5 Mean(Column) that feature also lets you give custom formulas as well.  Probably won't work for everything but you might be able to still use the functionality. 

Vince Faller - Predictum

View solution in original post

Re: Calculations using the Tabulate function

This answer requires you to create an extra column in your data table but it might be helpful for you.

Have you tried the Statistical - Col Mean function under column formulas? It has a little ^ symbol which means if you add a comma after the name of the column you wish to summarise you can add by variables. Assuming the column you are summarising is called Y.


Col Mean(:Y, :Item)/2


Would give you the summary statistic you desired. Then in tabulate the mean, min or max or this column by Item will give the result you require and you can edit the column text as desired.

I often use this in combination with if statements in my main table so each summary value for each group only appears once in each column. It is the JMP equivalent of SUMIF, AVERAGEIF, COUNTIF, etc.

View solution in original post

9 REPLIES 9

Re: Calculations using the Tabulate function

I think I understand what you are asking about. You want to know if there are formula-like capabilities in Tabulate. Unfortunately, at time, there is not. The only thing you can do is calculate summary statistics. You can't specify custom formulas like you can in column formulas. But, I think it's a great idea!

If the nice formatting is what you are after, then the best option now is to create the calculations in a table (as you mentioned), then make the table into a Journal by using the Journal command on the Edit menu. Then right click on the resulting journal and there are a few format options under Table Style.
feldybikes
Level II

Re: Calculations using the Tabulate function

Resurrecting this question: has there been any update in the last 5 and a half years? I was looking for a way to add some arithmetic to a mean but I can't figure out how to do this other than create a new table based on the tabulate. Which obviously kills the interactivity.

Thanks

vince_faller
Super User (Alumni)

Re: Calculations using the Tabulate function

I might not have you entirely understood.  But if you select a few columns in the collistbox, then right click them you get an assortment of functions you can do.  For instance you can go to combine>Sum and it will give you another column to choose from. 

Vince Faller - Predictum
feldybikes
Level II

Re: Calculations using the Tabulate function

My fault for a poorly worded question, I should have been specific in the first place: what I would like to do is end up with 50% of the mean, e.g.

Item     Mean     50% of Mean

A          20         10

B          15         7.5

I can do this by using Make Into Data Table and then creating a new column with a formula, but it would be nice if that formula could just be an option in the Tabulate.

vince_faller
Super User (Alumni)

Re: Calculations using the Tabulate function

For this specific example where Mean(.5 x Column) = .5 Mean(Column) that feature also lets you give custom formulas as well.  Probably won't work for everything but you might be able to still use the functionality. 

Vince Faller - Predictum
feldybikes
Level II

Re: Calculations using the Tabulate function

I had trouble understanding this at first, but I did get it to work. Thanks!

Re: Calculations using the Tabulate function

This answer requires you to create an extra column in your data table but it might be helpful for you.

Have you tried the Statistical - Col Mean function under column formulas? It has a little ^ symbol which means if you add a comma after the name of the column you wish to summarise you can add by variables. Assuming the column you are summarising is called Y.


Col Mean(:Y, :Item)/2


Would give you the summary statistic you desired. Then in tabulate the mean, min or max or this column by Item will give the result you require and you can edit the column text as desired.

I often use this in combination with if statements in my main table so each summary value for each group only appears once in each column. It is the JMP equivalent of SUMIF, AVERAGEIF, COUNTIF, etc.

feldybikes
Level II

Re: Calculations using the Tabulate function

This one worked as well, and though it requires an extra step, it's more general. Plus, I learned that you can do by variables within certain functions. So, thanks to you, too! Unfortunately, it means you need to know what by variables you want prior to making the Tabulate, which again, sort of kills the interactivity and what I really like about the Tabulate function. But cie la vie.

Re: Calculations using the Tabulate function

In JMP 11 and 12 you can right click on a numeric column name in the column list of tabulate (and graph builder). If you select formula from the menu you can add the formula column required without leaving tabulate.

Sorry should have pointed that out - I am so used to it being there.