Hi, I am new to DI and I am not sure if this has been answered elsewhere, but does anyone know how to create a flag or a counter for the first time a value appears for a dataset? In SAS BASE code, I use: data output; set input; by variable; if first.variable then count = 1; run; Any help on this would be extremely helpful. If anything doesn't make sense let me know. Thanks in advance.
... View more