Forum Discussion
ek2112
Advocate II
8 years agoGROUP 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?
ek2112
Advocate II
8 years agoAnonymous Thanks, I tried with the measure, but I get an error "table of multiple values was supplied where a single value was expected". Here is the sample pbix.
Zubair_Muhammad
Community Champion
8 years ago
May be
Calculated_Column =
VAR InvoiceNo = [Invoice No]
RETURN
CONCATENATEX (
FILTER ( Sales, Sales[Invoice No] = InvoiceNo ),
Sales[Salesperson],
", "
)- ek21128 years ago
Advocate II
Zubair_Muhammad thanks for looking into this, this works, but coming up with duplicates. Is there a way to suppress duplicates?
- ek21128 years ago
Advocate II