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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.