Forum Discussion

Bokazoit's avatar
Bokazoit
Continued Contributor
11 months ago
Solved

The supposed case sensitive problem

I have this data were the identity column is a text base column, and from my reading Power BI /Query is case sensitive, but not from my view. In power BI desktop it looks like this: And th...
  • BA_Pete's avatar
    BA_Pete
    11 months ago

     

    Try this example code in Power Query. It converts your text values into separate unicode characters, so will be unique between your different text case examples:

    let
        Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W0it3DnZRitUBssKT4SznYjgrOAXCKk8uToGLAWVjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [AGILLIC_ID = _t]),
        addAgillic_Char = Table.AddColumn(Source, "AGILLIC_CHAR", each List.Transform(Text.ToList([AGILLIC_ID]), each Character.ToNumber(_))),
        extractAgillic_Char = Table.TransformColumns(addAgillic_Char, {"AGILLIC_CHAR", each Text.Combine(List.Transform(_, Text.From), "-"), type text})
    in
        extractAgillic_Char

     

    Output:

     

    Pete

  • Bokazoit's avatar
    Bokazoit
    11 months ago

    Thank you. I ended up using a concat of that ID and Email since even that smart solution You gave, did give non-uniques. But thanks again for trying 🙂