<?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: Excluding values in AVG not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643839#M48017</link>
    <description>&lt;P&gt;The set analysis Syntax looks correct.&lt;/P&gt;&lt;P&gt;How are you creating the column %Task_Duration&lt;/P&gt;&lt;P&gt;I would check the value,type of that and double check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 15:18:02 GMT</pubDate>
    <dc:creator>dplr-rn</dc:creator>
    <dc:date>2019-11-06T15:18:02Z</dc:date>
    <item>
      <title>Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643804#M48016</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I have a duration measure in days that tells me how much time a task took to be completed, in average, as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AVG(Interval([Task Completed Date] - [Task Started Date])&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;But there are certain tasks that take less than half a day (&amp;lt;0.5 of duration) to be completed, and I want to exclude these tasks from my AVG duration. How can I accomplish that?&lt;/P&gt;&lt;P&gt;I have tried the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AVG({&amp;lt;%Task_Duration-={"&amp;lt;0.5"}&amp;gt;} %Task_Duration)&lt;/LI-CODE&gt;&lt;P&gt;This is supposed to exclude tasks whose duration are less that 0.5 days, but it isn't working as expected - the AVG is still counting them.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643804#M48016</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2024-11-16T04:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643839#M48017</link>
      <description>&lt;P&gt;The set analysis Syntax looks correct.&lt;/P&gt;&lt;P&gt;How are you creating the column %Task_Duration&lt;/P&gt;&lt;P&gt;I would check the value,type of that and double check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 15:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643839#M48017</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-11-06T15:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643876#M48021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;%Task_Duration&lt;/STRONG&gt; field is calculated in the model in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Interval([Task Completed Date] - [Task Started Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to show the AVG on a KPI, not a table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:17:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643876#M48021</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T16:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643877#M48022</link>
      <description>&lt;P&gt;thats fine.&lt;/P&gt;&lt;P&gt;check the data in column and column type.&lt;/P&gt;&lt;P&gt;i ran a test on the set analysis to make sure with some dummy data and it works&lt;/P&gt;&lt;P&gt;mine Avg({&amp;lt;Duration-={"&amp;lt;0.5"}&amp;gt;}Duration)&lt;/P&gt;&lt;P&gt;your&amp;nbsp;AVG({&amp;lt;%Task_Duration-={"&amp;lt;0.5"}&amp;gt;} %Task_Duration)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so it must be something in data level&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643877#M48022</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-11-06T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643887#M48023</link>
      <description>&lt;P&gt;If a put the expression in a table, with or without SA, the value is the same&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Duration with SA:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AVG({&amp;lt;%Task_Duration-={"&amp;lt;0.5"}&amp;gt;} %Task_Duration)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Duration without SA:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AVG(%Task_Duration)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643887#M48023</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T16:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643889#M48024</link>
      <description>&lt;P&gt;Forgot the printscreen:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taskduration.PNG" style="width: 380px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23033iD97156405ACD632A/image-size/large?v=v2&amp;amp;px=999" role="button" title="taskduration.PNG" alt="taskduration.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643889#M48024</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T16:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643892#M48025</link>
      <description>set analysis is calculated once per chart (or table). NOT once per row, switch to IF&lt;BR /&gt;AVG(IF(%TaskDuration &amp;gt;0.5,%TaskDuration))</description>
      <pubDate>Wed, 06 Nov 2019 16:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643892#M48025</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2019-11-06T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643894#M48026</link>
      <description>&lt;P&gt;your previous comment said "I'm trying to show the AVG on a KPI, not a table."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643894#M48026</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-11-06T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643896#M48027</link>
      <description>&lt;P&gt;I've put the expressions in the table just for testing purposes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643896#M48027</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T16:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643897#M48028</link>
      <description>&lt;P&gt;share your output in KPI. table a lot depends on the dimensions used etc.&lt;/P&gt;&lt;P&gt;And also include an extract of the duration column if possible&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643897#M48028</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-11-06T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643903#M48029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412"&gt;@dplr-rn&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The output in KPI is the same that I've showed in the table. The value for the average task duration is showing 5.28, with or without set analysis.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643903#M48029</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T17:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643904#M48030</link>
      <description>&lt;P&gt;whats the data type for&amp;nbsp;&lt;SPAN&gt;%Task_Duration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also Put values for that into a striaght table and check values&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643904#M48030</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-11-06T17:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643907#M48031</link>
      <description>&lt;P&gt;Not sure if this is the result we want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="taskduration2.PNG" style="width: 829px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23035i87EEFFF0184520FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="taskduration2.PNG" alt="taskduration2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643907#M48031</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T17:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643909#M48032</link>
      <description>&lt;P&gt;It's number type.&lt;/P&gt;&lt;P&gt;Yeah that's what I did, I put the expressions in a straight table, like I've shown in the printscreen.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643909#M48032</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T17:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643911#M48033</link>
      <description>&lt;P&gt;not the expressions. the actual values of the duration column&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643911#M48033</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-11-06T17:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding values in AVG not working</title>
      <link>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643920#M48034</link>
      <description>&lt;P&gt;But the duration is defined as &lt;STRONG&gt;Interval([Task Completed Date] - [Task Created Date])&lt;/STRONG&gt;, and that's what I have in the table, wrapped around with an AVG aggregation to show values. So those are the actual values.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Excluding-values-in-AVG-not-working/m-p/1643920#M48034</guid>
      <dc:creator>valpassos</dc:creator>
      <dc:date>2019-11-06T17:36:15Z</dc:date>
    </item>
  </channel>
</rss>

