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
CogitaHungary
New Member

Numbers rounding problem in query

I have a query from another Excel file which includes numbers with decimals at the time of creation. If I make a refresh and the source file completes with other data, the new data will be rounded numbers.
Képernyőkép 2024-02-16 154240.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @CogitaHungary ,

The Decimal number data type in Power BI can sometimes lead to rounding due to its handling of floating-point numbers, which store values as approximate data types. This approximation can result in precision loss, especially when new data is added during a refresh.

To minimize this problem, I suggest changing the data type of the columns to fixed decimal numbers. This data type has a fixed decimal separator position, and precision can be improved by customizing the number of digits to the right of the decimal separator, thus avoiding unnecessary rounding.

In the Power Query Editor, select the column you wish to change.
In the Transform tab, find the Data Type dropdown and select Fixed decimal number.
This action should help preserve the precision of your data when it's refreshed from the Excel source file.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @CogitaHungary ,

The Decimal number data type in Power BI can sometimes lead to rounding due to its handling of floating-point numbers, which store values as approximate data types. This approximation can result in precision loss, especially when new data is added during a refresh.

To minimize this problem, I suggest changing the data type of the columns to fixed decimal numbers. This data type has a fixed decimal separator position, and precision can be improved by customizing the number of digits to the right of the decimal separator, thus avoiding unnecessary rounding.

In the Power Query Editor, select the column you wish to change.
In the Transform tab, find the Data Type dropdown and select Fixed decimal number.
This action should help preserve the precision of your data when it's refreshed from the Excel source file.

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Dino,

 

Thank you for the proposal. It looks solved my problem. 

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.