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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I've been bouncing around this issue for a couple days now with no luck using Power Query.
I'd like to return rounded to nearest values based on values from another column.
My first idea was using the merge function, but that will only work if the values match.
Is there a way to integrate the Number.Round function into the merge function, or is that the wrong approach?
Table 1 (The 3rd column is what I would like returned)
| Location | Value | Rounded to Nearest (Return this Column) |
| A | 2 | 0 |
| B | 3 | 5 |
| C | 29 | 30 |
| D | 15 | 20 |
| E | 20 | 20 |
| F | 27 | 25 |
| G | 11 | 10 |
| H | 7 | 5 |
| I | 9 | 10 |
This is the reference table used to round to the nearest value.
Table 2 (Values to round to)
| 0 |
| 5 |
| 10 |
| 20 |
| 25 |
| 30 |
Thank You.
@roncruiser merge the tables and try this
Number.Round( _ , [Reference Column])
Makesure the value columns are Integer type
@jaipal
I'm unsure where to place the Number.Round(_,[Reference Column] when doing a NextJoin with JoinKind.FullOuter.
It works if the numbers match but won't round to the nearest number if the number falls between numbers in the reference table.
Please clarify.
Thank You.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 93 | |
| 81 | |
| 73 | |
| 46 | |
| 35 |