<?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 IF notation  with { and &amp;lt; in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-notation-with-and-lt/m-p/286182#M106458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Can someone explain me the following term in "if" language?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({&lt;STRONG style="color: #008000;"&gt;1&lt;/STRONG&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;"&amp;gt;=$(=addmonths(monthend(max(OrderDate),)+1,-24)) &amp;lt;=$(=addmonths(max(OrderDate),-12))"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(from this thread:&lt;A _jive_internal="true" href="https://community.qlik.com/thread/28725"&gt;http://community.qlik.com/thread/28725&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the same as: &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;addmonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;monthend&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;))+1,-12) &lt;SPAN style="color: #0000ff;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is the meaning of the initial "&lt;STRONG style="color: #008000;"&gt;1&lt;/STRONG&gt;"?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2012 15:47:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-15T15:47:33Z</dc:date>
    <item>
      <title>IF notation  with { and &lt;</title>
      <link>https://community.qlik.com/t5/QlikView/IF-notation-with-and-lt/m-p/286182#M106458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Can someone explain me the following term in "if" language?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 9pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;({&lt;STRONG style="color: #008000;"&gt;1&lt;/STRONG&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;OrderDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;"&amp;gt;=$(=addmonths(monthend(max(OrderDate),)+1,-24)) &amp;lt;=$(=addmonths(max(OrderDate),-12))"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(from this thread:&lt;A _jive_internal="true" href="https://community.qlik.com/thread/28725"&gt;http://community.qlik.com/thread/28725&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the same as: &lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;&amp;gt;=&lt;SPAN style="color: #0000ff;"&gt;addmonths&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;monthend&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;))+1,-12) &lt;SPAN style="color: #0000ff;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #0000ff;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;OrderDate&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;Sales&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is the meaning of the initial "&lt;STRONG style="color: #008000;"&gt;1&lt;/STRONG&gt;"?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 9pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 15:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-notation-with-and-lt/m-p/286182#M106458</guid>
      <dc:creator />
      <dc:date>2012-02-15T15:47:33Z</dc:date>
    </item>
    <item>
      <title>IF notation  with { and &lt;</title>
      <link>https://community.qlik.com/t5/QlikView/IF-notation-with-and-lt/m-p/286183#M106459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not "OR", this is an "AND".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read it as if Orderdate is in the Last Year To Date, then sum the sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "1" tells the expression to use the "1" set, ignoring all other selections in the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 16:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-notation-with-and-lt/m-p/286183#M106459</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2012-02-15T16:11:46Z</dc:date>
    </item>
  </channel>
</rss>

