Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Dear all,
I have the folloqing task:
Could you support with this?
Thanks.
Solved! Go to Solution.
Hi @Mic1979 ,
In Power Query (M language), you can create a custom column using the Table.AddColumn function. This formula checks the decimal part of the number using Number.Mod([YourColumn], 1). If the decimal part is ≥ 0.4, it rounds up by adding 1 to the integer part; otherwise, it rounds down to the integer using Number.RoundDown([YourColumn]). Here's the code:
= Table.AddColumn(Source, "Custom_Rounding", each
if Number.Mod([YourColumn], 1) >= 0.4
then Number.RoundDown([YourColumn]) + 1
else Number.RoundDown([YourColumn]), type number)
This ensures numbers like 12.4 round to 13, 12.3 stays 12, 5.6 becomes 6, and 5.2 remains 5.
Best regards,
In the Add Custom Column dialog:
=Number.Round([Numbers]+.1,0,RoundingMode.AwayFromZero)
Or alternatively
Number.Round([YourColumn] -1, ) +1
It should have been +0.1 and without +1
Number.Round([YourColumn] +0.1 )
Hi @Mic1979 This Could be achived through custom columns please try thi
Open the Power Query Editor.
Add a Custom Column.
M Formula for the new column:
if Number.RoundDown([YourColumn]) + 0.4 <= [YourColumn]
then Number.RoundDown([YourColumn]) + 1
else Number.RoundDown([YourColumn])
If this post helped please do give a kudos and accept this as a solution
Thanks In Advance
Hi @Mic1979 ,
In Power Query (M language), you can create a custom column using the Table.AddColumn function. This formula checks the decimal part of the number using Number.Mod([YourColumn], 1). If the decimal part is ≥ 0.4, it rounds up by adding 1 to the integer part; otherwise, it rounds down to the integer using Number.RoundDown([YourColumn]). Here's the code:
= Table.AddColumn(Source, "Custom_Rounding", each
if Number.Mod([YourColumn], 1) >= 0.4
then Number.RoundDown([YourColumn]) + 1
else Number.RoundDown([YourColumn]), type number)
This ensures numbers like 12.4 round to 13, 12.3 stays 12, 5.6 becomes 6, and 5.2 remains 5.
Best regards,
Thanks. I will accept this.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 11 | |
| 10 | |
| 9 | |
| 6 |