Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Count values excluding duplicates

Hi,

As part of a separate issue, I had to split a column in my data set by delimiter. This has caused the duplication of much of the data by creating new rows.

E.g., I have Column A and Column B. Column A contains a Unique ID, and Column B contains a numeric value. 

I have a visualisation which displays the sum of the values in Column B. However, after splitting the column, these values have been duplicated.

Is there a way to count the values in Column B, only at the first occurence of the Unique ID in Column A?

Column A                                          Column B
1259                                                     20
1395                                                     138
1395                                                     138
1395                                                     138
1564                                                     1
1695                                                     50
1695                                                     50
1695                                                     50
1695                                                     50
1695                                                     50

I.E, I would want the sum of Column B to be 209, but it is displaying as 685.

Thanks in advance.

5 Replies