Forum Discussion

DineshArivu's avatar
DineshArivu
Icon for Helper I rankHelper I
1 year ago
Solved

Remove duplicate names in a same column

Hi Experts,   Below the attached table snaps where we can se invoice created date and created by . Some rows you can see names are repeated even it is same name. We should showcase only one time ...
  • DineshArivu's avatar
    DineshArivu
    1 year ago

    dufoq3  thanks for your response , i have fixed this issue by using below query in editor :

    #"Cleaned InvoiceCreatedBy" = Table.TransformColumns(#"Added Custom4", {
    "InvoiceCreatedBy", each
    let
    textValue = Text.Combine(List.Transform(_, Text.From), ","),
    nameList = List.Transform(Text.Split(textValue, ","), Text.Trim),
    uniqueNames = List.Distinct(nameList)
    in
    Text.Combine(uniqueNames, ", "),
    type text
    })
    in
    #"Cleaned InvoiceCreatedBy"