<?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: Listbox from a table expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083807#M466791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked great, thanks Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2016 15:05:21 GMT</pubDate>
    <dc:creator>dmac1971</dc:creator>
    <dc:date>2016-01-13T15:05:21Z</dc:date>
    <item>
      <title>Listbox from a table expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083805#M466789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I have a straight table showing sales items and the following expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum({&amp;lt;Year = {"2015"}&amp;gt;} Quantity) &amp;gt; sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity) And sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity) &amp;gt; sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) And sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) &amp;gt; sum({&amp;lt;Year = {"2012"}&amp;gt;} Quantity)&lt;/P&gt;&lt;P&gt;, 'Up', if(sum({&amp;lt;Year = {"2015"}&amp;gt;} Quantity) &amp;lt; sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity)&amp;nbsp; And sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity) &amp;lt; sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) And sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) &amp;lt; sum({&amp;lt;Year = {"2012"}&amp;gt;} Quantity), 'Down','Mixed'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically if sales have increased YOY then the trend is up, or down etc.&amp;nbsp; This works very well, however would I be better to do this in load script (and would filtering still work if I did) or better still can I create a listbox tied to this field in the table, ie showing "UP","DOWN" or "MIXED"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA for any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 14:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083805#M466789</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2016-01-13T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox from a table expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083806#M466790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a calculated dimension for your list box by creating a field &amp;lt;Expression&amp;gt; from field drop down list on general tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr( &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum({&amp;lt;Year = {"2015"}&amp;gt;} Quantity) &amp;gt; sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity) And sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity) &amp;gt; sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) And sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) &amp;gt; sum({&amp;lt;Year = {"2012"}&amp;gt;} Quantity)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, 'Up', if(sum({&amp;lt;Year = {"2015"}&amp;gt;} Quantity) &amp;lt; sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity)&amp;nbsp; And sum({&amp;lt;Year = {"2014"}&amp;gt;} Quantity) &amp;lt; sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) And sum({&amp;lt;Year = {"2013"}&amp;gt;} Quantity) &amp;lt; sum({&amp;lt;Year = {"2012"}&amp;gt;} Quantity), 'Down','Mixed'))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;,&lt;EM&gt; [YourSalesItemField]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 14:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083806#M466790</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-13T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox from a table expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083807#M466791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Worked great, thanks Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Listbox-from-a-table-expression/m-p/1083807#M466791</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2016-01-13T15:05:21Z</dc:date>
    </item>
  </channel>
</rss>

