Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
byronf
Frequent Visitor

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".

byronf_0-1600181843997.png

 

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.

byronf_1-1600182213140.png

 

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 3
Robert14358
Resolver II
Resolver II

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

Greg_Deckler
Super User
Super User

@byronf Can you post your code from Advanced Editor?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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"

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.