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
Stubrg
Helper I
Helper I

Power Query Rounding to a whole number

Hi I am struggling to find a solution to an issue where my raw Data in a column has decimal places e.g:

 

Partqty
Bar 10.3
Bar 20.5
Bar 31.2
Bar 40.2

When Power Query is closed and loaded this Column returns whole numbers :

Partqty
Bar 10
Bar 21
Bar 31
Bar 40

I have tried to transform > round > then change decimal places to 2 this hasnt worked also when rounded up or down this has no effect.

The column type is set to Int.64

Does anyone have any ideas as this is causing discrepences on stock levels in the report.

Many Thanks

 

1 ACCEPTED SOLUTION
watkinnc
Super User
Super User

Or change to number.

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

View solution in original post

3 REPLIES 3
watkinnc
Super User
Super User

Or change to number.

 

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Hi thanks yes changed the Int64.Type to type number and it resolved the issue.

ppm1
Solution Sage
Solution Sage

The Int data type is integer, so you need to change it to fixed decimal instead.

 

Pat

Microsoft Employee

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.

Top Solution Authors
Top Kudoed Authors