<?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: Dates and Crosstables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712444#M1064499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post example data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 22:15:39 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2014-09-16T22:15:39Z</dc:date>
    <item>
      <title>Dates and Crosstables</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712443#M1064498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a db in the format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer,&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Year,&lt;/P&gt;&lt;P&gt;Month1,&lt;/P&gt;&lt;P&gt;Month2,&lt;/P&gt;&lt;P&gt;Month3...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I will have to use the crosstable function, but when and how can I define the Months as Months so it can be used with an existing Master Calendar?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 18:54:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712443#M1064498</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2014-09-16T18:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Crosstables</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712444#M1064499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please post example data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 22:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712444#M1064499</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-16T22:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Crosstables</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712445#M1064500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see this example, hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/03/24/crosstable" title="http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/24/crosstable"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/24/crosstable&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/185230"&gt;Re: How can I get one simple month field if I have 2 month fields?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.learnqlickview.com/cross-table-in-qlikview/" title="http://www.learnqlickview.com/cross-table-in-qlikview/"&gt;Cross Table in Qlikview « Learn Qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/36925"&gt;Convert columns into rows while importing from excel??&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 00:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712445#M1064500</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2014-09-17T00:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dates and Crosstables</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712446#M1064501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The crosstable wizard in the 'table files' wizard is helpful for this structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Here i'm loading a source file with field hearders as you described&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66930_Capture1.PNG.png" style="width: 620px; height: 276px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. When i select crosstable, increase the qualifiers to 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66931_Capture2.PNG.png" style="width: 620px; height: 485px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. The pivotted new table is shown. note that months are showing under column 'Product' . We change that in fnal step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66932_Capture3.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Rename Product to Month. Here it is highlighted where i made the change in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture4.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66933_Capture4.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Here is the loaded result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture5.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66934_Capture5.PNG.png" style="width: 620px; height: 359px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to hook this up to a master calendar, it would be good to create dates.&amp;nbsp; Back in the load script i can make a date between month and year through a resident load. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: i changed the months from month1, month2 to actual month names&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add Calendar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Name the first table ( I called it Temp) in the load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;CrossTable(Month, Data, 3)&lt;/P&gt;&lt;P&gt;LOAD Customer, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mar&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Add the following resident load to build a date field using Year and Month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(date#( Year &amp;amp; '/' &amp;amp; Month, 'YYYY/MMM')) as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Drop the first table 'Temp'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Now build a calendar table through a resident load loading the unique dates and calculating year, month,quarter and anything else you want off Date. That will ensure consistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;load distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(Date) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; QuarterName(Date) as QuarterName&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66935_Capture.PNG.png" style="width: 620px; height: 306px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 02:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-and-Crosstables/m-p/712446#M1064501</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-17T02:31:39Z</dc:date>
    </item>
  </channel>
</rss>

