<?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 to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225508#M77804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;it should be something like this:&lt;/P&gt;&lt;P&gt;aggr(max({$&amp;lt;BDate={'&amp;gt;=$(ADate)-90'}&amp;gt;} total &amp;lt;KEY&amp;gt; FieldC),KEY)&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 16:11:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-22T16:11:56Z</dc:date>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225506#M77802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to convert this to set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((ADate-90&amp;lt;=BDate), aggr(max(total &amp;lt;KEY&amp;gt; FieldC),KEY),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 15:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225506#M77802</guid>
      <dc:creator />
      <dc:date>2011-02-22T15:22:24Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225507#M77803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(max({$&amp;lt;BDate = {'&amp;gt;= ADate-90'}&amp;gt;} total &amp;lt;KEY&amp;gt; FieldC), KEY)&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 16:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225507#M77803</guid>
      <dc:creator />
      <dc:date>2011-02-22T16:06:58Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225508#M77804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;it should be something like this:&lt;/P&gt;&lt;P&gt;aggr(max({$&amp;lt;BDate={'&amp;gt;=$(ADate)-90'}&amp;gt;} total &amp;lt;KEY&amp;gt; FieldC),KEY)&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 16:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225508#M77804</guid>
      <dc:creator />
      <dc:date>2011-02-22T16:11:56Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225509#M77805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if I change it to&lt;/P&gt;&lt;P&gt;sum(if(ADate-90&amp;lt;=BDate), aggr(max(total &amp;lt;KEY&amp;gt; FieldC),KEY),0)&lt;/P&gt;&lt;P&gt;Would i put the set after sum, aggr, or max?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 17:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225509#M77805</guid>
      <dc:creator />
      <dc:date>2011-02-22T17:04:34Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225510#M77806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh I also have a variable which i have been using after the sum as $(variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 17:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225510#M77806</guid>
      <dc:creator />
      <dc:date>2011-02-22T17:07:51Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225511#M77807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to put the set analysis inside sum and max.&lt;/P&gt;&lt;P&gt;can you give an example of how you use your variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 17:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225511#M77807</guid>
      <dc:creator />
      <dc:date>2011-02-22T17:30:45Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225512#M77808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum($(variable)aggr(max({$&amp;lt;BDate={'&amp;gt;=$(ADate)-90'}&amp;gt;} total &amp;lt;KEY&amp;gt; FieldC),KEY)&lt;/P&gt;&lt;P&gt;Here is my current expression, but if I change the 90 to 60 or 30 it does not do anything to the numbers I am getting. Is that due to my expression or most likely something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 18:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225512#M77808</guid>
      <dc:creator />
      <dc:date>2011-02-22T18:38:24Z</dc:date>
    </item>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225513#M77809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't prove it, but try:&lt;/P&gt;&lt;P&gt;sum($(variable) aggr(max({$&amp;lt;BDate={"&amp;gt;=$(#=date(ADate-90)"}&amp;gt;} total &amp;lt;KEY&amp;gt; FieldC),KEY)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What is the value of the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 20:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/225513#M77809</guid>
      <dc:creator />
      <dc:date>2011-02-22T20:14:32Z</dc:date>
    </item>
  </channel>
</rss>

