cancel
Showing results for 
Search instead for 
Did you mean: 
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!:
Mastering Power BI 2nd Edition

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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors