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
MKumar_17
Helper I
Helper I

Want to fetch field id from table2 which has no relationship with table1

Hi,

I want to bring customer_id values from customers table into orders table. I am using lookupvalue which is showin error. added snapshot below. Since there is no relationship in two tables , I am using lookupvalues. Added workbook as well.

 

MKumar_17_0-1730205283735.png

link for pbixhttps://github.com/mohitkumar-Tyagi/xyz/blob/main/Fetch_customerid.pbix :

 

Thanks!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MKumar_17 , You can try a new column like

 

Maxx(filter(customer,customer[Customer Name] = Order[Customer Name]) , Customer[Customer ID])

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

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

View solution in original post

5 REPLIES 5
MKumar_17
Helper I
Helper I

@amitchandak  thanks!

lbendlin
Super User
Super User

Read about TREATAS.  Unlearn LOOKUPVALUE if you can.

@lbendlin  sure, thanks!

@lbendlin  sure, thanks!

amitchandak
Super User
Super User

@MKumar_17 , You can try a new column like

 

Maxx(filter(customer,customer[Customer Name] = Order[Customer Name]) , Customer[Customer ID])

 

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

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 Solution Authors
Top Kudoed Authors