<?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 2 LIKEs in a function and a get field expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829537#M998631</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;Where am i going wrong? I want to set up an expression to capture fields selection in ABC, I know using a LIKE the OHL and RED are unique, but I cant see how to get the LIKE function working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[ABC]=({$&amp;lt;[{getfieldselections([ABC]) LIKE '*OHL*,*RED*'}&amp;gt;]data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plus how do I paste code, the insert&amp;gt;plain does not seem to be working???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a tutorial?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 08:29:52 GMT</pubDate>
    <dc:creator>tinkerz1</dc:creator>
    <dc:date>2015-06-16T08:29:52Z</dc:date>
    <item>
      <title>2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829537#M998631</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;Where am i going wrong? I want to set up an expression to capture fields selection in ABC, I know using a LIKE the OHL and RED are unique, but I cant see how to get the LIKE function working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[ABC]=({$&amp;lt;[{getfieldselections([ABC]) LIKE '*OHL*,*RED*'}&amp;gt;]data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plus how do I paste code, the insert&amp;gt;plain does not seem to be working???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a tutorial?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829537#M998631</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-06-16T08:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829538#M998632</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(wildmatch(getfieldselections([ABC]),'*OHL*,*RED*'),data))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829538#M998632</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-16T08:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829539#M998633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &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;Sum({&lt;SPAN style="font-size: 13.3333330154419px;"&gt;$ &amp;lt;[ABC]={"*&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OHL&lt;/SPAN&gt;*", "*RED*"}&amp;gt;} &lt;/SPAN&gt;data)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829539#M998633</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-16T08:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829540#M998634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I call the field with the full name this works&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[ABC]={[Red Threshold (OHL)]}&amp;gt;}Data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but not with the Like function&lt;/P&gt;&lt;P&gt;Sum({$ &amp;lt;[ABC]={"*OHL*", "*Red*"}&amp;gt;} data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 09:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829540#M998634</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-06-16T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829541#M998635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood you want to sum data when ABC like OHL or Red&lt;/P&gt;&lt;P&gt;data and ABC are fields&lt;/P&gt;&lt;P&gt;OHL Red values of ABC field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 11:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829541#M998635</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-16T11:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829542#M998636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the attached simple example, &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ABC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={ &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"*ohl*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"*red*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt; works fine in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH - Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 11:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829542#M998636</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-06-16T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829543#M998637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I would like is to sum when OHL and RED in the same filed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement will sum all reds regardless of OHL in the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 11:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829543#M998637</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-06-16T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829544#M998638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - the above statement is an OR not an AND. &lt;/P&gt;&lt;P&gt;If you need an AND logic you will have to use intersection between record sets and not the element sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this might work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( { $&amp;lt;[ABC]={"*ohl*"}&amp;gt; * $&amp;lt;[ABC]={"*red*"}&amp;gt; } data )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829544#M998638</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-16T12:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829545#M998639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with intersection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {$ &amp;lt;ABC={"*RED*"}*{"*OHL*"}&amp;gt;}&amp;nbsp; data)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829545#M998639</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-16T12:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829546#M998640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you mean &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ABC]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={ &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"*RED*OHL*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829546#M998640</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-06-16T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: 2 LIKEs in a function and a get field expression</title>
      <link>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829547#M998641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I am sure i tried that, but it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 12:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/2-LIKEs-in-a-function-and-a-get-field-expression/m-p/829547#M998641</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2015-06-16T12:13:06Z</dc:date>
    </item>
  </channel>
</rss>

