Forum Discussion
Removing duplicates with merging logic
- 1 year ago
Addcolumns(
Distinct( tbl[customer]),
"Instances",
calculate( concatenatex( values(tbl[instance]), tbl[instance], ", ")),
"Quantity",
Var sumQuanity = CALCULATE( sum(tbl[quantity] ))
Var minQuantity = calculate( min( tbl[quantity] ))
Return
If( minQuanity = -1, minQuanity, sumQuantity)
)
Hi, hewgreen
From screenshot you provided it don't seems like duplicate, because it has two instance (0001,0002) and customer(Bob) has value for both instance.
Please provide some sample row data to understand better your problem
Best Regards,
Dangar
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- hewgreen1 year agoNew Member
I've used the term duplicate incorrectly. Within the scope of Customer 'Bob' is duplicated. Therefore I'd like the merge these rows.