<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Past and future dates in the same table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999425#M960161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with fields that hold the date of the transaction (historical) and future date for following up a call or letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is chart the historical and future dates on a chart using the same timeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I go about this, what is the best practice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it best to create a new table in the load script, concatenating the Transdate(historical) and Transdatefollowup(Future) field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I am going to chart is the count if transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the future dates will have gaps in the month, so I need to make that show by using calander table with no breaks in months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I also include a calender table in, my tables are producing SYN table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 12:04:01 GMT</pubDate>
    <dc:creator>tinkerz1</dc:creator>
    <dc:date>2015-10-30T12:04:01Z</dc:date>
    <item>
      <title>Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999425#M960161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with fields that hold the date of the transaction (historical) and future date for following up a call or letter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need to do is chart the historical and future dates on a chart using the same timeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I go about this, what is the best practice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it best to create a new table in the load script, concatenating the Transdate(historical) and Transdatefollowup(Future) field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I am going to chart is the count if transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the future dates will have gaps in the month, so I need to make that show by using calander table with no breaks in months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I also include a calender table in, my tables are producing SYN table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999425#M960161</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-10-30T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999426#M960162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning Neil,&lt;/P&gt;&lt;P&gt;It looks like you've go the right idea with potentially using a link table, an island calendar, or a concatenated fact table, but your model seems to be a bit of a combination of the first 2 in a way that I don't think will get you there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you simply need a count of transactions, i would probably create a table with TransactionID, TransType, and Date, where TransType specifies historical or future and date correlates to that.&amp;nbsp; You can join this back to your model on TransactionID, and then link Date to a master calendar rather than an Island Calendar.&amp;nbsp; When it comes to your chart, you can use set analysis to specify the transtype and do a count distinct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll see if i can work it up based on your example and post it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-CB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:11:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999426#M960162</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-30T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999427#M960163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using FirstSortedValue function with sort weight as the calender field(suffix - for previous value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;SK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999427#M960163</guid>
      <dc:creator>santhosh_k_n</dc:creator>
      <dc:date>2015-10-30T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999428#M960164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at the attach example&lt;/P&gt;&lt;P&gt;maybe it'll give you a direction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999428#M960164</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-10-30T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999429#M960165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999429#M960165</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-30T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999430#M960166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Example Attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999430#M960166</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-10-30T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999431#M960167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Maxgro and Liron, this has really gone very far into helping me understand how to build data map and using dimensions with simple statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 13:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999431#M960167</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-10-30T13:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999432#M960168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Chance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see the attachment, can you repost please, I am really keen to see your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999432#M960168</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-11-02T12:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999433#M960169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Odd you don't see it...re-attached&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-11-02 06_35_19-Past and future dates in the same table _ Qlik Community.png" class="jive-image image-1" src="/legacyfs/online/103715_2015-11-02 06_35_19-Past and future dates in the same table _ Qlik Community.png" style="height: 463px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 12:45:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999433#M960169</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-11-02T12:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999434#M960170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Chance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the script, it helps understanding how to normalize a data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One reason for a creating a date island is to have a continuous run of dates, when dealing with future data its important to see the months without any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The issue is that the future dates will have gaps in the month, so I need to make that show by using calander table with no breaks in months."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With your script and others I have managed to get a working data model and script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 13:28:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999434#M960170</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-11-02T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999435#M960171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a further question about adding in dates(months) that have no transactional data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make a calender and link that to a transactional or fact table, I can select dates, but&amp;nbsp; I need to show months with no data when pivoting or charting, because there are no dates in the fact table how do I get a timeline that is not broken due to no transactions in that month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999435#M960171</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-11-02T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999436#M960172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neil,&lt;/P&gt;&lt;P&gt;My point was that you dont need a "Date Island" in my version, rather just a "Master Calendar".&amp;nbsp; A date island is typically the same as a master calendar, but as the name suggests it is not connected to the model.&amp;nbsp; It is useful when you have multiple date fields to filter on and is leveraged via expressions in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I have a master calendar that will produce a date for every day between your min and max dates, but it is connected to the model.&amp;nbsp; Since there is a record for every day and not an associated value, the dates with no value will show up blank unless you hide the empty dimensions via object properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should also address the question you just posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-cb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 15:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999436#M960172</guid>
      <dc:creator>chancekbarkley</dc:creator>
      <dc:date>2015-11-02T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Past and future dates in the same table</title>
      <link>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999437#M960173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to leave my laptop at work but I am reading up on master calendar tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am reading correctly I would concatenate month - year in the master calendar at the lowest level of data, ie transactional data(daily) and then I can pivot and chart from the month - year concatenated field to group into monthly data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I can add in monthly budget data to the fact table and flag that loaded table 'budget' data; as long as I have a date field in the uploaded budget table with a date in the same format and column as the transaction data; I can then plot 2 different aggregations levels in the same pivot table or chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that how you would handle this data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 22:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Past-and-future-dates-in-the-same-table/m-p/999437#M960173</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-11-02T22:43:30Z</dc:date>
    </item>
  </channel>
</rss>

