<?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 condition to avg aggr sum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894580#M1217456</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For a range (assuming you want the OR combination between the ranges:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=avg(aggr(Sum({&amp;lt;TEST_ID={"&amp;gt;=10 &amp;lt;=1000"}+{"&amp;gt;=1500 &amp;lt;=2500"}&amp;gt;}RUN_DATE_TIME-RECEIVED_DATE_TIME)*24 ,ACC_ID))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 23:58:42 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2022-02-17T23:58:42Z</dc:date>
    <item>
      <title>adding condition to avg aggr sum</title>
      <link>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894011#M1217424</link>
      <description>&lt;P&gt;hello i have a script like this&amp;nbsp;=avg(aggr(Sum(RUN_DATE_TIME-RECEIVED_DATE_TIME)*24 ,ACC_ID)) for a line graph measure. i am trying to add a condition to filter some of the data in it. i tried&amp;nbsp;=avg(aggr(Sum(if(TEST_ID = '1000',RUN_DATE_TIME-RECEIVED_DATE_TIME)*24 ,ACC_ID))) but its giving me a garbage error. what would be the proper syntax? here is the original script.&amp;nbsp;=avg(aggr(Sum(RUN_DATE_TIME-RECEIVED_DATE_TIME)*24 ,ACC_ID))&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 23:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894011#M1217424</guid>
      <dc:creator>Marcushenriquesk</dc:creator>
      <dc:date>2022-02-16T23:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: adding condition to avg aggr sum</title>
      <link>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894060#M1217425</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=avg(aggr(Sum({&amp;lt;TEST_ID={1000}&amp;gt;}RUN_DATE_TIME-RECEIVED_DATE_TIME)*24 ,ACC_ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This uses Set Analysis to limit the set of data this expression is applied to within the { }&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 04:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894060#M1217425</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2022-02-17T04:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: adding condition to avg aggr sum</title>
      <link>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894420#M1217442</link>
      <description>&lt;P&gt;perfect, how would a range work for example (test_id &amp;gt;= 10 and Test_ID &amp;lt;=1000) and (Test_id &amp;gt;= 1500 and Test_id &amp;lt;=2500)&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894420#M1217442</guid>
      <dc:creator>Marcushenriquesk</dc:creator>
      <dc:date>2022-02-17T16:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: adding condition to avg aggr sum</title>
      <link>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894444#M1217443</link>
      <description>&lt;P&gt;or also the 'not in' clause is e() right? if i were to make a range how would i implement that so that it would be all tests that are not in that range using set anaylsis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894444#M1217443</guid>
      <dc:creator>Marcushenriquesk</dc:creator>
      <dc:date>2022-02-17T16:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: adding condition to avg aggr sum</title>
      <link>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894580#M1217456</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For a range (assuming you want the OR combination between the ranges:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=avg(aggr(Sum({&amp;lt;TEST_ID={"&amp;gt;=10 &amp;lt;=1000"}+{"&amp;gt;=1500 &amp;lt;=2500"}&amp;gt;}RUN_DATE_TIME-RECEIVED_DATE_TIME)*24 ,ACC_ID))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 23:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/adding-condition-to-avg-aggr-sum/m-p/1894580#M1217456</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2022-02-17T23:58:42Z</dc:date>
    </item>
  </channel>
</rss>

