<?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: Calculate average time with the aggr and set analysis function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475844#M100191</link>
    <description>&lt;P&gt;thanks so much&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 13:52:23 GMT</pubDate>
    <dc:creator>francesctesi</dc:creator>
    <dc:date>2024-08-12T13:52:23Z</dc:date>
    <item>
      <title>Calculate average time with the aggr and set analysis function</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475796#M100188</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I would like to calculate the average time for exam ID, between two dates.&lt;/P&gt;
&lt;P&gt;For this reason, I used the following function:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;avg(aggr(DATETIME_FINISH-DATETIME_START, IDEXAM))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;However, I would only like to calculate exams, which have the field FLAG_EST = 1 and the field REASON_LATE &amp;lt;&amp;gt; '0'.&lt;/P&gt;
&lt;P&gt;Is it possible to apply set analysis to consider exams with these values in the final calculation of the average?&lt;/P&gt;
&lt;P&gt;Because if I try to use the filters in different positions, they do not work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 11:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475796#M100188</guid>
      <dc:creator>francesctesi</dc:creator>
      <dc:date>2024-08-12T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time with the aggr and set analysis function</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475829#M100190</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/218986"&gt;@francesctesi&lt;/a&gt;&amp;nbsp; It is difficult to write set expression without looking at granularity of data and expected output, but try below&lt;/P&gt;
&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif"&gt;avg({&amp;lt;&lt;SPAN&gt;FLAG_EST={1},REASON_LATE-={0}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;aggr(sum({&amp;lt;&lt;SPAN&gt;FLAG_EST={1},REASON_LATE-={0}&amp;gt;}&amp;nbsp;&lt;/SPAN&gt;DATETIME_FINISH-DATETIME_START), IDEXAM))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 12:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475829#M100190</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-08-12T12:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate average time with the aggr and set analysis function</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475844#M100191</link>
      <description>&lt;P&gt;thanks so much&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-average-time-with-the-aggr-and-set-analysis-function/m-p/2475844#M100191</guid>
      <dc:creator>francesctesi</dc:creator>
      <dc:date>2024-08-12T13:52:23Z</dc:date>
    </item>
  </channel>
</rss>

