<?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 Help with adding an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262507#M1203887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i want to create an expression for the following....&lt;/P&gt;&lt;P&gt;we have several thousand transaction ID numbers (Transid) with a number of products against each (SalesQuantity). I would like to create an expression which will only display TRANSIDs with 2 or more SALESQUANTITY against them. Its gets more difficult as some transaction id's have duplicates (but with a different product against it) so i would like it to total up the duplicate Transid's.&lt;/P&gt;&lt;P&gt;E.g&lt;/P&gt;&lt;P&gt;Transid SalesQuantity&lt;/P&gt;&lt;P&gt;211125 1&lt;/P&gt;&lt;P&gt;211125 3&lt;/P&gt;&lt;P&gt;211131 2&lt;/P&gt;&lt;P&gt;211139 1&lt;/P&gt;&lt;P&gt;211144 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like the expression only to display the Transid:&lt;/P&gt;&lt;P&gt;211125 (as this totals to 4 products)&lt;/P&gt;&lt;P&gt;211131 (as this totals to 2)&lt;/P&gt;&lt;P&gt;but not to display the latter 2 Transid's as these are less than 2.&lt;/P&gt;&lt;P&gt;Can anyone help??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jun 2010 16:17:28 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2010-06-17T16:17:28Z</dc:date>
    <item>
      <title>Help with adding an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262507#M1203887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i want to create an expression for the following....&lt;/P&gt;&lt;P&gt;we have several thousand transaction ID numbers (Transid) with a number of products against each (SalesQuantity). I would like to create an expression which will only display TRANSIDs with 2 or more SALESQUANTITY against them. Its gets more difficult as some transaction id's have duplicates (but with a different product against it) so i would like it to total up the duplicate Transid's.&lt;/P&gt;&lt;P&gt;E.g&lt;/P&gt;&lt;P&gt;Transid SalesQuantity&lt;/P&gt;&lt;P&gt;211125 1&lt;/P&gt;&lt;P&gt;211125 3&lt;/P&gt;&lt;P&gt;211131 2&lt;/P&gt;&lt;P&gt;211139 1&lt;/P&gt;&lt;P&gt;211144 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like the expression only to display the Transid:&lt;/P&gt;&lt;P&gt;211125 (as this totals to 4 products)&lt;/P&gt;&lt;P&gt;211131 (as this totals to 2)&lt;/P&gt;&lt;P&gt;but not to display the latter 2 Transid's as these are less than 2.&lt;/P&gt;&lt;P&gt;Can anyone help??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 16:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262507#M1203887</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-06-17T16:17:28Z</dc:date>
    </item>
    <item>
      <title>Help with adding an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262508#M1203888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;try the following in your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;TransId, SalesQuantity&lt;/P&gt;&lt;P&gt;211125, 1&lt;/P&gt;&lt;P&gt;211125, 3&lt;/P&gt;&lt;P&gt;211131, 2&lt;/P&gt;&lt;P&gt;211139, 1&lt;/P&gt;&lt;P&gt;211144, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load TransId,sum(SalesQuantity) as sum resident tab1 group by TransId;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 17:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262508#M1203888</guid>
      <dc:creator />
      <dc:date>2010-06-17T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Help with adding an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262509#M1203889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reply, the data given in my original post is an example. i have thousands of transaction id's and they grow by several thousand every day, so typing the id's in a script obviously can't be done.&lt;/P&gt;&lt;P&gt;Does anyone have any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 08:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262509#M1203889</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2010-06-18T08:51:32Z</dc:date>
    </item>
    <item>
      <title>Help with adding an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262510#M1203890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;hi, you can store your transactionid's and salesquantity in excel and load that excel file instead of wrirting all the id's in script tab1: load TransId,SalesQuantity from abc.xls ; tab2: load TransId,sum(SalesQuantity) as sum from abc.xls group by TransId; thanks&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 10:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262510#M1203890</guid>
      <dc:creator />
      <dc:date>2010-06-18T10:58:52Z</dc:date>
    </item>
    <item>
      <title>Help with adding an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262511#M1203891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As tauqueer said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ResultTable:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;TransId,&lt;/P&gt;&lt;P&gt;sum(SalesQuantity) as sumQuantity&lt;/P&gt;&lt;P&gt;resident &lt;STRONG&gt;TransactionTable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;group by TransId;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 11:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-adding-an-expression/m-p/262511#M1203891</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-06-18T11:03:19Z</dc:date>
    </item>
  </channel>
</rss>

