Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
My scenario: I have two table AW_Table1,TD_Table2 like,
i able to load match values to separate field.But i can't able to Mismatch value load to separate field,Please give query,
my script is,
hello... chk dis..... QVW file... derz a simpl sollution in dis QVW...!!!!
Hi bifal,
I can't able to load your missmatch.qvw document,so please give query.
Hi Mani
Use Apply Map instead of Join.
Please see the Attached Qvw.
I have used inline table. You can insert your tables.
Table1:
Mapping
Load @1 AS Key,
@5 AS AW_Table1
FROM
D:\QlikView\source\AW_Test.txt
(txt, codepage is 1252, no labels, delimiter is spaces, msq, header is 1 lines);
Table2:
Load @1 AS Key,
@2 AS TD_Table2,
ApplyMap('Table1',@1,'NOT Matching') as Applymapfield
FROM
D:\QlikView\source\TD_Test.txt
(txt, codepage is 1252, no labels, delimiter is spaces, msq, header is 1 lines);
Hope it works for you.
Regards
Aviral
Hi Nag,
Please give query.Your QVW should not be loaded.
Use this:
Table1:
Mapping
Load @1 AS Key,
@5 AS AW_Table1
FROM
D:\QlikView\source\AW_Test.txt
(txt, codepage is 1252, no labels, delimiter is spaces, msq, header is 1 lines);
Table2:
Load @1 AS Key,
@2 AS TD_Table2,
ApplyMap('Table1',@1,'NOT Matching') as Applymapfield
FROM
D:\QlikView\source\TD_Test.txt
(txt, codepage is 1252, no labels, delimiter is spaces, msq, header is 1 lines);
Hi Nag,
when i run this script,i had received one error like,
Go to Edit Script :
Remove * After Load
Please use this code and refer attached excel.
Table1:
Mapping
Load @1 AS Key,
@5 AS AW_Table1
FROM
D:\QlikView\source\AW_Test.txt
(txt, codepage is 1252, no labels, delimiter is spaces, msq, header is 1 lines);
Table2:
Load @1 AS Key,
@2 AS TD_Table2,
ApplyMap('Table1',@1,'NOT Matching') as Applymapfield
FROM
D:\QlikView\source\TD_Test.txt
(txt, codepage is 1252, no labels, delimiter is spaces, msq, header is 1 lines);
tabl1:
LOAD key,
tabl1
FROM
D:\missmatch\Book1.xlsx
(ooxml, embedded labels, table is Sheet1);
join
tabl2:
LOAD key,
tabl2
FROM
D:\missmatch\Book2.xlsx
(ooxml, embedded labels, table is Sheet1);
output:
load tabl1,
tabl2 as missmatch
resident tabl1
where tabl1 <> tabl2;