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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Community Champion
Community Champion

Hi @pagliaci 

use ROUNDDOWN function 

It doesn't work, I tried

tamerj1
Community Champion
Community Champion

Did you check the data type?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.