<?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: Selecting multiple values in field in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908776#M315587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Match([Expense Type] , 'Breakfast' , 'Lunch', 'Dinner' , 'Meals Other') AND [Expense Account] = 'Billable' AND [Total Spend] &amp;lt;= 100,1,0) as FlagMeals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should perform better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;Feeling Qlikngry?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="8342" data-objecttype="102" href="https://community.qlik.com/docs/DOC-8342" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;How To /Missing Manual(18 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2015 02:53:18 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2015-08-04T02:53:18Z</dc:date>
    <item>
      <title>Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908772#M315583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My field name is Expense Type and I want to say &lt;/P&gt;&lt;P&gt;if([Expense Type] = 'Breakfast'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Lunch'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Dinner'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Meals Other' AND [Expense Account] = 'Billable' AND [Total Spend] &amp;lt;= 100,1,0) as FlagMeals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not working but essentially I need each expense type and if its billable and less than 100 total spend then flag as 1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats is the correct syntax withing the script editor for something like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 22:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908772#M315583</guid>
      <dc:creator />
      <dc:date>2015-08-03T22:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908773#M315584</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: 13px;"&gt;if(&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: 13px;"&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; font-size: 13px;"&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: 13px;"&gt;[Expense Type] = 'Breakfast'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Lunch'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Dinner'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Meals Other' &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: 13px;"&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; font-size: 13px;"&gt;AND &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: 13px;"&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; font-size: 13px;"&gt;[Expense Account] = 'Billable'&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: 13px;"&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: 13px;"&gt; AND &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: 13px;"&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: 13px;"&gt;[Total Spend] &amp;lt;= 100),1,0&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: 13px;"&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: 13px;"&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; font-size: 13px;"&gt;as FlagMeals.&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: 13px;"&gt;Something like this should work. Parentheses instruct which part to execute first. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 23:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908773#M315584</guid>
      <dc:creator>prabhu0505</dc:creator>
      <dc:date>2015-08-03T23:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908774#M315585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you missed brackets but statement was fairly right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one thing that i don't understand is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;([Total Spend] &amp;lt;= 100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isn't it supposed to be ([Total Spend] &amp;lt; 100) as you described less than 100 rather than less or equal to 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;[Expense Type] = 'Breakfast'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Lunch'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Dinner'&amp;nbsp; OR [Expense Type] =&amp;nbsp; 'Meals Other'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;([Expense Account] = 'Billable' )&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;([Total Spend] &amp;lt; 100)&lt;/P&gt;&lt;P&gt;,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as FlagMeals&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 00:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908774#M315585</guid>
      <dc:creator>john9inno</dc:creator>
      <dc:date>2015-08-04T00:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908775#M315586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you really need "&lt;STRONG&gt;each&lt;/STRONG&gt; expense type and if its billable and &lt;STRONG&gt;less&lt;/STRONG&gt; than 100":&lt;/P&gt;&lt;P&gt;if([Expense Account] = 'Billable' AND [Total Spend] &amp;lt; 100,1,0) as FlagMeals&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 00:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908775#M315586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-04T00:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908776#M315587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(Match([Expense Type] , 'Breakfast' , 'Lunch', 'Dinner' , 'Meals Other') AND [Expense Account] = 'Billable' AND [Total Spend] &amp;lt;= 100,1,0) as FlagMeals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should perform better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'comic sans ms', sans-serif;"&gt;Feeling Qlikngry?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-containerid="2049" data-containertype="14" data-objectid="8342" data-objecttype="102" href="https://community.qlik.com/docs/DOC-8342" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;How To /Missing Manual(18 articles)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 02:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908776#M315587</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-08-04T02:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908777#M315588</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: 13px;"&gt;Try 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: 13px;"&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; font-size: 13px;"&gt;if(Wild Match([Expense Type] , 'Breakfast' , 'Lunch', 'Dinner' , 'Meals Other') AND [Expense Account] = 'Billable' AND [Total Spend] &amp;lt;= 100,1,0) As &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FlagMeals&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 04:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908777#M315588</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2015-08-04T04:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting multiple values in field in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908778#M315589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have got your desired result !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 04:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-multiple-values-in-field-in-Script/m-p/908778#M315589</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2015-08-04T04:55:58Z</dc:date>
    </item>
  </channel>
</rss>

