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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ctmah
Frequent Visitor

Raw data with decimal however it turns to whole number after loading to Power BI

Hi Power BI experts, 

I have raw data with decimal place that I need to retain it's format in Power BI. 

Raw data - 2, 2.5....etc

Raw data.JPG

 

 

 

 

Power BI - decimal display disappeared. I've checked both Column Tools & Transform data format but couldn't address the problem. What have i overlooked? 

Many thanks for your help!

 

Column tools.JPGtransform.JPG

 

 

 

 

 

 

Regards

ctmah

9 REPLIES 9
AntrikshSharma
Community Champion
Community Champion

Did you change the formatting after loading the table? you refresh the queries and this should be resolved.

Hi @AntrikshSharma ,

Thanks a lot! I've checked and refreshed but still no luck. the advance editor shows as below. any other possible error?

Number.JPG

 

Regards

ctmah

@ctmah  can you please share a sample data or just a single row would do, just remove the sensitive data.

Hi @AntrikshSharma 

When i tried to save a sample file, i found the data setting will change when i alter the sensitive data so it gave me the result i wanted. btw i don't see any option for me to upload file here. 

I did a few rounds of testing :-

1) Get Data - folder > contains the data file i'm working, abc.xlsx > data doesn't display decimal as per my initial screenshot

2) Get Data - go straight to get the data file , abc.xlsx > data display decimal as per the raw file. 

Any particular setting needed when folder is loaded to power bi?

display.JPG

 

 

 

 

 

Thank you so much!

regards

ctmah

@ctmah  Looks like there is a bug in power BI at the moment, I changed the format using Data type option and after refreshing the queries the data type remained same, whereas earlier this never happened. Last time I tried something like this was back in 2019 and after refreshing the data used to be loaded in the original format.

 

I have posted this issue here: https://community.powerbi.com/t5/Issues/Data-type-not-changing-after-refreshing-queries/idi-p/133999...

 

1.PNG

amitchandak
Super User
Super User

@ctmah , in transform data mode, what is data type it is showing.

else right-click on the table in transform data mode. Open Advance editor. There you will see columns with the datatype. these should number not int64 or 32 . If require change it there

Hi @amitchandak 

Thanks a lot for your reply. I've checked all possible steps, the advance editor shows as below, still no luck. any other possible error?

Number.JPG

 

regards

Chin Theng

Greg_Deckler
Super User
Super User

@ctmah - Make sure to check your query steps and ensure that there is not a step where it got converted to a whole number or something.


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

Thanks a lot. I checked every possible steps. the advance editor shows it's number. still couldn't figure out the problem..

Number.JPG

 

Regards

ctmah

 

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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