I have a table that has the following columns:
- Event Date
- Location
- Employee Id
- Task Name
- Volume Per Hour
Using PostgreSQL
, I need to calculate the 75th percentile of Volume Per Hour for a given location and task name across all employee ids and event dates assuming a rolling 7 day window. For example, if the event date is 11/16/2020, I would take the 75th percentile of volume per hour for all the individual dates and employee ids between 11/09/2020 and 11/16/2020.
Can someone help me with this problem?
Sample Data:
Sample Output: