Forum Discussion

byronf's avatar
byronf
Frequent Visitor
5 years ago

Text case in being changed automatically

Power BI is changing the format of my data when I import it, by auto capitalizing certain text values.


In the picture below (from the Power Query Editor) you can see that the column called "Master Costing Name" has 33 records for "Customs Clearance (fixed)". In the original data source and in the Query Editor only one of the 33 records has a capital "F" and all the others have a lower case "fixed".

 

Once I import the data and view it in the Data view it appears if all 33 records have been changed to an upper case "F" in the name "Customs Clearance (Fixed)". This is an issue because our system is case sensitive. This has happened to all records, but I have just shown this one as an example.

 

Is this happening because Power BI is compressing the data? And how do I stop this from happening and keep the text in the case it was originally intended?

 

 

3 Replies

    • byronf's avatar
      byronf
      Frequent Visitor

      Hi Greg_Deckler 

      Sure

      let
      Source = Salesforce.Data(),
      CPA_Costing__c = Source{[Name="CPA_Costing__c"]}[Data],
      #"Filtered Rows" = Table.SelectRows(CPA_Costing__c, each ([RecordTypeId] = "0120Y000000ytNlQAI")),
      #"Removed Other Columns" = Table.SelectColumns(#"Filtered Rows",{"Id", "Name", "CPA_v2_0__c", "Amount__c", "Applied_to__c", "Condition__c", "Conditional_value__c", "Cost_Type__c", "Rate__c", "Shipment_Order_Old__c"}),
      #"Renamed Columns" = Table.RenameColumns(#"Removed Other Columns",{{"Shipment_Order_Old__c", "SO_id"}, {"CPA_v2_0__c", "CPA_id"}, {"Name", "Master Costing Name"}})
      in
      #"Renamed Columns"

  • i have the same issue, its auto capitalizing first names and last names