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

Lookup valued from one table to another table column

Hi Gurus, 

 

can you please help me with below request.

 

I need a new column called Classification in Tabel2 looking up the Tabel1 relationship is One to Many from Tabel2 to Tabel1 

 

Break-In Logic.JPG

 

@ryan_mayu 

2 ACCEPTED SOLUTIONS

@Anonymous 

 

Is this what you want?

 

Creating a Revision column in table 2

Revision= LOOKUPVALUE('Table1 1'[Classification],'Table1 1'[orderid],'Table 2'[orderid])

 





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

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

@ryan_mayu , thanks for the reply.

 

I tried the column it gives me below error

 

RevisionClassificationError.JPG

View solution in original post

13 REPLIES 13
ryan_mayu
Super User
Super User

@Anonymous 

 

Is this what you want?

 

Classification = LOOKUPVALUE('Table1 (2)'[Classification],'Table1 (2)'[orderid],'Table'[orderid])

1.PNG

 





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

Proud to be a Super User!




Anonymous
Not applicable

@ryan_mayu ,

 

Classification is not a column in the Tabel2, It need to be calculated. thanks

@Anonymous 

 

I think if you created the relationship between two tables. you don't need to create a measure.

Just drag the order ID from table 1 and classification from table 2.

1.PNG





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

Proud to be a Super User!




@Anonymous 

 

Please try this measure

Measure = maxx(FILTER('Table1 (2)','Table1 (2)'[orderid]=RELATED('Table'[orderid])),'Table1 (2)'[Classification])

1.PNG





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

Proud to be a Super User!




Anonymous
Not applicable

@ryan_mayu ,

 

I do not have a column called Classification at the moment in Tabel2.

Requirement is to created a calcualted column looking that column from Table1. apologies for not being clear

 

@Anonymous 

 

Sorry I am a little confused about this. The first solution I provided is to create a column.

 

The second solution is for you to create visuals.

1.PNG

 

You want to show the classification in table 2, then you use the first solution. You want to display the corresponding classification in table 2, you can just drag order ID from table 2 and classification from table 1 to achieve.

 





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

Proud to be a Super User!




Anonymous
Not applicable

My Tabel2 is only like below. @ryan_mayu 

 

OrderID

A1

B2

C3

 

I need a calculated column called Revision lookingup the Classification column in Tabel1. Matching coloumn is OrderID for both tabel.

@Anonymous 

 

Is this what you want?

 

Creating a Revision column in table 2

Revision= LOOKUPVALUE('Table1 1'[Classification],'Table1 1'[orderid],'Table 2'[orderid])

 





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

Proud to be a Super User!




Anonymous
Not applicable

@ryan_mayu , you were correct, I maanged to find anther column to get the desired value. thanks a lot for the help

@Anonymous  nice to hear that. vlookup in excel wont get error because it will always get the first value in the list.





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

Proud to be a Super User!




Anonymous
Not applicable

@ryan_mayu , thanks for the reply.

 

I tried the column it gives me below error

 

RevisionClassificationError.JPG

@Anonymous 

 

I am guessing your sample data is not fully matching your real data.

1.PNG2.PNG

 

do you have differernt status for each ID? if so, lookupvalue does not work.





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

Proud to be a Super User!




Anonymous
Not applicable

Hi Ryan, 

Order ID is the unique id for both tabel, in excel I can get the value of table 1 from just by vlookup. need to replicate that in dax. 

 

does that answer your question.

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.