<?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 adding a column during LOAD in CROSSTABLE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195043#M55720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torben,&lt;/P&gt;&lt;P&gt;not exactly sure but you can try this statement. If you are adding a additional field in your crosstable load you have to change the 11 into 12 (stands for: how many regular fields in your original table).&lt;/P&gt;&lt;P&gt;CROSSTABLE (A, B, 12) LOAD year,&lt;BR /&gt; [Emp.-No.],&lt;BR /&gt; If( "Emp.-No."&amp;lt;1000, 'US',&lt;BR /&gt; If( "Emp.-No."&amp;gt;=1000 AND "Emp.-No." &amp;lt;2000, 'CA', 'MX')) as "Group",&lt;BR /&gt; Office,&lt;BR /&gt; *&lt;BR /&gt; FROM...&lt;/P&gt;&lt;P&gt;Otherwise do a resident load of your crosstable and put in the required if statement here.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Mar 2010 12:37:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-26T12:37:52Z</dc:date>
    <item>
      <title>adding a column during LOAD in CROSSTABLE</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195042#M55719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I don't know if this is possible at all... however unfortunately my script doesn't do the trick.&lt;/P&gt;&lt;P&gt;While LOADing a CROSSTABLE I would like to add a column which contains values based on a CASE check. My script looks like the following:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;CROSSTABLE (A, B, 11) LOAD year,&lt;BR /&gt; [Emp.-No.],&lt;BR /&gt; CASE WHEN "Emp.-No."&amp;lt;1000&lt;BR /&gt; then 'US'&lt;BR /&gt; CASE WHEN "Emp.-No."&amp;gt;=1000 AND &amp;lt;2000&lt;BR /&gt; then 'CA'&lt;BR /&gt; ELSE 'MX'&lt;BR /&gt; END as "Group",&lt;BR /&gt; Office,&lt;BR /&gt; *&lt;BR /&gt; FROM...&lt;/P&gt;&lt;P&gt;Am I following the wrong approach to this or is this an abuse of the syntax?? [6]&lt;/P&gt;&lt;P&gt;Any help is highly appreciated!! Thanks in advnace&lt;/P&gt;&lt;P&gt;Torben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 12:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195042#M55719</guid>
      <dc:creator />
      <dc:date>2010-03-26T12:09:21Z</dc:date>
    </item>
    <item>
      <title>adding a column during LOAD in CROSSTABLE</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195043#M55720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Torben,&lt;/P&gt;&lt;P&gt;not exactly sure but you can try this statement. If you are adding a additional field in your crosstable load you have to change the 11 into 12 (stands for: how many regular fields in your original table).&lt;/P&gt;&lt;P&gt;CROSSTABLE (A, B, 12) LOAD year,&lt;BR /&gt; [Emp.-No.],&lt;BR /&gt; If( "Emp.-No."&amp;lt;1000, 'US',&lt;BR /&gt; If( "Emp.-No."&amp;gt;=1000 AND "Emp.-No." &amp;lt;2000, 'CA', 'MX')) as "Group",&lt;BR /&gt; Office,&lt;BR /&gt; *&lt;BR /&gt; FROM...&lt;/P&gt;&lt;P&gt;Otherwise do a resident load of your crosstable and put in the required if statement here.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 12:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195043#M55720</guid>
      <dc:creator />
      <dc:date>2010-03-26T12:37:52Z</dc:date>
    </item>
    <item>
      <title>adding a column during LOAD in CROSSTABLE</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195044#M55721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rainer!&lt;/P&gt;&lt;P&gt;Runs smoothly &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt; &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Mar 2010 13:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-column-during-LOAD-in-CROSSTABLE/m-p/195044#M55721</guid>
      <dc:creator />
      <dc:date>2010-03-26T13:15:55Z</dc:date>
    </item>
  </channel>
</rss>

