<?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: How to restrict values in list box? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836136#M1011393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought only for listbox has the facility of expression. but i found expression in calender object and it works as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Petter!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Durga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 17:01:20 GMT</pubDate>
    <dc:creator>durgabhavani</dc:creator>
    <dc:date>2015-04-27T17:01:20Z</dc:date>
    <item>
      <title>How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836127#M1011384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have dates for ten years in my calender object. (I am using date field from database in calender object)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But i don't want to display all 10 years values in calender. I need to display just latest year (2015) values in my calender.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(date format in my calender: mm/dd/yyyy.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please advice!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Durga&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836127#M1011384</guid>
      <dc:creator>durgabhavani</dc:creator>
      <dc:date>2015-04-27T16:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836128#M1011385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use an expression instead of list box field: &lt;STRONG&gt;Only({&amp;lt;Date = {"=Year(Date) = 2015"}&amp;gt;} Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836128#M1011385</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T16:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836129#M1011386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for response Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to restrict values in calender then what to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Durga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836129#M1011386</guid>
      <dc:creator>durgabhavani</dc:creator>
      <dc:date>2015-04-27T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836130#M1011387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean in the script itself? or are you talking about a calendar object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836130#M1011387</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T16:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836131#M1011388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Insted of selecting a Field in the Field drop-down select &amp;lt;Expression&amp;gt; and then use the following expression:&lt;/P&gt;&lt;P&gt;=If( Year ( Date ) = 2015 , Date )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-04-27 #3.PNG" class="jive-image image-1" src="/legacyfs/online/85176_2015-04-27 #3.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836131#M1011388</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-27T16:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836132#M1011389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petter do you know why the Only function isn't working here??? Is there a way to solve this with a set analysis??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836132#M1011389</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T16:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836133#M1011390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyway sunny, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to restrict my dates for this year only. Either in script or directly in calender object!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Durga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836133#M1011390</guid>
      <dc:creator>durgabhavani</dc:creator>
      <dc:date>2015-04-27T16:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836134#M1011391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script you can use a where statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD yourFields,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;FROM xyz&lt;/P&gt;&lt;P&gt;Where Year(Date) = 2015;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the front end you can use &lt;A _jive_internal="true" href="https://community.qlik.com/people/petter-s"&gt;Petter Skjolden&lt;/A&gt;‌ for both the list box as well as calendar object. They both give you the ability to enter expression instead of using a field name directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this expression: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=If( Year ( Date ) = 2015 , Date ) &lt;/STRONG&gt;give by Petter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836134#M1011391</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T16:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836135#M1011392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this expression in List Box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(distinct Only({&amp;lt;DateField={"&amp;gt;$(=MakeDate(2015))"}&amp;gt;}DateField),DateField)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836135#M1011392</guid>
      <dc:creator>kashporov</dc:creator>
      <dc:date>2015-04-27T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836136#M1011393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Super sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought only for listbox has the facility of expression. but i found expression in calender object and it works as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Petter!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Durga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:01:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836136#M1011393</guid>
      <dc:creator>durgabhavani</dc:creator>
      <dc:date>2015-04-27T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict values in list box?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836137#M1011394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this expression:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Only({&amp;lt;Date = {"=Year(Date) = 2015"}&amp;gt;} Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the set expression will return multiple dates if there are more than one row returned for any given date - and then Only() will not accept this but return NULL. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 17:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-restrict-values-in-list-box/m-p/836137#M1011394</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-04-27T17:07:02Z</dc:date>
    </item>
  </channel>
</rss>

