Forum Discussion

DKGH's avatar
DKGH
New Member
1 year ago
Solved

PBI doesn't recognize same text in a column

Hello everyone, First table is from my original dataset which I'm using look up value to create new column to another dataset. The problem is that when I do that, I end up having two exact text but ...
  • v-achippa's avatar
    1 year ago

    Hi DKGH,

     

    Thank you for reaching out to Microsoft Fabric Community.

     

    Since you are using calculated columns in power bi desktop so here is a DAX formula to normalize the text values:

    CleanSegment =

        SUBSTITUTE(

            SUBSTITUTE(

                TRIM([Summary Market Segment]),

                UNICHAR(160),

                ""

            ),

            UNICHAR(8203),

            ""

        )

     

    This removes the non breaking spaces and hidden characters that may have caused duplication like Other and ensures consistent matching across datasets.

     

    If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

     

    Thanks and regards,

    Anjan Kumar Chippa