Forum Discussion
ek2112
8 years agoAdvocate II
GROUP BY calculated column
Hello, I have the data in the following format - is there a way to extract all salesperson names and write them into a new calculated column for each invoice number? Thank you.
- 8 years ago
May be
Calculated_Column = VAR InvoiceNo = [Invoice No] RETURN CONCATENATEX ( FILTER ( Sales, Sales[Invoice No] = InvoiceNo ), Sales[Salesperson], ", " ) - 8 years ago
Zubair_Muhammad thanks for looking into this, this works, but coming up with duplicates. Is there a way to suppress duplicates?
Zubair_Muhammad
8 years agoCommunity Champion
May be
Calculated_Column =
VAR InvoiceNo = [Invoice No]
RETURN
CONCATENATEX (
FILTER ( Sales, Sales[Invoice No] = InvoiceNo ),
Sales[Salesperson],
", "
)ek2112
8 years agoAdvocate II
Zubair_Muhammad thanks for looking into this, this works, but coming up with duplicates. Is there a way to suppress duplicates?
- ek21128 years agoAdvocate II