<?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: List box Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837124#M991616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu need to write this expression in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Properties -&amp;gt; General-&amp;gt; Field -&amp;gt; Select &amp;lt;Expression&amp;gt; -&amp;gt; and give your expression there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR the best method is in script arrive a new column like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Match(FieldName), Num1, Num2, Num3), FieldName) AS NewFieldName&lt;/P&gt;&lt;P&gt;FROM Datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 01:46:12 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-08-21T01:46:12Z</dc:date>
    <item>
      <title>List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837115#M991607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to give a list box expression: If the values of age are 30 and 50, then show age.&lt;/P&gt;&lt;P&gt;It works when I write this expression : =if([Age]='30', Age)&lt;/P&gt;&lt;P&gt;How do I also include the value 50?&lt;/P&gt;&lt;P&gt;It throws an error when I try to write the expression :&amp;nbsp; i&lt;SPAN style="font-size: 13.3333330154419px;"&gt;f([Age]={'30', '50'}, Age)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 00:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837115#M991607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-09T00:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837116#M991608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&lt;SPAN style="font-size: 13.33px;"&gt;f(Match([Age],'30','50'), Age)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Av7eN&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 04:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837116#M991608</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2015-07-09T04:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837117#M991609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also use an or &lt;/P&gt;&lt;P&gt;=if(Age=30 or Age=50, Age)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 04:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837117#M991609</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-09T04:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837118#M991610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 04:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837118#M991610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-09T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837119#M991611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 04:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837119#M991611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-09T04:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837120#M991612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92302_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 05:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837120#M991612</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-07-09T05:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837121#M991613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Try like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(Match(Age, 30, 50), Age)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;If(Age = 30 OR Age = 50, Age)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The preferred method is using Match(), if you have more values then the length If() expression will become more.&amp;nbsp; So best use Match().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 05:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837121#M991613</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-07-09T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837122#M991614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have loaded&amp;nbsp; thousand of records using Load script. I created a List Box and it shows all the thousand distinct values as below screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-849147-96593/LEGETYNACE-LISTBOX.PNG"&gt;&lt;IMG alt="LEGETYNACE-LISTBOX.PNG" class="jive-image image-1" height="287" src="https://community.qlik.com/legacyfs/online/96611_LEGETYNACE-LISTBOX.PNG" width="146" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want filter and display only 6511001,6511002,7511001 and 7511006.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went&amp;nbsp; properties of list box and wrote the expression&amp;nbsp; as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-849147-96594/ListBox-Expression.PNG"&gt;&lt;IMG alt="ListBox-Expression.PNG" class="jive-image image-1" height="162" src="https://community.qlik.com/legacyfs/online/96612_ListBox-Expression.PNG" width="840" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the matching values besides the value and rest all not matched has '-'. I want to see only match values in the list box.&lt;/P&gt;&lt;P&gt;Please see below the values i see as :&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/2-849147-96595/Listbox-Output.PNG"&gt;&lt;IMG alt="Listbox-Output.PNG" class="jive-image image-1" height="293" src="https://community.qlik.com/legacyfs/online/96613_Listbox-Output.PNG" width="145" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to see only Matching value and rest all should be hidden.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 18:17:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837122#M991614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-20T18:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837123#M991615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create LB Expression on drop down of your fields list. You can see &lt;STRONG&gt;&amp;lt;Expression&amp;gt; &lt;/STRONG&gt;final field in the list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:43:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837123#M991615</guid>
      <dc:creator />
      <dc:date>2015-08-20T19:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837124#M991616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu need to write this expression in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Properties -&amp;gt; General-&amp;gt; Field -&amp;gt; Select &amp;lt;Expression&amp;gt; -&amp;gt; and give your expression there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR the best method is in script arrive a new column like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;If(Match(FieldName), Num1, Num2, Num3), FieldName) AS NewFieldName&lt;/P&gt;&lt;P&gt;FROM Datasource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 01:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837124#M991616</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-08-21T01:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: List box Expression</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837125#M991617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;If(Match(Age, 30, 50), Age) it will work&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 02:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-Expression/m-p/837125#M991617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-21T02:36:03Z</dc:date>
    </item>
  </channel>
</rss>

