Forum Discussion

AliceW's avatar
AliceW
Icon for Power Participant rankPower Participant
6 years ago
Solved

URL link changes capital letters to regular ones after loading Power Query. Why?

Hello everyone,

 

I have a report which takes data from Salesforce. Each Opportunity has its own URL like:

https://mycompany.my.salesforce.com/00abC

 

I've encountered one case where two Opportunities have the same string of numbers and letters, with the only exception being that some letters are CAPITALS and some are not.

 

 

Power Query (using Salesforce Objects) brings them correctly:

 

Their type is text. So far, so good.

 

Back in the Desktop, after the Power Query loads, I convert this URL field into Data Category: Web URL, to enable the users to click on the link. And here is the problem. Some letters switch to capitals! Not all, but some.

This means everyone who clicks on either link gets to the same Opp, which is not correct.

 

What can be done about this?

 

Thank you,

 

Alice

  • Hi AliceW ,

    "And I couldn't figure out what you mean by the blank."
    I mean insert a space before a1.
    Actually for this problem, there are currently two possible solutions:

    1. Use M language

    https://blog.crossjoin.co.uk/2019/10/06/power-bi-and-case-sensitivity/ 

    2. Modify value
    Just like I did before, insert the corresponding characters in the column value to distinguish the column value.

    Best regards,
    Lionel Chen

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

     

11 Replies

  • v-lionel-msft's avatar
    v-lionel-msft
    Icon for Community Support rankCommunity Support

    Hi AliceW ,

     

    For values of the same column, Power BI automatically converts lowercase to uppercase if the values are all the same except for letter case.

     

    For example, here’s my original data:

    Then, in Power BI data view:

     

    As tested, we can use “Replace Values” feature:

    (replace with: blank a1)

     

    (replace with: url/)

     

    Beyond that, there is no particularly good way.

     

    Best regards,
    Lionel Chen

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • AliceW's avatar
      AliceW
      Icon for Power Participant rankPower Participant

      The plot thickens.

      I actually have the code as a separate column ('Internal Code'), except it has 3 additional letters after the 'right' first 15 ones.

      I've tried trimming it with LEFT('Internal Code', 15), and it ALSO capitalized all letters except the first one.

      What is going on?

      And I couldn't figure out what you mean by the blank.. I've tried creating a new column as CONCATENATE(BLANK(),'Internal Code'), but I still got capitalized letters.

      I've also, in Power Query, tried creating a new column by trimming the 'Internal Code' to the first 15 characters, and it also capitalized them.

      That's a weird behaviour of my favorite software, guys.

      • v-lionel-msft's avatar
        v-lionel-msft
        Icon for Community Support rankCommunity Support

        Hi AliceW ,

        "And I couldn't figure out what you mean by the blank."
        I mean insert a space before a1.
        Actually for this problem, there are currently two possible solutions:

        1. Use M language

        https://blog.crossjoin.co.uk/2019/10/06/power-bi-and-case-sensitivity/ 

        2. Modify value
        Just like I did before, insert the corresponding characters in the column value to distinguish the column value.

        Best regards,
        Lionel Chen

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

         

         

         

  • zelroberic's avatar
    zelroberic
    Frequent Visitor

    Hi Alice,

    I am also loading a Sales Force URL and I am having a similar issue. It looks look the issue is native to Power BI as DAX/the model is not case sensitive and Power Query is. So the model alters the letters when they are loaded. Not good for a URL!

    I doesn't seem to me that a satisfactory solution was given. Did you ever resolve this issue? And if so what did you do?

     

    Thanks,

    Rob

    • AliceW's avatar
      AliceW
      Icon for Power Participant rankPower Participant

      Hi Rob,

      I ended up creating a new column using a basic

      CONCATENATE("https://YOURCOMPANY.my.salesforce.com/", [Opportunity  Internal ID])

      Salesforce was pretty clever - the internal ID of an opp is also its link.

      Hopefully it works for you too.

      Alice

      • zelroberic's avatar
        zelroberic
        Frequent Visitor

        Hi Alice.

        Ok this makes sense.

        I am actually in an Invoice table and it appears that the ID also has letters in it. I will speak to our Sales Force administrator to get more clarity. Thanks for getting back to me so fast. I don’t under why this issue doesn’t come up a lot when pulling information from the web.

         

        Thanks Rob