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

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

Reply
bdehning
Post Prodigy
Post Prodigy

convert numeric numeric number to whole number

I have column of numbers of years in decimal form 

.142

2.208

1.13875

4.03

3.96

 

How do I create column of numbers to get

<1 yr.

02 yr.

01 yr.

04 yr.

03 yr.

 

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @bdehning ,

 

Please create the new column.

 

Column = 
VAR _trunc =
    TRUNC ( 'Table'[Number] )
RETURN
    IF ( _trunc < 1, "<1", FORMAT ( _trunc, "00" ) ) & " yr"

vkkfmsft_0-1655695024029.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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
v-kkf-msft
Community Support
Community Support

Hi @bdehning ,

 

Please create the new column.

 

Column = 
VAR _trunc =
    TRUNC ( 'Table'[Number] )
RETURN
    IF ( _trunc < 1, "<1", FORMAT ( _trunc, "00" ) ) & " yr"

vkkfmsft_0-1655695024029.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

bdehning
Post Prodigy
Post Prodigy

 I should have mentioned the decimal numbers could go as high as 60.  There are not just 5 rows of data.  

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors