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
Justas4478
Post Prodigy
Post Prodigy

Power query division without merging tables?

Hi, I have this calculated column in report view:

DIVIDE('Stock take file new'[Absolute Difference Quantity],RELATED('Product information'[Pick to Base UoM Quantity]))
I do need to recreate it using power query since I need to use it create other column.
I dont know is it possible to Value.Divide when tables are not merged, I tried but could not make it work.
Anyone know if it is possible or I have to do a merge?
Thanks
1 ACCEPTED SOLUTION
BeaBF
Super User
Super User

@Justas4478 Hi! If you don't want to merge, you can look up values from the second table dynamically, something like:

 

Table.AddColumn(#"Previous Step", "Calculated Column", each
Value.Divide(
[Absolute Difference Quantity],
List.First(
Table.SelectRows(
#"Product information",
each [Product ID] = _[Product ID]
)[Pick to Base UoM Quantity],
null
)
)
)

 

If performance is a concern and you want a cleaner approach, merging tables is the best way to go. If merging is not an option due to constraints, then the Table.SelectRows method can work but will be slower for large datasets.

 

BBF

 

 

View solution in original post

2 REPLIES 2
BeaBF
Super User
Super User

@Justas4478 Hi! If you don't want to merge, you can look up values from the second table dynamically, something like:

 

Table.AddColumn(#"Previous Step", "Calculated Column", each
Value.Divide(
[Absolute Difference Quantity],
List.First(
Table.SelectRows(
#"Product information",
each [Product ID] = _[Product ID]
)[Pick to Base UoM Quantity],
null
)
)
)

 

If performance is a concern and you want a cleaner approach, merging tables is the best way to go. If merging is not an option due to constraints, then the Table.SelectRows method can work but will be slower for large datasets.

 

BBF

 

 

@BeaBF The performance concerns is my primary worry so I will try the merge in hopes that it is better over long term.
Thanks for the solution I know I will find where to use it.

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 Kudoed Authors