<?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 Using Aggr with a time-based line chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1843641#M69811</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a table containing 3 columns: company, salesman, date&lt;BR /&gt;Each entry gives a time at which a salesman sold something to a company&lt;/P&gt;&lt;P&gt;I want to create a line chart which displays the median number of unique salesmen per company at each quarter&lt;BR /&gt;&lt;BR /&gt;I'm currently doing the following:&lt;BR /&gt;&lt;BR /&gt;Dimension:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[date.autoCalendar.YearQuarter]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Median(Aggr(count(distinct salesman),company))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this is not working: The height of the curve is incorrect and there are values missing (see attached chart).&lt;BR /&gt;For instance, filtering the data by quarter using a filter pane gives a different result (see second chart, the value for 2017-Q4 on the non-filtered chart is approximately 10, while it is around 3 on the filtered chart, which is actually the correct value)&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong? Thank you for your help&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Non-filtered chart" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63648iEB7190A1204D29AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-07 at 15.36.58.png" alt="Non-filtered chart" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Non-filtered chart&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filtered-chart 2017-Q4" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63647i94CA5229BD1D931A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-07 at 15.38.19.png" alt="Filtered-chart 2017-Q4" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Filtered-chart 2017-Q4&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 14:41:35 GMT</pubDate>
    <dc:creator>ewindels</dc:creator>
    <dc:date>2021-10-07T14:41:35Z</dc:date>
    <item>
      <title>Using Aggr with a time-based line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1843641#M69811</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a table containing 3 columns: company, salesman, date&lt;BR /&gt;Each entry gives a time at which a salesman sold something to a company&lt;/P&gt;&lt;P&gt;I want to create a line chart which displays the median number of unique salesmen per company at each quarter&lt;BR /&gt;&lt;BR /&gt;I'm currently doing the following:&lt;BR /&gt;&lt;BR /&gt;Dimension:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[date.autoCalendar.YearQuarter]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Median(Aggr(count(distinct salesman),company))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However this is not working: The height of the curve is incorrect and there are values missing (see attached chart).&lt;BR /&gt;For instance, filtering the data by quarter using a filter pane gives a different result (see second chart, the value for 2017-Q4 on the non-filtered chart is approximately 10, while it is around 3 on the filtered chart, which is actually the correct value)&lt;BR /&gt;&lt;BR /&gt;Am I doing something wrong? Thank you for your help&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Non-filtered chart" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63648iEB7190A1204D29AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-07 at 15.36.58.png" alt="Non-filtered chart" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Non-filtered chart&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filtered-chart 2017-Q4" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/63647i94CA5229BD1D931A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-07 at 15.38.19.png" alt="Filtered-chart 2017-Q4" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Filtered-chart 2017-Q4&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1843641#M69811</guid>
      <dc:creator>ewindels</dc:creator>
      <dc:date>2021-10-07T14:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggr with a time-based line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1843794#M69822</link>
      <description>&lt;P&gt;if you have a company in multiple yearquarter, you need to add yearquarter to your aggregation, otherwise the count of salesman will only be available to 1 of the yearquarter.&lt;/P&gt;&lt;P&gt;Median(Aggr(count(distinct salesman),[date.autoCalendar.YearQuarter], company))&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 18:16:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1843794#M69822</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-10-07T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using Aggr with a time-based line chart</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1844031#M69840</link>
      <description>&lt;P&gt;That worked, thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 08:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Aggr-with-a-time-based-line-chart/m-p/1844031#M69840</guid>
      <dc:creator>ewindels</dc:creator>
      <dc:date>2021-10-08T08:19:26Z</dc:date>
    </item>
  </channel>
</rss>

