<?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: Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script/m-p/530092#M1138817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If it is to be added to another table then go for join or concat &lt;/P&gt;&lt;P&gt;Else just you want to get it in another table with same data then the one provided by Mayil is best &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 07:00:16 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2013-10-09T07:00:16Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/530090#M1138815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;i need to get the count of two columns from same table and put it into separate table.&lt;/P&gt;&lt;P&gt;For this i have to write a script so please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudha Banakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 06:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/530090#M1138815</guid>
      <dc:creator />
      <dc:date>2013-10-09T06:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/530091#M1138816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MainTable:&lt;/P&gt;&lt;P&gt;Load ProductID, Category, Product From tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load ProductID, Count(Product) As ProductCount Resident MainTable Group by ProductID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load ProductID, Count(Category) As CategoryCount Resident MainTable Group by ProductID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forget to give group by&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 06:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/530091#M1138816</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-10-09T06:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/530092#M1138817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If it is to be added to another table then go for join or concat &lt;/P&gt;&lt;P&gt;Else just you want to get it in another table with same data then the one provided by Mayil is best &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/530092#M1138817</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-10-09T07:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/530093#M1138818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudha, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try below, But you should have a Key field to join these counts to rest of the data model and for that you would need to use the Group By Clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maintable:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProductID, Category, IsTraded, IsShipped&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 123, Iphone, 0, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 124, samsung, 1, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125, Iphone, 1, 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 126, Iphone, 1, 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 127, Iphone, 1, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CountTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;sum(IsTraded) as TotalTraded,&lt;/P&gt;&lt;P&gt;sum(IsShipped) as TotalShipped&lt;/P&gt;&lt;P&gt;Resident Maintable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;ASINGH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 07:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/530093#M1138818</guid>
      <dc:creator />
      <dc:date>2013-10-09T07:00:49Z</dc:date>
    </item>
  </channel>
</rss>

