<?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: Splitting records from an input table by month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Splitting-records-from-an-input-table-by-month/m-p/905912#M1001901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use something like the following (example attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataTmp:&lt;/P&gt;&lt;P&gt;Load * Inline [Year,CostCenter,Account,Value_001,Value_002,Value_003&lt;/P&gt;&lt;P&gt;2014,1,A,10,20,30&lt;/P&gt;&lt;P&gt;2014,1,A,20,30,40&lt;/P&gt;&lt;P&gt;2015,1,A,30,40,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataTmp2:&lt;/P&gt;&lt;P&gt;CrossTable (MonthTmp,Value,3) load *&lt;/P&gt;&lt;P&gt;resident DataTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table DataTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year,CostCenter,Account,Value,MonthName('01/'&amp;amp;right(MonthTmp,2)&amp;amp;'/'&amp;amp;Year) as Month;&lt;/P&gt;&lt;P&gt;LOAD * Resident DataTmp2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table DataTmp2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 15:38:23 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2015-06-03T15:38:23Z</dc:date>
    <item>
      <title>Splitting records from an input table by month</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-records-from-an-input-table-by-month/m-p/905911#M1001900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an input table with costs with a structure like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;Cost Center&lt;/P&gt;&lt;P&gt;Account&lt;/P&gt;&lt;P&gt;Value_001 (for Jan value)&lt;/P&gt;&lt;P&gt;Value_002 (for Feb value)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Value_012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to split that into records like&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Cost Center&lt;/P&gt;&lt;P&gt;Account&lt;/P&gt;&lt;P&gt;Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this ideally using a resident load and w/o keying in code for each of the months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-records-from-an-input-table-by-month/m-p/905911#M1001900</guid>
      <dc:creator />
      <dc:date>2015-06-03T15:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting records from an input table by month</title>
      <link>https://community.qlik.com/t5/QlikView/Splitting-records-from-an-input-table-by-month/m-p/905912#M1001901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use something like the following (example attached)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataTmp:&lt;/P&gt;&lt;P&gt;Load * Inline [Year,CostCenter,Account,Value_001,Value_002,Value_003&lt;/P&gt;&lt;P&gt;2014,1,A,10,20,30&lt;/P&gt;&lt;P&gt;2014,1,A,20,30,40&lt;/P&gt;&lt;P&gt;2015,1,A,30,40,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataTmp2:&lt;/P&gt;&lt;P&gt;CrossTable (MonthTmp,Value,3) load *&lt;/P&gt;&lt;P&gt;resident DataTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table DataTmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Year,CostCenter,Account,Value,MonthName('01/'&amp;amp;right(MonthTmp,2)&amp;amp;'/'&amp;amp;Year) as Month;&lt;/P&gt;&lt;P&gt;LOAD * Resident DataTmp2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table DataTmp2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Splitting-records-from-an-input-table-by-month/m-p/905912#M1001901</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-03T15:38:23Z</dc:date>
    </item>
  </channel>
</rss>

