So I have 2 columns of data that have many identical values but which increment at certain points. They are the month and date of data points. Example:
| Month |
Day |
Desired Counter: |
| 1 |
1 |
1 |
| 1 |
1 |
1 |
| 2 |
2 |
2 |
| 2 |
3 |
3 |
| 3 |
1 |
4 |
| 3 |
1 |
4 |
Ive tried using lag unsuccessfully as I dont want an increment unless a value changes. I've tried different solutions including:
If(
Row() == 1, 1,
Lag( :Month, 1 ) & Lag( :Day, 1 ), Lag( :DesiredCounter, 1 )
)
A similar solution was posted but didnt work for me as I need to keep both columns into account. Can someone help with this? Thank you