Jump to content
  • 0

Calculate a Percentile



I am hoping to calculate a percentile in a calculated field, but am not able to make that work. To illustrate, if I had the 5 data points below, the 60th percentile would be 2718:

1. 4364
2. 1198
3. 2937
4. 2572
5. 1682

When using percentile calculations that I see cited from other SQL platforms, I am seeing the following syntax, but this doesn't seem to work for me within Caspio. Any ideas? In the example below, "amount" would be my field name, and "sales" would be my table name.

FROM sales

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...