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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Retrieve Multiple Columns From Another Table

Hello Power BI community,

I hope everyone doing well. Currently I am working on a table which I need to add couple of columns from another table. I managed to retrieve one column based on filter context however I would like to learn if there is a way to retrieve multiple columns at the same time. Thanks to this community I found following DAX code which retrieves one column based on one or multiple filter context. The code below return students age, but I would like to retrieve grades, parent name etc. at the same time. 

 

Student Age =
CALCULATE (
FIRSTNONBLANK ('Student[Age], 1),
FILTER (
'Student',
'School[Student Number] = 'Student'[ID]
)
)
1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

You could use lookupvalue function to realize it.

Syntax:

 

LOOKUPVALUE(
    <result_columnName>,
    <search_columnName>,
    <search_value>
    [, <search2_columnName>, <search2_value>]…
    [, <alternateResult>]
)

 

Check here for more details.

Also check below blog for reference:

https://www.c-sharpcorner.com/article/dax-in-power-bi-how-to-use-lookupvalue-function/

 

Best Regards,
Kelly

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

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

You could use lookupvalue function to realize it.

Syntax:

 

LOOKUPVALUE(
    <result_columnName>,
    <search_columnName>,
    <search_value>
    [, <search2_columnName>, <search2_value>]…
    [, <alternateResult>]
)

 

Check here for more details.

Also check below blog for reference:

https://www.c-sharpcorner.com/article/dax-in-power-bi-how-to-use-lookupvalue-function/

 

Best Regards,
Kelly

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

Anonymous
Not applicable

Thank you! Missed that functionality of Lookupvalue(). 

amitchandak
Super User
Super User

@Anonymous , In this case, better option is to merge in power query

Merge Tables (Power Query) : https://www.youtube.com/watch?v=zNrmbagO0Oo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=16

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

Or you need two create new columns for all those required columns.

 

If DAX we prefer dimensions to remain separate. So unless it is most required, you should avoid it.

 

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
Anonymous
Not applicable

Hello thanks a lot for your reply. However as the number of rows differ merge operation is not working. Only option seems to retrieve each column one by one for now. 

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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