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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
snifer
Post Patron
Post Patron

lookup value from another table

Hi i got 2 table

 

table 1 'RECO GL DK SALE  table 2 RECO EAST DK SALE
       
Document No.Amount  Document No.Amountlookup from table 1 (this is what i want)
100150  100300270
100120  10015050
100150     

 

I wanna to do this

AMOUNT GL look reco = LOOKUPVALUE('RECO GL DK SALE'[Amount],'RECO GL DK SALE'[Document No.],'RECO EAST DK SALE'[Document No.])

 

but I got an error because in table 1 there are multiple line in tabel 1

A table of multiple values was supplied where a single value was expected.

 

how i can have the sum of these lines in table 1?

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@snifer Please try this as a "New Column" in your table 2

 

LkpAmount = CALCULATE(SUM(Test124Lkp[Amount]),FILTER(Test124Lkp,Test124Data[DocumentNo]=Test124Lkp[DocumentNo]))

image.png





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

Proud to be a PBI Community Champion




View solution in original post

1 REPLY 1
PattemManohar
Community Champion
Community Champion

@snifer Please try this as a "New Column" in your table 2

 

LkpAmount = CALCULATE(SUM(Test124Lkp[Amount]),FILTER(Test124Lkp,Test124Data[DocumentNo]=Test124Lkp[DocumentNo]))

image.png





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

Proud to be a PBI Community Champion




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.