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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
BarryFletcher
Helper III
Helper III

Retrieve multiple column values from another table based on value in initial table?

Hi all,

 

Is there an easy way I can get multiple values deom a second table based on a value in the first table?

 

I both tables I have a value (Line Number) and I would like to get several column values based on the Line number vale in Table one.#

 

Soi if Table A has a Line Number value 12345-678 then I would like my table to show maybe 2/3 column values where the Line Number value in Table B is also 12345-678

 

 

 

 

1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

Create a New Calculated Table

FilteredTable =
SELECTCOLUMNS(
FILTER(
TableB,
TableB[Line Number] IN VALUES(TableA[Line Number])
),
"Line Number", TableB[Line Number],
"Column1", TableB[Column1],
"Column2", TableB[Column2]
// Add more columns as needed
)

 

View solution in original post

4 REPLIES 4
BarryFletcher
Helper III
Helper III

Thank you - worked perfectly

ryan_mayu
Super User
Super User

you can try to merge queries in PQ

 

https://learn.microsoft.com/en-us/power-query/merge-queries-overview?wt.mc_id=DP-MVP-5004616

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thank you

Kedar_Pande
Super User
Super User

Create a New Calculated Table

FilteredTable =
SELECTCOLUMNS(
FILTER(
TableB,
TableB[Line Number] IN VALUES(TableA[Line Number])
),
"Line Number", TableB[Line Number],
"Column1", TableB[Column1],
"Column2", TableB[Column2]
// Add more columns as needed
)

 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.