<?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 How can I exclude a value from a string? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891344#M657916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a Concat function for a certain task:&lt;/P&gt;&lt;P&gt;Concat(DISTINCT Media, ', '). This function returns a set of currently selected media. E.g. TV, Press, Radio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task is to exclude a certain value on a certain condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give an example:&lt;/P&gt;&lt;P&gt;- Let's say there's a condition which is regulated by Var_A. If Var_A=1, then I want &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TV to be excluded from the output of the concat function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;- Imagine that all three media have been selected by the user via a listbox: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TV, Press, Radio. I can not clear a user-defined selection.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;- But &lt;SPAN style="font-size: 13.3333330154419px;"&gt; if Var_A=1, then I need to exclude TV from the output of the Concat function, though it is selected via a listbox at the moment.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words I need something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if Var_A=1 &lt;SPAN style="text-decoration: underline;"&gt;then &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;fulfill &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Concat(DISTINCT Media, ', ') &lt;SPAN style="text-decoration: underline;"&gt;but exclude&lt;/SPAN&gt; 'TV'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The underlined text is not QV-syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Can I convert it to QV-syntax?&lt;BR /&gt;&lt;/SPAN&gt;&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, 01 Jun 2015 19:10:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-01T19:10:42Z</dc:date>
    <item>
      <title>How can I exclude a value from a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891344#M657916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a Concat function for a certain task:&lt;/P&gt;&lt;P&gt;Concat(DISTINCT Media, ', '). This function returns a set of currently selected media. E.g. TV, Press, Radio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task is to exclude a certain value on a certain condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give an example:&lt;/P&gt;&lt;P&gt;- Let's say there's a condition which is regulated by Var_A. If Var_A=1, then I want &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TV to be excluded from the output of the concat function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;- Imagine that all three media have been selected by the user via a listbox: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;TV, Press, Radio. I can not clear a user-defined selection.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;- But &lt;SPAN style="font-size: 13.3333330154419px;"&gt; if Var_A=1, then I need to exclude TV from the output of the Concat function, though it is selected via a listbox at the moment.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words I need something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if Var_A=1 &lt;SPAN style="text-decoration: underline;"&gt;then &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;fulfill &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Concat(DISTINCT Media, ', ') &lt;SPAN style="text-decoration: underline;"&gt;but exclude&lt;/SPAN&gt; 'TV'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The underlined text is not QV-syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Can I convert it to QV-syntax?&lt;BR /&gt;&lt;/SPAN&gt;&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, 01 Jun 2015 19:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891344#M657916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-01T19:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I exclude a value from a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891345#M657917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Concat(DISTINCT If(Var_A &amp;lt;&amp;gt; 1 Or Media &amp;lt;&amp;gt; 'TV', Media), ', ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 06:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891345#M657917</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-02T06:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I exclude a value from a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891346#M657918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer gone to moderation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 06:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891346#M657918</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-02T06:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I exclude a value from a string?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891347#M657919</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>Tue, 02 Jun 2015 07:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-exclude-a-value-from-a-string/m-p/891347#M657919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-02T07:54:18Z</dc:date>
    </item>
  </channel>
</rss>

