<?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 Show only specific years in listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2036102#M1222538</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've got a simple listbox with all availble years, what I want is that if a specific cirteria is met only some of the years should show.&lt;/P&gt;
&lt;P&gt;Tried using IF-statement in expression under Field, but I cant get it to work.&lt;BR /&gt;ex.&amp;nbsp;=if(State='1',Year='2023',Year)&lt;/P&gt;
&lt;P&gt;Did som other versions aswell...&lt;/P&gt;
&lt;P&gt;Should be fairly simple I think but until you know... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 16:10:41 GMT</pubDate>
    <dc:creator>t_hylander</dc:creator>
    <dc:date>2023-02-09T16:10:41Z</dc:date>
    <item>
      <title>Show only specific years in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2036102#M1222538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've got a simple listbox with all availble years, what I want is that if a specific cirteria is met only some of the years should show.&lt;/P&gt;
&lt;P&gt;Tried using IF-statement in expression under Field, but I cant get it to work.&lt;BR /&gt;ex.&amp;nbsp;=if(State='1',Year='2023',Year)&lt;/P&gt;
&lt;P&gt;Did som other versions aswell...&lt;/P&gt;
&lt;P&gt;Should be fairly simple I think but until you know... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 16:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2036102#M1222538</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2023-02-09T16:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show only specific years in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2036108#M1222539</link>
      <description>&lt;P&gt;The best way is to use an Aggr() with set analysis. For example&lt;/P&gt;
&lt;P&gt;=Aggr(Only({1&amp;lt;State={1}&amp;gt;}Year), Year)&lt;/P&gt;
&lt;P&gt;will show the years where State='1'.&lt;/P&gt;
&lt;P&gt;Note: This expression should NOT be entered on the expressions tab in the list box properties. It should be entered on the General tab:&lt;BR /&gt;General --&amp;gt; Field --&amp;gt; &amp;lt;Expression&amp;gt; (bottom of the list)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 16:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2036108#M1222539</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2023-02-09T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show only specific years in listbox</title>
      <link>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2037566#M1222585</link>
      <description>&lt;P&gt;Ah, ofcourse...makes sense now when I see it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks, it works like a charm!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 09:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-only-specific-years-in-listbox/m-p/2037566#M1222585</guid>
      <dc:creator>t_hylander</dc:creator>
      <dc:date>2023-02-14T09:02:17Z</dc:date>
    </item>
  </channel>
</rss>

