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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,215,051
Messages
6,122,872
Members
449,097
Latest member
dbomb1414

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