I created a simple PowerApps applications (with some tips from the awesome people in this forum) and management loves it.
They have asked for an enhancement that I am seeking some help with.
Here's what the table looks like:

This is the data entry screen:

What we would like to do is for the revision number default as 1 unless the JOB Number and Department equal to a past entry and then if so, increment the revision number by one.
Any suggestions on how to code this?
Thanks...