<?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: Can I do this using pure set analysis insteading using aggr function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-I-do-this-using-pure-set-analysis-insteading-using-aggr/m-p/1422922#M429010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so..., because you calculate every firstsortedvalue() per PAT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you could do the calculation in script but then the calculation will be fixed.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2017 09:21:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-18T09:21:38Z</dc:date>
    <item>
      <title>Can I do this using pure set analysis insteading using aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-do-this-using-pure-set-analysis-insteading-using-aggr/m-p/1422921#M429009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used this expression to get number of patients whose test value is more than 190. Can I use pure set analysis and count to get this number? If it can be done, I will be able to use union for more calculation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;/P&gt;&lt;P&gt;if (AGGR(&lt;/P&gt;&lt;P&gt;FirstSortedValue(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;YearMonth,&lt;/P&gt;&lt;P&gt;FLAG_DM={1},&lt;/P&gt;&lt;P&gt;CONTACT_DATE2 = {"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_1YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"},&lt;/P&gt;&lt;P&gt;PAT_ID = {"=Age(Num(V_selectedDate), Only({&amp;lt;YearMonth&amp;gt;}BIRTH_DATE)) &amp;gt;= 21"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMPONENT_ID= {5577,1557762,1578329},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABORDERDATE2 = {"$(='&amp;gt;=' &amp;amp; Date(V_selectedDate_1YearAgo) &amp;amp; '&amp;lt;=' &amp;amp; Date(V_selectedDate))"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LABRESULT={'*'}&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;LABRESULT, -CONTACT_DATE), PAT_ID&lt;/P&gt;&lt;P&gt;)&amp;gt;=190, 1,0)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 09:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-do-this-using-pure-set-analysis-insteading-using-aggr/m-p/1422921#M429009</guid>
      <dc:creator>baylor2016</dc:creator>
      <dc:date>2017-08-18T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I do this using pure set analysis insteading using aggr function?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-I-do-this-using-pure-set-analysis-insteading-using-aggr/m-p/1422922#M429010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think so..., because you calculate every firstsortedvalue() per PAT_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you could do the calculation in script but then the calculation will be fixed.... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 09:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-I-do-this-using-pure-set-analysis-insteading-using-aggr/m-p/1422922#M429010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T09:21:38Z</dc:date>
    </item>
  </channel>
</rss>

