<?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 Complications with using AGGR() and FirstSortedValue() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338100#M29404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a data set that shows multiple devices appearing in several departments (on multiple Sites) over time:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="167704" alt="Screen Shot 2017-06-21 at 9.46.33 PM.png" class="jive-image image-1" src="/legacyfs/online/167704_Screen Shot 2017-06-21 at 9.46.33 PM.png" style="height: 436px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I need to have a count of these devices per Site and per Date, with the condition that these devices will be counted just &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;once per Day&lt;/STRONG&gt;&lt;/SPAN&gt;, even if they are reported in several departments (or in one department)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; on one Site&lt;/STRONG&gt;&lt;/SPAN&gt; several times during that date.&lt;/P&gt;&lt;P&gt;In the sample above: device with ID=00034da8085be should be counted just once at 10:00 a.m. and counts for 02:00 and 04:00 p.m. should be just ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to build a Measure's formula using AGGR and FirstSortedValue functions, but was not very successful doing so.&lt;/P&gt;&lt;P&gt;I would really appreciate a suggestion how to handle that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;P&gt;P.S. the sample file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
    <dc:creator>vlad_komarov</dc:creator>
    <dc:date>2021-12-22T15:42:54Z</dc:date>
    <item>
      <title>Complications with using AGGR() and FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338100#M29404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a data set that shows multiple devices appearing in several departments (on multiple Sites) over time:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="167704" alt="Screen Shot 2017-06-21 at 9.46.33 PM.png" class="jive-image image-1" src="/legacyfs/online/167704_Screen Shot 2017-06-21 at 9.46.33 PM.png" style="height: 436px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I need to have a count of these devices per Site and per Date, with the condition that these devices will be counted just &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;once per Day&lt;/STRONG&gt;&lt;/SPAN&gt;, even if they are reported in several departments (or in one department)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt; on one Site&lt;/STRONG&gt;&lt;/SPAN&gt; several times during that date.&lt;/P&gt;&lt;P&gt;In the sample above: device with ID=00034da8085be should be counted just once at 10:00 a.m. and counts for 02:00 and 04:00 p.m. should be just ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to build a Measure's formula using AGGR and FirstSortedValue functions, but was not very successful doing so.&lt;/P&gt;&lt;P&gt;I would really appreciate a suggestion how to handle that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;P&gt;P.S. the sample file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338100#M29404</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2021-12-22T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Complications with using AGGR() and FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338101#M29405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Min&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Operational_Hour&lt;/SPAN&gt;),&lt;SPAN style="color: #800000;"&gt;Site&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Date&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;DeviceID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167720_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 07:00:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338101#M29405</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-06-22T07:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Complications with using AGGR() and FirstSortedValue()</title>
      <link>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338102#M29406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, it works as needed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 15:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Complications-with-using-AGGR-and-FirstSortedValue/m-p/1338102#M29406</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-06-22T15:45:52Z</dc:date>
    </item>
  </channel>
</rss>

