<?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: Using multiple parameters in an expression statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654355#M239105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that clarification Rob. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I still need help with my original question. How do I represent an expression for counting the number of accounts with Opendate &amp;lt; 5/30/2014 (or any date)?&amp;nbsp; I have verified that the fields I am testing are dates. I even went&lt;BR /&gt;as far as defining the Opendate field in my edit script as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAKEDATE(&lt;SPAN style="color: blue;"&gt;YEAR&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt;),&lt;SPAN style="color: blue;"&gt;MONTH&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt;),&lt;SPAN style="color: blue;"&gt;DAY&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt;)) &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;OPENDATE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon;"&gt;If I use the following expression: SUM&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt; ={'5/30/2014'}&amp;gt;}&lt;SPAN style="color: maroon;"&gt;CTR_OPENED&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp; I get a correct value for number of accounts opened on 5/30/2014.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the expression to &lt;SPAN style="color: maroon;"&gt;SUM&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt; ={'&amp;lt; 5/30/2014'}&amp;gt;}&lt;SPAN style="color: maroon;"&gt;CTR_OPENED&lt;/SPAN&gt;)&amp;nbsp; (as suggested above),&amp;nbsp;&amp;nbsp; I get a result of zero.&amp;nbsp; Is this the proper syntax for evaluating a value with a "less than" condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your help with this.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 14:47:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-11T14:47:30Z</dc:date>
    <item>
      <title>Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654349#M239099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know how to test a single parameter in an expression statement (example:&amp;nbsp; Count the number of accounts with Status code = CLS would be represented as :&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;CURR_STATCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;={'CLS'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: maroon;"&gt;ACCTNBR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you enter multiple conditions in this statement?&amp;nbsp; For example how would I count the number of accounts with Status = CLS and Opendate &amp;gt;= 1/1/2014?&amp;nbsp; How is that represented in an expression statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 15:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654349#M239099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-10T15:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654350#M239100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;CURR_STATCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;={'CLS'}, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Opendate = {'&amp;gt;= 1/1/2014'}&lt;/SPAN&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;ACCTNBR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;let me know&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 15:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654350#M239100</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-07-10T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654351#M239101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; The expressions is valid (I am seeing "Expression OK" after I enter it.&amp;nbsp; I don't think it likes the "&amp;nbsp; &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&lt;STRONG&gt;'&amp;gt;=&lt;/STRONG&gt; 1/1/2014'}&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial, sans-serif; font-size: 12px;"&gt;&amp;gt;}&lt;/SPAN&gt;&amp;nbsp; " condition after OPENDATE=.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried modified my original statement as "&amp;nbsp; &lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;CURR_STATCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;={' &amp;lt;&amp;gt; CLS'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;ACCTNBR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&amp;nbsp; to count all records with a status code not equal to CLS.&amp;nbsp; I got nothing returned so I don't think that is the correct syntax&amp;nbsp; (and yes there are other values and no filters set).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 16:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654351#M239101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-10T16:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654352#M239102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't want CLS try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt; ({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;CURR_STATCD-&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;={'CLS'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;ACCTNBR&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;and &lt;A href="https://community.qlik.com/qlik-users/82367"&gt;Alessandro Saccone&lt;/A&gt;'s formula should be right for the date. Maybe your dates aren't in a date format?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;Hope this helps!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 17:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654352#M239102</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-07-10T17:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654353#M239103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, the -= works fine for a "not equal" condition.&amp;nbsp; Are there any other values to test for greater than or less than (other than the obvious &amp;gt; or &amp;lt; or &amp;gt;= or &amp;lt;=)?&amp;nbsp; I would not of thought of using -= for not equal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dates are in date format.&amp;nbsp; I pull them from a SQL script off an oracle database.&amp;nbsp; I am using them in selecting records based on a Master Calendar that I set up for the application.&amp;nbsp; All of that works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 17:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654353#M239103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-10T17:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654354#M239104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An subtle but important distinction here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"-=" does not mean "not equal". It means "remove from the set".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"=-" (note order of chars) means "not equal" - or "equal to not".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So given a Dim1 set of A,B,C. Assume "B,C" are current selections. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Dim1-={C}&amp;gt; returns the Set "B"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;Dim1=-{C}&amp;gt; returns the Set "A,B"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 19:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654354#M239104</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-10T19:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654355#M239105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that clarification Rob. &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I still need help with my original question. How do I represent an expression for counting the number of accounts with Opendate &amp;lt; 5/30/2014 (or any date)?&amp;nbsp; I have verified that the fields I am testing are dates. I even went&lt;BR /&gt;as far as defining the Opendate field in my edit script as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAKEDATE(&lt;SPAN style="color: blue;"&gt;YEAR&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt;),&lt;SPAN style="color: blue;"&gt;MONTH&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt;),&lt;SPAN style="color: blue;"&gt;DAY&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt;)) &lt;SPAN style="color: blue;"&gt;AS&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;OPENDATE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: maroon;"&gt;If I use the following expression: SUM&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt; ={'5/30/2014'}&amp;gt;}&lt;SPAN style="color: maroon;"&gt;CTR_OPENED&lt;/SPAN&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp; I get a correct value for number of accounts opened on 5/30/2014.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the expression to &lt;SPAN style="color: maroon;"&gt;SUM&lt;/SPAN&gt;({1&amp;lt;&lt;SPAN style="color: maroon;"&gt;OPENDATE&lt;/SPAN&gt; ={'&amp;lt; 5/30/2014'}&amp;gt;}&lt;SPAN style="color: maroon;"&gt;CTR_OPENED&lt;/SPAN&gt;)&amp;nbsp; (as suggested above),&amp;nbsp;&amp;nbsp; I get a result of zero.&amp;nbsp; Is this the proper syntax for evaluating a value with a "less than" condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your help with this.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654355#M239105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-11T14:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple parameters in an expression statement</title>
      <link>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654356#M239106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Taking the opportunity I would like to ask for a similar issue. How could I write the ''or'' condition within an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;condition={'text'} &lt;STRONG style="text-decoration: underline;"&gt;or&lt;/STRONG&gt; condition2={'text2'})&amp;gt;} #values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to write it for an ''and'' (just adding a "," between both conditions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 14:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-multiple-parameters-in-an-expression-statement/m-p/654356#M239106</guid>
      <dc:creator />
      <dc:date>2015-02-26T14:44:48Z</dc:date>
    </item>
  </channel>
</rss>

