Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Merge different spellings in same column

A field in one column has various spellings of the same item...is there a measure i can use during transformation to merge them into the same spelling?

  • Hi Anonymous ,

     

    Please try the following measure:

     

    Measure = 
    CONCATENATEX (
        CALCULATETABLE (
            VALUES ( 'Table'[spellings] ),
            FILTER ( ALL ( 'Table' ), 'Table'[Items] = MAX ( 'Table'[Items] ) )
        ),
        'Table'[spellings],
        ", "
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • truptis's avatar
    truptis
    Community Champion

    Hi Anonymous , 

    You can add a new conditional column and select the conditions as "contains" and few letters of the column and give the desired spelling you wish to give.

    & Then apply and close.

     

    Anonymous -> let me know if it works by marking it as a solution else show me an example of what values you wish to replace and i can help you with the conditions. 

  • v-kkf-msft's avatar
    v-kkf-msft
    Community Support

    Hi Anonymous ,

     

    Please try the following measure:

     

    Measure = 
    CONCATENATEX (
        CALCULATETABLE (
            VALUES ( 'Table'[spellings] ),
            FILTER ( ALL ( 'Table' ), 'Table'[Items] = MAX ( 'Table'[Items] ) )
        ),
        'Table'[spellings],
        ", "
    )

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.