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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
Community Champion
Community Champion

@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!:
DAX For Humans

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.