Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Somasundaram
Creator III
Creator III

how to get the values based on the dates?

Hi All,

Please find the attached excel sheet, I have provided the Input, Mapping table and Out put , Based on the Mapping table I need to match the date field. Please do the needful. Thanks in advance

  

Mapping table Table
DateITC Day
1/18/20171/25/2017
2/15/20172/22/2017
3/20/20173/27/2017
4/17/20174/24/2017
5/17/20175/24/2017
6/19/20176/26/2017
7/18/20177/25/2017
8/18/2017

8/25/2017

 

input date
date
1/10/2017
1/1/2017
1/10/2017
1/14/2017
1/16/2017
1/17/2017
2/10/2017
2/12/2017
2/14/2017
2/15/2017
2/16/2017
2/17/2017
2/18/2017
3/1/2017
3/10/2017
3/11/2017
3/12/2017
3/20/2017
4/1/2017
4/12/2017

4/16/2017

  

Output
dateITC Day
1/10/20171/25/2017
1/1/20171/25/2017
1/10/20171/25/2017
1/14/20171/25/2017
1/16/20171/25/2017
1/17/20171/25/2017
2/10/20172/22/2017
2/12/20172/22/2017
2/14/20173/27/2017
2/15/20173/27/2017
2/16/20173/27/2017
2/17/20173/27/2017
2/18/20173/27/2017
3/1/20173/27/2017
3/10/20174/24/2017
3/11/20174/24/2017
3/12/20174/24/2017
3/20/20174/24/2017
4/1/20174/24/2017
4/12/20174/24/2017
4/16/20174/24/2017

-Somasundaram

If this resolves your Query please like and accept this as an answer.
1 Solution

Accepted Solutions
Somasundaram
Creator III
Creator III
Author

Using Interval match,I could get the above date.

Thanks all for your replies.


-Somasundaram

If this resolves your Query please like and accept this as an answer.

View solution in original post

4 Replies
MarcoWedel

please elaborate

jheasley
Luminary Alumni
Luminary Alumni

first step::::

DateMap:

Mapping Load

     Date("Date"),

     ITCDate

From [filepath];

second step::::

DateLoad:

     Date

     ApplyMap('DateMap',Date("Date"),-99) as ITCDate

From [filepath]

Somasundaram
Creator III
Creator III
Author

Using apply map how can i get the less than value. here, input date need to match with less than date of mapping table.


-Somasundaram

If this resolves your Query please like and accept this as an answer.
Somasundaram
Creator III
Creator III
Author

Using Interval match,I could get the above date.

Thanks all for your replies.


-Somasundaram

If this resolves your Query please like and accept this as an answer.