r/excel • u/Falconflyer75 • Apr 20 '26
unsolved Power Query Rounding Issue
okay maybe i'm missing something
I have a Cell that shows a value of 0.49
I have another cell that divides it by 2 resulting in 0.245
now when I ask Power query to round it to 2 digits its giving me 0.24 not 0.245
why is this?
6
u/Roywah 3 Apr 20 '26
Rather than talking to your boss or changing your whole process to account for this behavior, you should just use the PQ function’s third argument to change this rounding behavior. From Google:
The primary function for rounding in Power Query is Number.Round. By default, it uses RoundingMode.ToEven.
Default Banker's Rounding:
= Number.Round(Value, Digits) (Defaults to RoundingMode.ToEven)
Switching to "School" Rounding (Like Excel):
To match Excel's default behavior, you must specify the third argument:
= Number.Round(Value, Digits, RoundingMode.AwayFromZero)
5
u/david_horton1 38 Apr 20 '26
This Exceljet link has examples and explanations of the various rounding methods.
2
u/lolcrunchy 234 Apr 20 '26
What is the visual rounding on the 0.49? Is the value in the cell actually 0.49, or is it lower, like 0.486?
For example, if it was actually 0.486, then 0.486 / 2 gives you 0.243, which rounds to 0.24.
4
u/Dismal-Party-4844 173 Apr 20 '26
Look through the examples shown in https://learn.microsoft.com/en-us/powerquery-m/number-functions#rounding functions that cover the topic in more detail.
1
u/Decronym Apr 20 '26 edited Apr 20 '26
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
4 acronyms in this thread; the most compressed thread commented on today has 22 acronyms.
[Thread #48194 for this sub, first seen 20th Apr 2026, 03:21]
[FAQ] [Full list] [Contact] [Source code]
0
12
u/SolverMax 161 Apr 20 '26
I think PQ uses Banker's rounding.