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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jcarbone
Regular Visitor

How to Format Data Types with Text and Numbers??

Hi all,

 

I need some help formatting a specific data type, the column I want to load into Power BI contains values like this:
A01.04

 

When I try loading this into Power BI it gives me a bunch of errors for the column.

If I format it as text it says the numbers are incorrect and if I format as a decimal number then the letters throw an error.

 

How can I transform this to read properly without errors?

I need to keep the decimals in as that is an important part of the identifier so any help would be appreciated.

Thanks!

3 REPLIES 3
AbhinavJoshi
Responsive Resident
Responsive Resident

Hi, @jcarbone. When you first load the data, Power BI would give you an option to detect data types based on first 200 or 1000 rows. Disable that or in the one of your steps it should say, "changed type". Remove the default change type for your column "DIAG_STD_CD" and see if it resolves the error. If the erros are resolved then format it to the desired data type. Also check that you get the data without erros from your soruce. Hope it helps.  

Greg_Deckler
Super User
Super User

@jcarbone How are you formatting it as in are you specifying the column type in Power Query Editor or once it's loaded into the model or ? If in Power Query Editor you don't specify a column type then it should accept both text and numbers. It's all treated as text essentially and your column header should have a ABC123 icon.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg thanks for the response.

 

This is all within Power Query when I first connect and trasform the data.

Power BI reads this column as a decimal number and has changed type and here are the current results:

jcarbone_0-1689612842860.png

I don't see the option to change to a type that is "ABC123" either though.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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