<?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: Extracting the Date/Year from columns? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Extracting-the-Date-Year-from-columns/m-p/1925393#M76161</link>
    <description>&lt;P&gt;This is possible using the Generic prefix.&lt;/P&gt;&lt;P&gt;After creating your table from Crosstable prefix, you use this a resident load source to Split out your Year and Type&amp;nbsp; using Subfield, then just simply add the Generic prefix before that load statement and drop the original table. The layout will look odd, but it will give you the result you are looking for.&lt;/P&gt;&lt;P&gt;CrossTable:&lt;BR /&gt;CROSSTABLE ([Year Type],[Amount],2)&lt;BR /&gt;LOAD .....&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Generic&lt;BR /&gt;Load&lt;BR /&gt;Program,&lt;BR /&gt;[Account Number],&lt;BR /&gt;SubField([Year Type], ' ', 1) as Year,&lt;BR /&gt;SubField([Year Type], ' ', 2) as Type,&lt;BR /&gt;Amount&lt;BR /&gt;Resident CrossTable;&lt;/P&gt;&lt;P&gt;Drop Table CrossTable;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lisa_P_0-1651543414997.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78479i00A729E01CD1179A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lisa_P_0-1651543414997.png" alt="Lisa_P_0-1651543414997.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lisa_P_1-1651543431708.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78480i7EDA17ADAB2D292D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lisa_P_1-1651543431708.png" alt="Lisa_P_1-1651543431708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 02:04:04 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2022-05-03T02:04:04Z</dc:date>
    <item>
      <title>Extracting the Date/Year from columns?</title>
      <link>https://community.qlik.com/t5/App-Development/Extracting-the-Date-Year-from-columns/m-p/1925364#M76157</link>
      <description>&lt;P&gt;I have a dataset similar to the one below and am trying to extract the Year from the column header and generate a row for each year. Not sure of the best approach for this.&lt;/P&gt;
&lt;P&gt;Currently I tried a crosstable, then created a calculated column to extract the Year and the rest of the header as 2 columns (Year cand Type), but would now need to pivot that to make the Type column back into headers and am not sure if that is possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then want to add more columns that are X/Y, X/Z, etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EXCEL_KXFPtl0nt3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78474iFF0E435C606B77A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="EXCEL_KXFPtl0nt3.png" alt="EXCEL_KXFPtl0nt3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 22:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extracting-the-Date-Year-from-columns/m-p/1925364#M76157</guid>
      <dc:creator>jakepro716</dc:creator>
      <dc:date>2022-05-02T22:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the Date/Year from columns?</title>
      <link>https://community.qlik.com/t5/App-Development/Extracting-the-Date-Year-from-columns/m-p/1925393#M76161</link>
      <description>&lt;P&gt;This is possible using the Generic prefix.&lt;/P&gt;&lt;P&gt;After creating your table from Crosstable prefix, you use this a resident load source to Split out your Year and Type&amp;nbsp; using Subfield, then just simply add the Generic prefix before that load statement and drop the original table. The layout will look odd, but it will give you the result you are looking for.&lt;/P&gt;&lt;P&gt;CrossTable:&lt;BR /&gt;CROSSTABLE ([Year Type],[Amount],2)&lt;BR /&gt;LOAD .....&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Generic&lt;BR /&gt;Load&lt;BR /&gt;Program,&lt;BR /&gt;[Account Number],&lt;BR /&gt;SubField([Year Type], ' ', 1) as Year,&lt;BR /&gt;SubField([Year Type], ' ', 2) as Type,&lt;BR /&gt;Amount&lt;BR /&gt;Resident CrossTable;&lt;/P&gt;&lt;P&gt;Drop Table CrossTable;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lisa_P_0-1651543414997.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78479i00A729E01CD1179A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lisa_P_0-1651543414997.png" alt="Lisa_P_0-1651543414997.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lisa_P_1-1651543431708.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78480i7EDA17ADAB2D292D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lisa_P_1-1651543431708.png" alt="Lisa_P_1-1651543431708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 02:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Extracting-the-Date-Year-from-columns/m-p/1925393#M76161</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2022-05-03T02:04:04Z</dc:date>
    </item>
  </channel>
</rss>

