I am trying to create a column with incrementing numbers inside a group as per Table below.
| RecordID | OrderID | IncrementInGroup |
|---|---|---|
| a | 1 | 1 |
| b | 2 | 1 |
| c | 3 | 1 |
| a | 4 | 2 |
| a | 5 | 3 |
| a | 6 | 4 |
| a | 7 | 5 |
| b | 8 | 2 |
| c | 9 | 2 |
I am having dozens of millions of rows. I guess VIEW would be enough as I want this to pick up with Power BI app. Is it possible to do for an existing table?