Hi all, I have a table subset
I have two questions.
1. How can create a loop that adds column "Ref" to every subset table?
2. Also, is it possible that the value of the created column will be based on the highest number of N Rows with a specific value?
For example, the new column to be added will be Ref. Column Ref's value will be based on Column Country, wherein it should add 1 to the highest N Rows Value of America only.
| Country | N Rows | Ref |
| Argentina | 4 | |
| America | 0 | |
| America | 5 | 1 |
| Brazil | 2 | |
| Brazil | 4 | |
| Canada | 2 | |
TIA