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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Text values are automatically and incorrectly reformated when loaded into model

Hi,

 

I have a data quality analysis report on a payroll system. Data will be exported to a new HRIS soon so there is a renewed focus on improving data quality. One check is looking at text values and identifying values that are no compliant with the data specification. In Power Query Editor it is working correctly; however, once loaded into the model and visualised, some (not all!) values are being reformatted, e.g., from upper case "MR" to title case "Mr", same with "MS" to "Ms". 

 

Payroll data so I can't post that, but here is the M for the line to identify invalid values: 

 

#"Added Invalid Title" = Table.AddColumn(#"Removed Other Columns", "Invalid Title", each 
        if Text.Length( Text.Trim( [Title] ) ) = 0 then false else 
        if List.Contains( { "Mr", "Mrs", "Ms", "Miss", "Dr" }, Text.Trim( [Title] )) then false else true, type logical),

 

 

No transformations are performed on the [Title] column.

 

The values are correctly read from an SQL database. Here is how one row reporting 'true'  is shown in PQ Editor:

 

Mark_Aird_3-1718932781911.png

 

Here is the same row, without any formatting or manipulation, in a table visualisation in Report Editor:

 

Mark_Aird_4-1718932799792.png

 

Why is this happening, and how can I prevent it? 😖

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User
6 REPLIES 6
Anonymous
Not applicable

Hi @Anonymous ,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information and description to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

WanderingBI
Resolver III
Resolver III

Wow! That is indeed crazy. Seems like there is also no easy workaround. Even if you add an "_" in front of each value you get the same issue.

What I do not understand is why this strange result is not also shown after running the Query in the Power Query GUI.

Ahmedx
Super User
Super User

Anonymous
Not applicable

I guess I will have to duplicate the invalid values in a new column in PQ so they are not corrected to the valid values. Ironically, increasing the data model size because of a feature intended to decrease the data model size. 🙃

Anonymous
Not applicable

Thanks. At least I know I'm not going (as) crazy.

 

Just found this post on the same subject: Power Query converts case during import when it is... - Microsoft Fabric Community

WanderingBI
Resolver III
Resolver III

Hi!

 

I can reproduce your issue:

 

In Power Query:

Ibanez2000_0-1718942822564.png

Table view after loading data model:

Ibanez2000_1-1718942861299.png

 

It propably has to do with the "Formatting" of the text type value contents:

Ibanez2000_2-1718943281538.png

 

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors