<?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 Expression in List Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759406#M1034617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having field TP_YN. It is a flag . By using conditional expression&amp;nbsp; i need to show Individual , Fleet, Both in list box.&lt;/P&gt;&lt;P&gt;i used the below expression but it doesn't work.Please any one can suggest me how to achieve it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=if(TP_YN='0','Individual','Fleet','both')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;pick(Match(TP_YN,'0','0','0'),'Individual','Fleet','Both')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Krishna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2015 08:10:07 GMT</pubDate>
    <dc:creator>krishna20</dc:creator>
    <dc:date>2015-01-09T08:10:07Z</dc:date>
    <item>
      <title>Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759406#M1034617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having field TP_YN. It is a flag . By using conditional expression&amp;nbsp; i need to show Individual , Fleet, Both in list box.&lt;/P&gt;&lt;P&gt;i used the below expression but it doesn't work.Please any one can suggest me how to achieve it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=if(TP_YN='0','Individual','Fleet','both')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;pick(Match(TP_YN,'0','0','0'),'Individual','Fleet','Both')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Krishna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 08:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759406#M1034617</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2015-01-09T08:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759407#M1034618</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;you have an extra parameter to your if statement there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;If([Condition], [True], False])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have 'both' which is causing an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;=if(TP_YN='0','Individual','Fleet') should work fine in itself, not sure where the 'both' actually comes in to what you are trying to achieve&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 08:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759407#M1034618</guid>
      <dc:creator />
      <dc:date>2015-01-09T08:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759408#M1034619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are your values 'individual' etc. meant to select something from a certain field? The first statement won't work as you have an If statement with 3 conditions (true, false and an extra one) - but this wouldn't give you what you want anyway, I'm guessing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is it you're going to do with the listbox? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 08:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759408#M1034619</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-01-09T08:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759409#M1034620</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;Ya i applied it already.its working fine.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if(TP_YN='0','Individual','Fleet'). I need to include 'both ' now in the expression.This list box is a filter.. I need to show three values in the list box as Individual, Fleet, Both. How can we&amp;nbsp; write for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Krishna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759409#M1034620</guid>
      <dc:creator>krishna20</dc:creator>
      <dc:date>2015-01-09T09:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759410#M1034621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Use the following Exp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(condition,'Individual',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(condition,&lt;/SPAN&gt;'Fleet','both'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759410#M1034621</guid>
      <dc:creator />
      <dc:date>2015-01-09T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759411#M1034622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to show all 3 at the same time, and it be a filter, you could load a new field from scratch with those 3 options as the field values, then use this field as a conditional show or inside of set analysis or...etc. to get whatever results you're after.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759411#M1034622</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-01-09T09:15: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/759412#M1034623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 01-09-15 at 02.56 PM.PNG" class="image-1 jive-image" src="/legacyfs/online/74947_Screen Shot 01-09-15 at 02.56 PM.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 01-09-15 at 02.56 PM 001.PNG" class="image-1 jive-image" src="/legacyfs/online/74951_Screen Shot 01-09-15 at 02.56 PM 001.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759412#M1034623</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-01-09T09:28: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/759413#M1034624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you really want a field in your application for this as a separate linked table with the three possible values within it, linked on the flag field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: just like the example &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt; has recommended below&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 09:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759413#M1034624</guid>
      <dc:creator />
      <dc:date>2015-01-09T09:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759414#M1034625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;try like this &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;=if(TP_YN='0','Individual',If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;TP_YN&amp;lt;&amp;gt;'0',&lt;/SPAN&gt;'Fleet',If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;TP_YN='0'&amp;nbsp; or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;TP_YN&amp;lt;&amp;gt;'0',&lt;/SPAN&gt;&lt;/SPAN&gt;'Both'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 10:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759414#M1034625</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-01-09T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in List Box</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759415#M1034626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use nested if as everyone already suggest,understand your condition and then apply if condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;SPAN style="font-size: 10pt;"&gt;TP_YN=0,'Individual',if(&lt;SPAN style="font-size: 10pt;"&gt;TP_YN&amp;gt;0,'Fleet','Both'&lt;/SPAN&gt;)&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 10:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-List-Box/m-p/759415#M1034626</guid>
      <dc:creator />
      <dc:date>2015-01-09T10:21:54Z</dc:date>
    </item>
  </channel>
</rss>

