<?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: When using a variable for expression, cannot pass string with comma in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456423#M794468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2945"&gt;Comma problem (,) workaround for dollar sign expansion with parameters&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2017 17:20:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-28T17:20:52Z</dc:date>
    <item>
      <title>When using a variable for expression, cannot pass string with comma</title>
      <link>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456422#M794467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a variable to save my expressions, so I can reuse them in multiple places and change them all easily.&amp;nbsp; So I have this one expression saved as a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;$1, $2, $3&amp;gt;} [Actual Quantity])&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 875px;"&gt;&lt;TBODY&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that I then use in multiple places.&amp;nbsp; here is a place that I call it and it works fine passing multiple arguments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(e_Cases($(vSO_Closed_Only), InternalSlsFlag={0}, Node1={'Diner Sales'}))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I just used it here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(e_Cases($(vSO_Closed_Only), [Originating cl for order]={'D','P','B'}))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it doesn't work.&amp;nbsp; Odd.&amp;nbsp; So I do some testing.&amp;nbsp; If I remove 2 of the 3 filters from the second argument, it then works. So this will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(e_Cases($(vSO_Closed_Only), [Originating cl for order]={'D'}))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(e_Cases($(vSO_Closed_Only), [Originating cl for order]={'B'}))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get it so all 3 can be passed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456422#M794467</guid>
      <dc:creator>djbloiss</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: When using a variable for expression, cannot pass string with comma</title>
      <link>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456423#M794468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if this helps&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2945"&gt;Comma problem (,) workaround for dollar sign expansion with parameters&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456423#M794468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T17:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: When using a variable for expression, cannot pass string with comma</title>
      <link>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456424#M794469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Commas within variable-parameters are always a problem which could be partly solved with various workarounds like hinted from Sunny. In your case you don't need mandatory the commas because you could replace your value-list with a search-string like (D|P|B).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/When-using-a-variable-for-expression-cannot-pass-string-with/m-p/1456424#M794469</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-12-29T07:09:39Z</dc:date>
    </item>
  </channel>
</rss>

