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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Balkrishnan
Helper II
Helper II

Column with two data types

I have an Excel Data set with a column like below

Rent

4,525

3,750

ABC

4,100

2,500

When i load this data into Powe BI it is displayed without comma like below

Rent

4525

3750

ABC

4100

2500

I tried different formating but could not have data with numeric(with Comma)  and text. Please let me know any quick solution.

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @Balkrishnan 

The problem you are running into is excel does not actually store the comma.  4,525 is stored as 4525 and formatted with the comma.  We can add a column to your table to format the numbers correctly though.

Rent Formatted =
IF (
    ISERROR ( VALUE ( Sheet1[Rent] ) ),
    Sheet1[Rent],
    FORMAT ( VALUE ( Sheet1[Rent] ), "#,#" )
)

RentFormatted.jpg

 

 

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

Hello @Balkrishnan 

The problem you are running into is excel does not actually store the comma.  4,525 is stored as 4525 and formatted with the comma.  We can add a column to your table to format the numbers correctly though.

Rent Formatted =
IF (
    ISERROR ( VALUE ( Sheet1[Rent] ) ),
    Sheet1[Rent],
    FORMAT ( VALUE ( Sheet1[Rent] ), "#,#" )
)

RentFormatted.jpg

 

 

edhans
Community Champion
Community Champion

You are going to have to split it into different columns. Power BI cannot have multiple data types in a column. It put that entire column as text. You can use the FORMAT() function to change how the numbers look, but they will still be text.

 

Without knowing the context of that data, I cannot provide a sample. I don't know what the ABC represents. It is a column heading, is every 3rd piece of data alpha numeric, etc.?



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

ABC is some dummy text i entered. My goal is to have comma in Numeric cell(4,350) and not to touch ABC(Some text Value)

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors
Top Kudoed Authors