<?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: adding a second condition to expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641673#M1086906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you simply add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;STOTYP={2} at the start of the set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 00:17:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-06T00:17:29Z</dc:date>
    <item>
      <title>adding a second condition to expression</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641670#M1086903</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;I've the following condition to calculate the the rolling avg.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MonthYear ={"&amp;gt;=$(=Date(addmonths(Max(MonthYear), -13), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(MonthYear), -1),&amp;nbsp; 'MMM-YY'))"} &amp;gt;} STBEL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to add so it only do this calculation if order type equals "2"&amp;nbsp;&amp;nbsp; ( STOTYP=2 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure where the first calculation starts and stops (new to Qlikview)&lt;/P&gt;&lt;P&gt;Can someone please help me to add this condition to the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641670#M1086903</guid>
      <dc:creator />
      <dc:date>2014-06-06T00:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: adding a second condition to expression</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641671#M1086904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before the last angle bracket (&amp;gt;), include ,STOTYP={2}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will add the second condition. Don't forget the comma to separate the conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641671#M1086904</guid>
      <dc:creator>eduardo_sommer</dc:creator>
      <dc:date>2014-06-06T00:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: adding a second condition to expression</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641672#M1086905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;sum({&amp;lt;MonthYear ={"&amp;gt;=$(=Date(addmonths(Max(MonthYear), -13), 'MMM-YY')) &amp;lt;=$(=Date(addmonths(Max(MonthYear), -1),&amp;nbsp; 'MMM-YY'))"}&lt;SPAN style="color: #ff0000;"&gt;, STOTYP = {2}&lt;/SPAN&gt;&amp;gt;} STBEL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;Essentially, you can place it before or after the MonthYear = {} condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;The QlikView's Help file is a good place to help you understand Set Analysis a little better.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;S.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641672#M1086905</guid>
      <dc:creator>shawn-qv</dc:creator>
      <dc:date>2014-06-06T00:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: adding a second condition to expression</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641673#M1086906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't you simply add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;STOTYP={2} at the start of the set analysis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641673#M1086906</guid>
      <dc:creator />
      <dc:date>2014-06-06T00:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: adding a second condition to expression</title>
      <link>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641674#M1086907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Shawn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-a-second-condition-to-expression/m-p/641674#M1086907</guid>
      <dc:creator />
      <dc:date>2014-06-06T00:26:50Z</dc:date>
    </item>
  </channel>
</rss>

