<?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 Select in Field -&amp;gt; Search String -&amp;gt; If condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200327#M58901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use if condition in search string of Select in field action? For example, I have Fields named NAME and ADDRESS. NAME has two values in them, [My Name] and [Firend Name]. When I do select in Field action for ADDRESS I want to check in serach string the value of NAME field first and then search.&lt;/P&gt;&lt;P&gt;Select in Field = ADDRESS&lt;/P&gt;&lt;P&gt;Search String = if(NAME = 'My Name', Address1, Address2)&lt;/P&gt;&lt;P&gt;The search string syntax with if statement is not working. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 21:13:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-03T21:13:42Z</dc:date>
    <item>
      <title>Select in Field -&gt; Search String -&gt; If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200327#M58901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use if condition in search string of Select in field action? For example, I have Fields named NAME and ADDRESS. NAME has two values in them, [My Name] and [Firend Name]. When I do select in Field action for ADDRESS I want to check in serach string the value of NAME field first and then search.&lt;/P&gt;&lt;P&gt;Select in Field = ADDRESS&lt;/P&gt;&lt;P&gt;Search String = if(NAME = 'My Name', Address1, Address2)&lt;/P&gt;&lt;P&gt;The search string syntax with if statement is not working. Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 21:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200327#M58901</guid>
      <dc:creator />
      <dc:date>2011-02-03T21:13:42Z</dc:date>
    </item>
    <item>
      <title>Select in Field -&gt; Search String -&gt; If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200328#M58902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try something like the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=If(Name='My Name', '(Address1|Address2)', 'Address3')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 21:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200328#M58902</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-03T21:22:54Z</dc:date>
    </item>
    <item>
      <title>Select in Field -&gt; Search String -&gt; If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200329#M58903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this already as my search string is exactly like yours and it doesn't work. It selects nothing. I trigger the action on OnSelect of NAME field.&lt;/P&gt;&lt;P&gt;Field Event Trigger -&amp;gt; NAME -&amp;gt; OnSelect&lt;/P&gt;&lt;P&gt;Select in Field -&amp;gt; ADDRESS&lt;/P&gt;&lt;P&gt;Search String =if(NAME = 'My Name', 'Address1', 'Address2')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 21:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200329#M58903</guid>
      <dc:creator />
      <dc:date>2011-02-03T21:31:54Z</dc:date>
    </item>
    <item>
      <title>Select in Field -&gt; Search String -&gt; If condition</title>
      <link>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200330#M58904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OKAY, Never mind its working. I figured there was a Syntax error. Thanks For your help Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 21:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-in-Field-gt-Search-String-gt-If-condition/m-p/200330#M58904</guid>
      <dc:creator />
      <dc:date>2011-02-03T21:38:16Z</dc:date>
    </item>
  </channel>
</rss>

