Forum Discussion
Need help on Lookup the data from other table
Hi all
I have two table WorkPlaceLookUp & Sorted2 both table have comman column Purchasing Document.
I need all the colunm from WorkPlaceLookUp table and Entry data from second table.
I tried to merge both table on the basis of Purchasing Document and try to get Entry data from second table Sorted2 getting null values. Can you please help
Table- WorkPlaceLookUp
RefKey3 Purchasing Document MIGO MIRO Grand Total
5947933137 29110947 -20450 -20450
5947933085 29110939 -19500 -19500
5947932826 29108577 -17304 -17304
5947930994 29154090 -14650 -14650
5947930938 29206775 -8250 -8250
5947913729 29119451 -17000 -17000
5947886305 29063181 -5865780 -5865780
5947822330 29063181 -5852300 -5852300
5947814755 29063181 -6231720 -6231720
5947784294 29063181 -6052400 -6052400
5947882304 29088762 -63046 -63046
5947879952 29094718 -2200 -2200
5947873476 29067215 -636055.08 -636055.08
5947873318 29067215 -1479928.52 -1479928.52
5947873036 29118778 -9200 -9200
5947866777 29068299 -3554.24 -3554.24
5947857535 28887995 -24992.4 -24992.4
5947856931 29060036 -1505488.74 -1505488.74
5947698346 29060036 -1505488.74 -1505488.74
5947852659 28898838 -49575 -49575
5947845076 28899328 -2599460 -2599460
5947845074 28899328 -2599460 -2599460
5947845070 28899328 -2599460 -2599460
5947701614 28899328 -1884608.5 -1884608.5
Table- Sorted2
Object key Order Document Number MIRO/MIGO Plant Purchasing Document Entry Date Unique_Key.1
59479945822023 5500166028 MIGO 1323 29137409 9/20/2023 29137409PE/INV/23-24/33
59479945822023 5500166028 MIGO 1323 29137409 9/20/2023 29137409PE/INV/23-24/33
59479945822023 5500166028 MIGO 1323 29137409 9/20/2023 29137409PE/INV/23-24/33
59479945822023 5500166028 MIGO 1323 29137409 9/20/2023 29137409PE/INV/23-24/33
59479331372023 5500159235 MIGO 1374 29110947 9/12/2023 29110947166
59479331372023 5500159235 MIGO 1374 29110947 9/12/2023 29110947166
59479330852023 5500159223 MIGO 1374 29110939 9/12/2023 29110939168
59479330852023 5500159223 MIGO 1374 29110939 9/12/2023 29110939168
59479328262023 5500159202 MIGO 1374 29108577 9/12/2023 291085772023240612
59478231062023 5500145876 MIGO 1374 29108577 8/29/2023 291085772023240612
59479328252023 5500159199 MIGO 1374 29108577 9/12/2023 291085772023240612
59479309942023 5500158923 MIGO 1374 29154090 9/12/2023 291540900005543
59479309942023 5500158923 MIGO 1374 29154090 9/12/2023 291540900005543
59479309942023 5500158923 MIGO 1374 29154090 9/12/2023 291540900005543
59479309942023 5500158923 MIGO 1374 29154090 9/12/2023 291540900005543
59479309942023 5500158923 MIGO 1374 29154090 9/12/2023 291540900005543
59479309382023 5500158918 MIGO 1374 29206775 9/12/2023 292067750005544
59479137292023 5500156871 MIGO 1323 29119451 9/10/2023 29119451SSI/0586/23-24
59478863052023 5500153094 MIGO 1323 29063181 9/6/2023 290631812324271100535
59478863052023 5500153094 MIGO 1323 29063181 9/6/2023 290631812324271100535
59478863052023 5500153094 MIGO 1323 29063181 9/6/2023 290631812324271100535
59478863052023 5500153094 MIGO 1323 29063181 9/6/2023 290631812324271100535
59478863052023 5500153094 MIGO 1323 29063181 9/6/2023 290631812324271100535
59478863052023 5500153094 MIGO 1323 29063181 9/6/2023 290631812324271100535
2 Replies
- HotChilliCommunity Champion
A merge looks like it should work. Do you have the same datatype on both columns? If you do, is it a number type?
- Dangar332Resident Rockstar
hi, KuntalSingh
i think it done by dax
add new column to WorkPlaceLookUp
Entry Date = lookupvalue('Sorted2'[entry date],
'WorkPlaceLookUp'[Purchasing Document], 'Sorted2'[Purchasing Document] )
and if you have more comparative column in table you can put like 'WorkPlaceLookUp'[Purchasing Document], 'Sorted2'[Purchasing Document] . it basically compare same value in both table and give relavant answer.
Did i answer your question? Mark my post as a solution which help other people to find fast and easily.