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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
pagliaci
Frequent Visitor

Round number to get the whole part

Hi, I have 2 columns: Y is a decimal number, and "#maint. needed" should tell me how many actions I need to do in base on the number before decimals of the Y column

#maint. needed = LEFT(ZMPF[Y], 1)
 
What I want is this result:

y= 0,005 --> # maint =0

y= 0,9 --> # maint =0

y= 1,8 --> # maint =1

y= 2,99 --> # maint =2 

 

But my maint column is doing, like the picture:

y= 0,005 --> # maint =5

y= 0,03 --> # maint =3

 

pagliaci_1-1662039302899.png

 

I suspect it does that because of the scientific terminology, but I don't know how to fix it. 

        

1 ACCEPTED SOLUTION
pagliaci
Frequent Visitor

I got it, I needed to use TRUNC ()!! Thanks 🙂

View solution in original post

4 REPLIES 4
pagliaci
Frequent Visitor

I got it, I needed to use TRUNC ()!! Thanks 🙂

tamerj1
Super User
Super User

Hi @pagliaci 

use ROUNDDOWN function 

It doesn't work, I tried

Did you check the data type?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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