Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date matching issue

Heyho Everyone!

I have a question where I couldn't find an answer by googling around. I'm creating a system where two tables are matched based on Symbol as a key. I summarize it in sample data (The values are not relevant):

Table 1 - Represents data aggregation from Stock closing prices

Symboltable1.DateStock closing price in local currencyStock closing price in USD
XY2016-11-01120.5012.4
XY2016-10-31121.1012.8
XY2016-10-30119.2012.1
CB2016-11-0111221102.2
............

Table 2 - Represents stock purchasing actions

Symboltable2.DateStock purchase price in local currencyStock purchase price in USD
XY2016-11-01119.5012.15
CB2016-11-0111220.5102.18
............

Table 2 has way less dates than Table 1.

When I combine this together in a QlikSense view and the data is mapped on Symbol the data looks like this:

Combined Table:

SymbolDateStock purchase price in local currencyStock purchase price in USDStock closing price in local currencyStock closing price in USD
XY2016-11-01119.5012.15--
CB2016-11-0111220.5102.18--
............--

The values in the "Stock closing price in local currency" and the "Stock closing price in USD" columns are empty. It is because the table1.Date is not aligned with table2.Date.

Ideal Table:

SymbolDateStock purchase price in local currencyStock purchase price in USDStock closing price in local currencyStock closing price in USD
XY2016-11-01119.5012.15120.5012.4
CB2016-11-0111220.5102.1811221102.2
..................

If I make a filter for table2.Date for a specific date, then I will see the missing data, but that's quite a workaround. It must be a way to match the Stock based on symbol and then find the correct Date value from Table 1 to add it to the Combined table.

Is there a way to map these together that for every stock purchase decision it shows the information from the other table with the stock closing prices?

I tried to create it with Set Analysis Wizzard for a formula (http://tools.qlikblog.at/SetAnalysisWizard/QlikView-SetAnalysis_Wizard_and_Generator.aspx?sa=) but couldn't find the right one where the system would give me back the corresponding value.

It would be a great help.

Have a great day,

Gabor

0 Replies