# PERCENTILEINC

The **PERCENTILEINC** function returns the k-th percentile of a dataset using the inclusive method, allowing k values from 0 to 1, including both the minimum and maximum values in the calculation.

{% hint style="info" %}
**PERCENTILE** is the legacy version of the **PERCENTILEINC** function and works similarly. It can be used in place of PERCENTILEINC for inclusive percentile calculations.
{% endhint %}

### Syntax

```javascript
PERCENTILEINC(array, k)
```

### Arguments

The **PERCENTILEINC** function syntax has the following arguments:

* array: The range or list of numeric values for which you want to calculate the percentile. Required.
* k: The percentile value to return, expressed as a decimal between 0 and 1. Required.
  * 0 - Minimum value
  * 0.25 - 25th percentile
  * 0.5 - Median (50th percentile)
  * 0.75 - 75th percentile
  * 1 - Maximum value

{% hint style="warning" %}
If a value other than 0 to 1 is provided for k, the **PERCENTILEINC** function returns a **#ERR** error.
{% endhint %}

### Example

<pre class="language-javascript"><code class="lang-javascript"><strong>PERCENTILEINC(10,20,30,40,50,60,70,80, 0.25)
</strong>// Returns 27.5
<strong>PERCENTILEINC(10,20,30,40,50,60,70,80, 0.5)
</strong>// Returns 45
<strong>PERCENTILEINC(10,20,30,40,50,60,70,80, 0.75)
</strong>// Returns 62.5
</code></pre>

You can use the **PERCENTILEINC** function to determine the relative standing of values within a dataset by calculating specific percentiles for metrics such as sales, revenue, or performance scores.

<figure><img src="/files/8gZ4R1XfuPsGVqJJv0Fz" alt=""><figcaption><p>PERCENTILEINC function</p></figcaption></figure>

{% hint style="info" %}
We can also use the [**SELECT**](/planning-sheets/formula-syntax/measure-column-selection-functions/select.md) function to select a range of columns from 1 to 4 for the 'Revenue' measure (2022 Revenue - 2025 Revenue).

<pre><code><strong>PERCENTILEINC(SELECT([Revenue], 1, 4), 0.80)
</strong></code></pre>

{% endhint %}

### Excel Equivalent

[PERCENTILEINC](https://support.microsoft.com/en-us/office/percentile-inc-function-680f9539-45eb-410b-9a5e-c1355e5fe2ed)

### FAQs

**Q1. How is PERCENTILEINC calculated?**

PERCENTILEINC is calculated by determining the k-th percentile of a dataset using the inclusive method, which includes the minimum and maximum values in the calculation.

<figure><img src="/files/iiFNEuky0xmG2eGZDZZE" alt="" width="247"><figcaption></figcaption></figure>

Where:

* k = desired percentile (between 0 and 1)
* n = number of values

The result is interpolated if the position is not a whole number. It returns the value at or below which a specified percentage of data falls, including both the minimum and maximum values.

**Q2. What does a percentile represent?**

A percentile shows how a value compares to other values in a dataset.

For example, consider student exam scores. If a student’s score is at the 90th percentile:

* 90% of the students scored below this value.
* 10% of the students scored above this value.

This means the student performed better than most of the class and is among the top 10%.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/formula-syntax/statistical-functions/percentileinc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
