<?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 question about GetFieldSelections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833007#M1011677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There's a field Media in my data with three possible values: TV, Press, Internet.&lt;/P&gt;&lt;P&gt;There's a list-box Media in my QlikView file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following function to get selected values:&lt;/P&gt;&lt;P&gt;Variable1=GetFieldSelections(Media)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. if all media are selected, then Variable1 = &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TV, Press, Internet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to set the following condition:&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Variable1 includes 'TV', then return 1, else return 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define this condition using QlikView syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 13:49:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-27T13:49:05Z</dc:date>
    <item>
      <title>question about GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833007#M1011677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There's a field Media in my data with three possible values: TV, Press, Internet.&lt;/P&gt;&lt;P&gt;There's a list-box Media in my QlikView file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following function to get selected values:&lt;/P&gt;&lt;P&gt;Variable1=GetFieldSelections(Media)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. if all media are selected, then Variable1 = &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TV, Press, Internet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to set the following condition:&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Variable1 includes 'TV', then return 1, else return 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I define this condition using QlikView syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 13:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833007#M1011677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: question about GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833008#M1011678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many ways.&amp;nbsp; For example&lt;/P&gt;&lt;P&gt;if(index(Variable1, 'TV'), 1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 13:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833008#M1011678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T13:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: question about GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833009#M1011679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this might also work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(SubStringCount(Variable1, 'TV') = 1, 1, 0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can do this directly without the if statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubStringCount(Variable1, 'TV')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833009#M1011679</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-27T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: question about GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833010#M1011680</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>Mon, 27 Apr 2015 14:10:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-about-GetFieldSelections/m-p/833010#M1011680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-27T14:10:59Z</dc:date>
    </item>
  </channel>
</rss>

