It’s World Statistics Day! To honor the theme of the day, the JMP User Community is having conversations about the importance of trust in statistics and data. And we want to hear from you! Tell us the steps you take to ensure that your data is trustworthy.
Choose Language Hide Translation Bar
Highlighted
Level V

## JMP Formula

I have a quick question, does anyone know how you would approach using this Excel formula in the JMP Pro 12 formula platform to generate decile of equal distribution without using the cut point system? How do you get the INT component of the formula below in JMP? Assuming the total rows of your data table is 218086 and you want to have decile of 20,000 plus. This is what I use in Excel, but it be difficult when your data table has more than a 1 million rows than in this case Excel becomes less effective due to the 1 million rows limit.

=INT((ROW(B2)-1)/218086*10)+1

Jenkins Macedo
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

## Re: JMP Formula

Yes, of course it's 'Floor()' not 'Round()'. Apologies.

5 REPLIES 5
Highlighted
Staff

## Re: JMP Formula

To round a number to the nearest integer you can use 'Round(x, 0)', where x is your number or an expression that evaluates to a number.

Highlighted
Level V

## Re: JMP Formula

Sorry to ask this @Ian, and how exactly would that formula be?

Jenkins Macedo
Highlighted
Super User

## Re: JMP Formula

I believe the direct translation of your formula from Excel to JMP would be:

Floor((Row()-1)/218086*10)+1;

The Floor() function returns the integer portion of the value, and the Row() function returns the row number the formula is being applied to

Jim
Highlighted
Staff

## Re: JMP Formula

Yes, of course it's 'Floor()' not 'Round()'. Apologies.

Level V

## Re: JMP Formula

Thanks fellows. It worked well and I was able to ranked the model scores of customers of a data table with 1.2 million in decile of 114K

Jenkins Macedo
Article Labels

There are no labels assigned to this post.