Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Percentile by Row

Hello,   I have this column that i want to calculate using PERCENTILE.EXC Date Product X 1/2/1990 A 0.01779078 1/3/1990 A -0.002563704 1/4/1990 A -0.008178207 1/5/1990 ...
  • v-henryk-mstf's avatar
    5 years ago

    Hi Anonymous ,

    According to your needs, you want to use the PERCENTILE function to get the result you want. First of all, I checked your DAX formula and found that there is something wrong with the setting of the second parameter in your PERCENTILE function. You can check the official document first, PERCENTILE.EXC (< column >, < k >), where if K is zero or blank, percentage range of 1 / (n + 1) returns the smallest value. If zero, it is out of range and an error is returned; if K is not a multiple of 1 / (n + 1), PERCENTILE.EXC Will interpolate to determine the value at the k-th percentile. So when you set the parameter to 0.1, you don't get -0.024519231. I did the following test, created two calculated columns, and got the result you want under slicer's filter.

     

    Here is the sample pbix file.


    Best Regards,
    Henry

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.