<?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 variables in a Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188175#M518877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Piet. &lt;/P&gt;&lt;P&gt;I knew it would be a matter of simple order and syntax, but I couldn't see the forest for the the trees. Looking at the solution above makes sense to me now. Since I'm formulating an equation, I need to define it as such with the '='.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2016 23:36:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-09-20T23:36:20Z</dc:date>
    <item>
      <title>Using Multiple variables in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188173#M518875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am comparing an avg value over a period, to the period prior to it to determine if the change is +/-.&lt;/P&gt;&lt;P&gt;Now I would like to substitute the defined period with variables. Unfortunately I am having no luck.&lt;/P&gt;&lt;P&gt;Current expression:&lt;/P&gt;&lt;P&gt;=if(avg({$&amp;lt;CDIMonthID={"&amp;gt;$(=max(CDIMonthID)- 6) ,&amp;lt;=$(=max(CDIMonthID))"}&amp;gt;}CDI)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; avg({$&amp;lt;CDIMonthID={"&amp;gt;$(=max(CDIMonthID)-12) ,&amp;lt;=$(=max(CDIMonthID)-6)"}&amp;gt;}CDI),&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_r.png',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_g.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proposed expression (which is not working)&lt;/P&gt;&lt;P&gt;=if(avg({$&amp;lt;CDIMonthID={"&amp;gt;$(=max(CDIMonthID)- $(vCDIPeriod)) ,&amp;lt;=$(=max(CDIMonthID))"}&amp;gt;}CDI)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp; avg({$&amp;lt;CDIMonthID={"&amp;gt;$(=max(CDIMonthID)-($(vCDIPeriod)*'2')) ,&amp;lt;=$(=max(CDIMonthID)-$(vCDIPeriod))"}&amp;gt;}CDI),&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_r.png',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_g.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried different syntax and values to no avail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(My first question posted on this forum, after finding the answers to my previous questions in other posts)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 02:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188173#M518875</guid>
      <dc:creator />
      <dc:date>2016-09-20T02:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple variables in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188174#M518876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try with this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(avg({$&amp;lt;CDIMonthID={"&amp;gt;$(=max(CDIMonthID)- $(vCDIPeriod)) ,&amp;lt;=$(=max(CDIMonthID))"}&amp;gt;}CDI)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &amp;gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; avg({$&amp;lt;CDIMonthID={"&amp;gt;$(=max(CDIMonthID)-(&lt;SPAN style="color: #ff0000;"&gt;$(=vCDIPeriod*2))&lt;/SPAN&gt;) ,&amp;lt;=$(=max(CDIMonthID)-$(vCDIPeriod))"}&amp;gt;}CDI),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_n_r.png',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/arrow_s_g.png')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 16:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188174#M518876</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-09-20T16:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple variables in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188175#M518877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Piet. &lt;/P&gt;&lt;P&gt;I knew it would be a matter of simple order and syntax, but I couldn't see the forest for the the trees. Looking at the solution above makes sense to me now. Since I'm formulating an equation, I need to define it as such with the '='.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2016 23:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188175#M518877</guid>
      <dc:creator />
      <dc:date>2016-09-20T23:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple variables in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188176#M518878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Dutch roots? "Door de bomen het bos niet zien" is not uncommon for me as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188176#M518878</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-09-21T08:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Multiple variables in a Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188177#M518879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Piet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I’m South African with some Dutch heritage along the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It’s always the simpler ones that catch me out ☺.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&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;Mark van der Berg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 23:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Multiple-variables-in-a-Set-Analysis/m-p/1188177#M518879</guid>
      <dc:creator />
      <dc:date>2016-09-21T23:06:20Z</dc:date>
    </item>
  </channel>
</rss>

