Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Power Query Editor Custom Column - Divide column from query by column from another query

There are 2 queries:

Query A, which contains column 1

Query B, which contains column 2

 

In Power Query Editor for Query A, I wish to create a custom column that divides Query A column by Query B column 2.

 

Current incorrect formula is: = [column 1]/#"Query B"

 

Any assistance appreciated. Wondering if it is possible without merging.

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can try to use List Functions  in Power Query without using a query merge to do lookups in Power Query.

If you have an index column in QueryB, you can add custom columns as below:
[Position in QueryB]

List.PositionOf(QueryB[Index],[ID])

1.png

[Column2]

QueryB[Column2]{[Position in QueryB]}

2.png

Result:

[Column1]/[Column2]

3.png

Please check my sample pbix file for more details.

 

Best Regards,
Community Support Team _ Eason

 

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

You can try to use List Functions  in Power Query without using a query merge to do lookups in Power Query.

If you have an index column in QueryB, you can add custom columns as below:
[Position in QueryB]

List.PositionOf(QueryB[Index],[ID])

1.png

[Column2]

QueryB[Column2]{[Position in QueryB]}

2.png

Result:

[Column1]/[Column2]

3.png

Please check my sample pbix file for more details.

 

Best Regards,
Community Support Team _ Eason

 

 

amitchandak
Super User
Super User

@Anonymous , If you do not merge you can not get line by line

 

Usually, you can get a column from another table Query B[Column2], But this is a list

 

So you might have to do List.Sum(Query B[Column2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors