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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
gauravnarchal
Post Prodigy
Post Prodigy

Lookup & filter together

Hello

 

How can I bring the data from Table 1 to Table 2 using lookup and filter?

 

If the unique key of table 1 matches the unique key of table 2 & name of table 1 is FF20 return the value from Table 1 to Table 2.

 

Table 1 

 

unique_keynamevalue
1015422FF33 
1015422FF46 
1015422FF47 
1015422Traveller Guid 
1015422FF2Apple
1015422FF20E-MAIL
1015422FF16Test
1015422FF1June
1015422FF10NA
1015422FF13NA
1015422FF3NA

 

Table 2

 

unique_keySupplier CodeFF20
101542212154125 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @gauravnarchal 
Based on the information you gave, I have created two tables, and the following is my model view.

 

vyohuamsft_0-1705988054393.png

 

Please following these steps:

 

Create a new column named FF20, Here's the DAX expression:

vyohuamsft_1-1705988054398.png

 

FF20 = MAXX(FILTER(Table1,Table1[name]="FF20"&&Table1[Unique_key]=Table2[Unique_key]),[value])

 

The following is my preview.

1.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @gauravnarchal 
Based on the information you gave, I have created two tables, and the following is my model view.

 

vyohuamsft_0-1705988054393.png

 

Please following these steps:

 

Create a new column named FF20, Here's the DAX expression:

vyohuamsft_1-1705988054398.png

 

FF20 = MAXX(FILTER(Table1,Table1[name]="FF20"&&Table1[Unique_key]=Table2[Unique_key]),[value])

 

The following is my preview.

1.png

 

 

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

speedramps
Super User
Super User

I assume you are Power BI novice if you dont know how to build lookup relationships yet.

Please try do this training before asking basic questions. Thank you ....

 

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-create-and-manage-relationships

 

and

 

https://www.youtube.com/watch?v=sW5LoDA1ssM

 

 

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.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.