Hi,
I have a dataset with location code values that may or may not show twice.
I would like the first instance of the location code value to show as 1, and all other instances of this location code to show as 0.
Example of Desired Output:
| Location Code | Location Count |
| 123456 | 1 |
| 123457 | 1 |
| 123458 | 1 |
| 123456 | 0 |
| 123456 | 0 |
| 123459 | 1 |
How would I go about doing this in Alteryx?
In Excel I would simply make a column with the formula: "= IF (COUNTIF ($G$2:$G2,G2) > 1 , 0 , 1 )".
Then as it's autofilled down it would only return a 1 if the count is for the first time the value shows, any other count would return a 0.