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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
paolojolly
Creator
Creator

join table

hi,

i'm new in qlik view and i have the following problem.

I have two table, one with document date and price

                       

doc dateprize
01/02/20141
04/04/20142
15/05/20142,2
05/06/20142,5

and another with quotation date and quotation value

                           

quotation
  date
value quotation
01/01/20145
15/02/20146
03/03/20147
03/04/20148
05/05/20149

I need to join the two tables in order to obtain

doc dateprize last value   quotation     with date <= doc date
01/02/201415
04/04/201428
15/05/20142,29
05/06/20142,5

9

can someone help me?

Thanks

Labels (1)
1 Solution

Accepted Solutions
MarcoWedel
MVP
MVP

Hi,

one solution could be:

QlikCommunity_Thread_143406_Pic1.JPG.jpg

tabPrice:

LOAD *

FROM [http://community.qlik.com/thread/143406] (html, codepage is 1252, embedded labels, table is @1);

tabValue:

LOAD *

FROM [http://community.qlik.com/thread/143406] (html, codepage is 1252, embedded labels, table is @2);

tabLink:

IntervalMatch ([doc date])

LOAD [quotation date],

    Alt(Previous([quotation date]),Today()) as [prev quotation date]

Resident tabValue

Order By [quotation date] desc;

hope this helps

regards

Marco

View solution in original post

3 Replies
MarcoWedel
MVP
MVP

Hi,

one solution could be:

QlikCommunity_Thread_143406_Pic1.JPG.jpg

tabPrice:

LOAD *

FROM [http://community.qlik.com/thread/143406] (html, codepage is 1252, embedded labels, table is @1);

tabValue:

LOAD *

FROM [http://community.qlik.com/thread/143406] (html, codepage is 1252, embedded labels, table is @2);

tabLink:

IntervalMatch ([doc date])

LOAD [quotation date],

    Alt(Previous([quotation date]),Today()) as [prev quotation date]

Resident tabValue

Order By [quotation date] desc;

hope this helps

regards

Marco

paolojolly
Creator
Creator
Author

Thank you very much!

MarcoWedel
MVP
MVP

You're welcome

Regards

Marco