Forum Discussion

JonSwed's avatar
JonSwed
Advocate II
4 years ago

Case sensitive text filter

Hi all.

Working with Salesforce id data which, as some of you may know, distinguishes between users via case. For example, 001J000001Hs5Ss and 001J000001Hs5SS are two different users. This is the 15 character id, which is turned into 18 characters to get around the case issue.

However - I need to give users of my dashboard the option to search by the 15 character id.
I have created a new column which removes the case insensitivity issue from the data and returns the ids correctly.
I used this method to solve the insenstivity issue:
https://blog.crossjoin.co.uk/2019/10/06/power-bi-and-case-sensitivity/ 

But, I cannot get the text filter box to find them.

For example, powerbi sees 001D000001Ys5SS and 001D000001Ys5SS  only as 001D000001Ys5SS.

My calculated column returns, correctly, both 001D000001Ys5SS and 001D000001Ys5Ss.

The search box only finds 001D000001Ys5SS.

I have set my search box to search the calculated column, but it does not seem to be able to respond to the different cases.

Any suggestions gratefully appreciated.











6 Replies

  • It is what it is. Power BI by default is not case sensitive.  Use the Case Safe ID (the 18 digit version) instead.

     

    Or create a klutz based on the FIND() DAX function - that one is actually case sensitive.

  • Thanks for that - unfortunately in this use case the 18 digit id is not an option.

    I'll explore using DAX, though I wonder whether this will give me the option of  a dashboard user searching via a ID they input. 

    • lbendlin's avatar
      lbendlin
      Super User

      If you want I can show you a Power Query function that calculates the case safe id.

       

      For the DAX option you will need a custom visual like TextFilter to accept user input.

      • JonSwed's avatar
        JonSwed
        Advocate II

        That sounds great  - seeing the Power Query function would be very useful.

        Not sure how the DAX option would work, could you share more detail?

        Many thanks!