Looking to get a count of procedural steps in an sql view

I am doing a rank over partition in an attempt to get a unique count of procedural steps.  the problem is the partition field is not unqiue, and I am trying to increment the step:  Here is a sample from the data:

Sample Data
the approach I am using is:

case when Type='Procedure' then rank() OVER (partition by Type ORDER BY ActionDate) end as PSeq, 

Open in new window


I understand why the 5 is repeating because I am using actiondate and the two dates are the same.

Any thoughts how I can get around this since the second 5 needs to be a 6.

Thank you!
LVL 5
WillOwnerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott PletcherSenior DBACommented:
Try ROW_NUMBER() rather than RANK().

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WillOwnerAuthor Commented:
Thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SQL

From novice to tech pro — start learning today.