PERCENT_RANK() IN ACCESS SQL QUERY

ARW17

Board Regular
Joined
Oct 31, 2016
Messages
109
I'm trying to find percent rank of duration (dur) per person (firstofactor) per category (worktype). I'm trying:

SELECT DUR, FIRSTOFACTOR, WORKTYPE, FIRSTOFNAME,PERCENT_RANK() OVER (PARTITION BY FIRSTOFACTOR, WORKTYPE ORDER BY DUR) AS PCTRANK
FROM [4 - EXPORT TO EXCEL];

But it says "Syntax error (missing operator) in query expression 'PERCENT_RANK() OVER (PARTITION BY FIRSTOFACTOR, WORKTYPE ORDER BY DUR)'."

Am I just missing something simple or can this not be done in SQL in Access? Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
It looks to me like you're using SQL which is not exactly the same as Access sql. AFAIK, there is no "OVER" in Access. Maybe something like this will get you going in the right direction
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top