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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mork
Helper V
Helper V

Problem with data type from an excel file

Hello,

 

I have a simple excel file with a single table that I'm trying to implement to my report. My problem is that one of the colums has number data that power bi recognises as dates.

The columns has data like 2/4, 3/4 etc. Basically it says how many tests have been done (2 out of 4, 3 out of 4 etc.).

When I import the excel to Power BI that columns shows dates, when I change the type in Power BI to number I get weird numbers like "42462" or something. How can I fix that?

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@mork Go back in Excel and format the column as Fraction - it should then automatically recognize it as numbers

 

Fractions.png

View solution in original post

4 REPLIES 4
Sean
Community Champion
Community Champion

@mork

Look at my response here...

http://community.powerbi.com/t5/Desktop/Sort-a-columns-by-the-rows/m-p/29830#U29830

 

Basically don't load the Excel data immediately - hit EDIT first - then in the Query Editor change the Data Type to decimal

 

then go ahead and load to the Data Model

 

let me know if this works.

Decimal number gives me an error. Only text type show the correct data. Should I keep it as text or try something else?

Sean
Community Champion
Community Champion

@mork Go back in Excel and format the column as Fraction - it should then automatically recognize it as numbers

 

Fractions.png

Thanks a lot!!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.