Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
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.
Solved! Go to Solution.
Hi @bdehning ,
Please create the new column.
Column =
VAR _trunc =
TRUNC ( 'Table'[Number] )
RETURN
IF ( _trunc < 1, "<1", FORMAT ( _trunc, "00" ) ) & " yr"
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.
Hi @bdehning ,
Please create the new column.
Column =
VAR _trunc =
TRUNC ( 'Table'[Number] )
RETURN
IF ( _trunc < 1, "<1", FORMAT ( _trunc, "00" ) ) & " yr"
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.
I should have mentioned the decimal numbers could go as high as 60. There are not just 5 rows of data.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
42 | |
30 | |
27 | |
27 |