Hi, i have a dataset; ID VAR 1 A 1 B 2 B 3 A 3 C 4 and I want to calculate the percentege of distinct value in var a for all distinct ID's: for example: population is 4 (distinct ID), occurance of var "B" is 2 so the result is 50% thank you example output: so as I wrote earlier the entire population=distinct ID, no matter if there are blanks in var. The output is to show percentage of occurance of var in the entire population, like this: VAR Percentage of occurance var/ entire poplulation (distinct ID) A 50% B 50% C 25%
... View more