<?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: Create straight table in QlikView script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668273#M475318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like that table already exists in your script.&amp;nbsp; Let's pretend it is called Table1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try something like this in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; YearEventKey as YearEventKey_Grouping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count(ID) as CountOfEach&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GROUP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;YearEventKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This should create a table in your script with the YearEventKey_Grouping column, then a count column (CountOfEach)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 19:49:26 GMT</pubDate>
    <dc:creator>joshabbott</dc:creator>
    <dc:date>2014-07-28T19:49:26Z</dc:date>
    <item>
      <title>Create straight table in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668272#M475317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to take this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="id.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63284_id.png" style="width: 620px; height: 383px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and count each respective distinct key, per key in the YearEventKey table, in a separate table... like this straight table output: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="key.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63285_key.png" /&gt;&lt;/P&gt;&lt;P&gt;but I want to do it in the script. I need to be able to add this information to another table while the script is run. Is there a way I can get the distinct keys counted like the straight table but without having to export it as excel and re-import it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 19:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668272#M475317</guid>
      <dc:creator />
      <dc:date>2014-07-28T19:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create straight table in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668273#M475318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like that table already exists in your script.&amp;nbsp; Let's pretend it is called Table1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try something like this in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; YearEventKey as YearEventKey_Grouping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count(ID) as CountOfEach&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Table1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GROUP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;BY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;YearEventKey&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This should create a table in your script with the YearEventKey_Grouping column, then a count column (CountOfEach)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 19:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668273#M475318</guid>
      <dc:creator>joshabbott</dc:creator>
      <dc:date>2014-07-28T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create straight table in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668274#M475319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing. It Worked perfectly. Thank you very much. For some reason I didn’t think of counting inside the load script. Much Appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 20:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-straight-table-in-QlikView-script/m-p/668274#M475319</guid>
      <dc:creator />
      <dc:date>2014-07-28T20:04:08Z</dc:date>
    </item>
  </channel>
</rss>

