<?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: Expression in List Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621479#M478111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can set an expression instead of a field in the list box so you can write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(year=2013 or year=2014, year, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way list box will show only 2013 and 2014 year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 16:47:16 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-03-25T16:47:16Z</dc:date>
    <item>
      <title>Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621478#M478110</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;&lt;/P&gt;&lt;P&gt;I have an autogenerated calendar which is producing Month &amp;amp; Year. It has years from 2012 to 2015. My data only has values for 2013 &amp;amp; 2014. I would like to produce a list box with only 2013 &amp;amp; 2014 in it. At the moment, it shows all 4 years, how do I filter out the years with no data. I also have a date field which I can refer to.&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;Herbert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621478#M478110</guid>
      <dc:creator />
      <dc:date>2014-03-25T16:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621479#M478111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can set an expression instead of a field in the list box so you can write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(year=2013 or year=2014, year, null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this way list box will show only 2013 and 2014 year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 16:47:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621479#M478111</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-25T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621480#M478112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of selection Year directly in List BOX, type below in List Box Expression...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Year &amp;lt; 2015 and Year &amp;gt; 2012, Year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621480#M478112</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-25T17:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621481#M478113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would suggest you to filter calendar records in your script based on existing year values in fact table. that way you dont have to manipulate everytime on the frondend. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 17:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621481#M478113</guid>
      <dc:creator />
      <dc:date>2014-03-25T17:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621482#M478114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you only need 2 years why not filter the calendar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example, static filter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Calendar: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;noconcatenate &lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;from Calendar.qvd (qvd)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // your original calendar&lt;/P&gt;&lt;P&gt;where match(year, 2013, 2014);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;other example, filter based on min max date of fact table &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fact:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; rand()*100 as exp1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; date(floor(makedate(2013) + rand()*731)) as date&lt;/P&gt;&lt;P&gt;AutoGenerate 10000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MinMaxDate:&lt;/P&gt;&lt;P&gt;LOAD min(date) as MinDate, max(date) as MaxDate Resident&amp;nbsp; Fact;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vMinDate = Peek('MinDate', -1, 'MinMaxDate') ;&lt;/P&gt;&lt;P&gt;Let vMaxDate = Peek('MaxDate', -1, 'MinMaxDate') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load Date(recno()+$(vMinDate)-1) as Date1 &lt;/P&gt;&lt;P&gt;Autogenerate vMaxDate - vMinDate ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//drop Table MinMaxDate;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 18:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/621482#M478114</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-25T18:05:09Z</dc:date>
    </item>
  </channel>
</rss>

