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

need help for Lookup function

Dear all,

I need help regarding the lookup function as their was many help regarding this.

but my query is different but regarding the lookup in single table.

I am trying to add  column price 2 by surcharging from price 1 through factory_godown in godown to godown column and putting the price 1 value in the chart.

I am Attaching the base file which is created by qlik view.

Required table in qlik view chart 

Cement_Flowfactory_godownGodown to GodownpicsAMOUNTprice1price 2price 1+2
F-G201L416L3,8022,634,087.006930693
F-G202K407K6,5251,827,000.002800280
F-G202K411K11,9303,556,924.002980298
F-G202K473K3,9383,084,132.007830783
F-G203M427M6,6932,529,729.503780378
F-G209C473C3,8225,633,896.001,47401,474
F-G209C535C4,6262,640,576.005710571
F-G209C537C7,6674,938,180.006440644
F-G209C542C4,0142,336,567.005820582
F-G219B427B7,77010,525,860.001,35501,355
F-G219B518B5,4433,334,484.006130613
G-G407K401K245200,165.008172801,097
G-G407K402K8157,753.00713280993
G-G411K419K2512,500.00500298798
G-G416L415L18956,700.00300693993
G-G427B825B25863,210.002451,3551,600
G-G427M825M33281,340.00245378623
G-G473C410C800320,000.004001,4741,874
G-G473L410L3012,000.004000400
G-G518B517B171,819.00107613720
G-G537C754C7833,228.004266441,070
G-G542C419C32691,280.00280582862

Message was edited by: Tarun Bisen I have done in excel file but the data is very huge for that it is not possible to do all tome i have shared a sample of data. now i am attaching the final excel report file where i have done through using functions.

13 Replies
Anonymous
Not applicable

Dear Tarun,

in you example you have select only rows that have Goods_Flow='F-G' and in the script the price2 is calculate only for Goods_Flow='G-G' (script line: if(Goods_Flow='G-G',ApplyMap('Price_Map',factory_godown,0),0) as Price2).

So i normal that you dont have the price2.

Maybe you should delete the if statementin ten script and replace it with ApplyMap('Price_Map',factory_godown,0) as Price2?

Regards.

tabisen1
Contributor II
Contributor II
Author

Dear Giuseppe,

I am very sorry that i have done the wrong selection yesterday i am sending

the snap short of the selection the price2 is coming 285 insect of 298.

In below snap short you can see the flow of goods from factory to the final

godown.( 798)

Regards,

Anonymous
Not applicable

Dear Tarun,

The price2 in the line factory godown 411K and goodown to godown 419K have price2 285 because if you cntrol the Excel file Actual file vlookup fuction.xls Sheet1 (the script read from this sheet and not from sheet2) the price of G-G 411K (Amount/pics that is loaded with Mapping Load and then with Applymap) is 285. So it is correct. The price2 298 is in the sheet2, you can load this in the mapping load if you want.

Regards.

sinanozdemir
Specialist III
Specialist III

Yes, applymap is faster. Just tried to give the OP another solution.