Sorry to come back again as Duane gave me a perfect solution to my last request. I've tried replicating it with a different starting query that needs results to be ranked, but every time get Rank = 1. The query structure looks very much the same so I'm constantly missing something.
This time the query called Simplify looks like this
My attempt at a ranking query looks like this
But as I said it produces this result
This time the query called Simplify looks like this
My attempt at a ranking query looks like this
Code:
SELECT Simplify.Category, Simplify.Company, Simplify.[Overall Average],
(Select Count(*) FROM Simplify B WHERE B.Category = Simplify.Category AND
B.Company = Simplify.Company and B.[Overall Average] >=Simplify.[Overall Average]) AS Rank
FROM Simplify
ORDER BY Simplify.Category, Simplify.Company, Simplify.[Overall Average] DESC;
But as I said it produces this result