I have a data with Emp ID and pay period. I need to add a counter column to count non similar EMP ID and pay period. for next EMP ID the counter should start again from 1. below is the sample data that I sorted in Ascending order first by EMP ID then by pay period. And I need result as in sub Check Counter. For each EMP ID counter needs to start from 1 as the period changes it should add 1 and continue same number until period changes. If EPM ID changes the counter should again start from 1. I tried using Multi Row formula however I am not getting the desired result. Can anyone help me on this.
| Employee ID | Pay period | Sub Check Counter |
| 109701 | 07/03/2023 - 07/05/2023 | 1 |
| 120156 | 07/10/2023 - 07/16/2023 | 1 |
| 120156 | 07/10/2023 - 07/16/2023 | 1 |
| 120156 | 07/10/2023 - 07/16/2023 | 2 |
| 303359 | 07/03/2023 - 07/07/2023 | 1 |
| 371096 | 07/03/2023 - 07/06/2023 | 1 |
| 372446 | 07/11/2023 - 07/16/2023 | 1 |
| 385301 | 07/03/2023 - 07/10/2023 | 1 |
| 460719 | 07/03/2023 - 07/05/2023 | 1 |
| 464619 | 07/03/2023 - 07/10/2023 | 2 |
| 464619 | 07/03/2023 - 07/10/2023 | 2 |
| 464619 | 07/03/2023 - 07/10/2023 | 2 |