Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Map Help

Hi All,

I'm new to qlikview and I'm trying to map a field to a table, but I'm struggling to get it to work. This is what I'm trying to do:

Table1:

ABCD
X1101/01/201210/10/2012
X2204/06/201102/02/2012
X3403/09/201107/07/2012
X4610/06/201101/05/2012
X5601/04/201131/03/2012
X3625/04/201122/07/2011
X6310/08/201110/06/2012
X7030/04/201120/09/2011
X2103/03/201204/04/2012

Table2:

AE
X203/09/2011
X320/03/2012
X401/01/2012
X512/12/2011
X620/01/2012
X710/05/2012
X210/03/2012

I need to map field B to Table 2, however; the outcome must be dependant upon the date in field E falling between the dates in fields C and D.

This is what the outcome should be:

AEB2
X203/09/20112
X320/03/20124
X401/01/20126
X512/12/20116
X620/01/20123
X710/05/20120
X210/03/20121

Any help would be much appreciated.

Thanks

1 Reply
Not applicable
Author

Stephanier,

I have just had a quick look at this.  I have attached a qvw which should give the result you are looking for.

Based upon the above data, you join the two table and then via an 'if' statement you look for where E is not less than C or more than D.  Where this fits you return B, where it doesnt you return somthing like 'ERROR'.

You can then reload the table to exlude where 'ERROR' is shown.

I'm sure there could be neater ways to do this that somone else may be able to advise.

Many thanks