<?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: Set Expression Avg Distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509099#M436513</link>
    <description>What exactly are you hoping to see when using the Avg? Is it a single number across all the AsOfPeriod? and what is the exact expression you have tried?</description>
    <pubDate>Mon, 19 Nov 2018 13:49:01 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-19T13:49:01Z</dc:date>
    <item>
      <title>Set Expression Avg Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509093#M436511</link>
      <description>&lt;P&gt;Is it possible to calculate an average within a set expression? I would like to calculate the average number of active employees for the current selection.&lt;BR /&gt;I am calculating the active EE by =num(COUNT({&amp;lt;PeriodType={'Current'},isActiveEmp_flg={1}&amp;gt;}DISTINCT Employee_Number),'#,##0')&lt;BR /&gt;After updating my expression to include Avg, I do not return any results. Is this due to aggregate and non aggregate?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 289px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/584iB2DD029B5A4FF20B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509093#M436511</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2024-11-16T05:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Avg Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509096#M436512</link>
      <description>&lt;P&gt;How are u calculating the AVG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;u can't use 2 agg functions at the same time ; to use the avg, ur expression should be as follow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;avg(aggr(&lt;/STRONG&gt;count(measure)&lt;STRONG&gt;,dimension))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509096#M436512</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2018-11-19T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Avg Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509099#M436513</link>
      <description>What exactly are you hoping to see when using the Avg? Is it a single number across all the AsOfPeriod? and what is the exact expression you have tried?</description>
      <pubDate>Mon, 19 Nov 2018 13:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509099#M436513</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-19T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Avg Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509104#M436514</link>
      <description>&lt;P&gt;If i understand correctly, You can define as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(&lt;FONT color="#FF0000"&gt;Avg(Aggr(&lt;/FONT&gt;COUNT({&amp;lt;PeriodType={'Current'},isActiveEmp_flg={1}&amp;gt;}DISTINCT Employee_Number)&lt;FONT color="#FF0000"&gt;,AsOfPeriod))&lt;/FONT&gt;,'#,##0')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509104#M436514</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-19T13:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Avg Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509109#M436515</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;I was calculating the average by:&lt;/P&gt;&lt;P&gt;avg(num(COUNT({&amp;lt;PeriodType={'Current'},isActiveEmp_flg={1}&amp;gt;}DISTINCT Employee_Number),'#,##0'))&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Avg-Distinct/m-p/1509109#M436515</guid>
      <dc:creator>jonathanrichey</dc:creator>
      <dc:date>2018-11-19T13:54:59Z</dc:date>
    </item>
  </channel>
</rss>

