<?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: Question about how Aggr works in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83421#M5561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ben for the clear explanation of what I was doing wrong and what is the correct function to use!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2018 19:21:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-25T19:21:42Z</dc:date>
    <item>
      <title>Question about how Aggr works</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83417#M5557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to count the number of months with at least 1 issue. And then divide that by the total number of months present in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This formula allows me to count the total number of months: &lt;STRONG&gt;count(DISTINCT {&amp;lt;status={'issued'}&amp;gt;}Month)&lt;/STRONG&gt;. Refer to below left table for raw data and the right table for the calculated value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This formula allows measure the max number of months in the dataset: &lt;STRONG&gt;Max(Aggr(count(DISTINCT {&amp;lt;status={'issued'}&amp;gt;}Month),stationID))&lt;/STRONG&gt;. It returns 12 in this case. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I divide the first equation by the second equation in a table, where one of the dimensions is stationID, i dont get the expected output of formula1&amp;nbsp; / 12. Instead&amp;nbsp; is either 100% or NULL.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik Help Image.png" class="jive-image image-1" src="/legacyfs/online/203312_Qlik Help Image.png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why I'm getting this output, any help would be appreciated! I imagine it must be something do with how the aggregated formula reacts to the stationID dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 06:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83417#M5557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-24T06:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question about how Aggr works</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83418#M5558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you've got NULL may be try to add NODISTINCT before aggr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 07:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83418#M5558</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-05-24T07:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question about how Aggr works</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83419#M5559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you just use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(TOTAL &amp;lt;stationID&amp;gt; DISTINCT {&amp;lt;status={'issued'}&amp;gt;}Month)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 12:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83419#M5559</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-24T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question about how Aggr works</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83420#M5560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;The outer aggregation on your function is still calculated using the table dimensions. Since your Aggr is done by stationID and that same field is used as your dimension it's doing a max for each stationID which is why you're getting 100%'s. You need the total modifier to get the max for the whole set.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;count(DISTINCT {&amp;lt;status={'issued'}&amp;gt;}Month)/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Max(TOTAL Aggr(count(DISTINCT {&amp;lt;status={'issued'}&amp;gt;}Month),stationID))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 17:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83420#M5560</guid>
      <dc:creator>bme</dc:creator>
      <dc:date>2018-05-25T17:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about how Aggr works</title>
      <link>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83421#M5561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ben for the clear explanation of what I was doing wrong and what is the correct function to use!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 19:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Question-about-how-Aggr-works/m-p/83421#M5561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-25T19:21:42Z</dc:date>
    </item>
  </channel>
</rss>

