Hello Everyone
Frame: 95th percentile average can be calculated by taking the average of the values lesser than 289.615 (the 95th percentile value). ((8.1 + 8.316 + 8.618 +…+406.977 + 849.035)/48) = 92.254.
I am calculating the times between when a work order comes until the time this Work Order is executed.
I am using a calculated field, using the function datediff and is working, I managed to make a table with the sum of hours by office, the Median, but I would like to have the Average of the Bottom 95% of the Data (this is the standard measure).
I managed to do it with excel and manually extract the TOP 5%, but I would like to know if its possible to do it inside Quicksight, I tried to make a calculated field where I use an ifelse and compares to the P95, if its lower I use that data and if its higher would be null, but I can not use non-aggregated and aggregated data.
@duncan my calculated field is a datediff in hours, in which I made a pivot table by site and by month or year
I would like to trim the data to the bottom 95%, so I would like to storage the values below that in the Percentil 95 and calculate the AVG of this new calculated field for each month/year
ifelse(avg({Sales}) > percentile({Sales},30),'Over 30','Under 30') (this will return me if a certain value is below or over the P95)
@duncan , I do not need the P95, I need the avg of the 95% of the data.
For example, my population is 1 to 100, I need to remove the top 5, so will be 1 to 95, and to that sample do an AVG.
For now I am marking my comment as a solution but if you run into an issue with this in a future please feel free to post it at the top of the community!
For now is working, I did hours by region, and the number seems to be correct, and in the visual I need to also place the Aux calculated field, sorry for the late reply, I was super busy lately