<?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 Re: composite key in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258571#M624343</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;It is better if you create master calendar in your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 08:30:51 GMT</pubDate>
    <dc:creator>sushil353</dc:creator>
    <dc:date>2016-11-16T08:30:51Z</dc:date>
    <item>
      <title>composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258569#M624341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i am creating a composite key and need to get the year and month field selected simaltnaeously in the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want year &amp;amp; month as filters.&lt;/P&gt;&lt;P&gt;I need 2012 jan to be filtered in the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258569#M624341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T08:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258570#M624342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you donot have data from 2012&lt;/P&gt;&lt;P&gt;I would recommend to use a master calender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258570#M624342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T08:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258571#M624343</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;It is better if you create master calendar in your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258571#M624343</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2016-11-16T08:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258572#M624344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;Could you please provide me sample code for master calendar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258572#M624344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T08:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258573#M624345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this master calendar script code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateData:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;YearStart( Today() ) + IterNo() as Date,&lt;/P&gt;&lt;P&gt;Rand() as Value&lt;/P&gt;&lt;P&gt;AutoGenerate 1&lt;/P&gt;&lt;P&gt;While (YearStart(Today()) + IterNo())&amp;nbsp; &amp;lt;= YearEnd(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Date(Date) as DateNew&lt;/P&gt;&lt;P&gt;Resident DateData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3858"&gt;Master Calendar Generation Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar" title="https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2012/10/16/the-master-calendar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258573#M624345</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-11-16T08:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258574#M624346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, check this document: &lt;A href="https://community.qlik.com/docs/DOC-3858"&gt;Master Calendar Generation Script&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this part of the script:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(InvoiceDate) AS MinDate,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(InvoiceDate) AS MaxDate&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;RESIDENT Invoice;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MinDate should store the start date of the calendar and MaxDate the end date, it can be dynamic absed on data like in the sample, you can fixed the dates using Date('YourDate') or you can create a variable that sets the min and max dates and use the variables to assign values to MinDate and MaxDate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 08:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258574#M624346</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-16T08:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258575#M624347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in my application i have only year and month i dont have any date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please respond now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258575#M624347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T09:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258576#M624348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John, you can create only one record per month changing from:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Load Date(MinDate + IterNo() -1 ) AS InvoiceDate While (MinDate + IterNo() - 1) &amp;lt;= Num(MaxDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load Date(AddMonths(MinDate, IterNo() -1)) AS InvoiceDate While &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(AddMonths(MinDate, IterNo() -1))&lt;/SPAN&gt; &amp;lt;= Num(MaxDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Anyway, dont' worry too much for creating all dates, as it is another table you can create all dates without affecting your data. and if you load 5-6 years of dates there will be less than 2k extra records.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258576#M624348</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-11-16T09:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: composite key</title>
      <link>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258577#M624349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest some of the main points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Make Master Calendar&lt;/P&gt;&lt;P&gt;2. To connect with the Date field create the date field with Makedate function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:-&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Makedate(Year, Month) as Datefield&lt;/P&gt;&lt;P&gt;From Location;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 09:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/composite-key/m-p/1258577#M624349</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-11-16T09:38:45Z</dc:date>
    </item>
  </channel>
</rss>

