Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Same client ID with different name variations

I am trying to segment data from clients but I have one problem: There are different name variations (or typing errors) for the same client ID.

 

IDFirst NameLast Name 
0918745654 WilhelmSchwarz 
0918745654 WilhelmA. Schwarz 
0918745654 WilhelmSchwartz(Typing error)
0918745654 WilhemSchwarz(Typing error)

 

My question is how do I create a measure that can group this names into a single one based on the unique ID.

 

Thank you all!

 

William

  • Anonymous you can create measure to get first and last name, and write another measure for Last Name

     

    My First Name = 
    CALCULATE ( MAX ( Table[FirstName] ), ALLEXCEPT ( Table, Table[Id] ) )

     

2 Replies

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Anonymous ,
    Try This:

     

    First Names = CALCULATE(CONCATENATEX(myTable,myTable[First Name]," ,"),ALLEXCEPT(myTable,myTable[ID]))

     

     

    Last Names = CALCULATE(CONCATENATEX(myTable,myTable[Last Name]," ,"),ALLEXCEPT(myTable,myTable[ID]))


     


    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
    Nathaniel

  • Anonymous you can create measure to get first and last name, and write another measure for Last Name

     

    My First Name = 
    CALCULATE ( MAX ( Table[FirstName] ), ALLEXCEPT ( Table, Table[Id] ) )