<?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 Sum when ID is distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-when-ID-is-distinct/m-p/1796951#M1211347</link>
    <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm using the following expression ir order to count how many different aircraft are flying at the same time:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count({&amp;lt;DASI ={'$(vData3)'},NCIA={'GLO'},ONGR={'0'}&amp;gt;} DISTINCT KEYI)&lt;/LI-CODE&gt;&lt;P&gt;Where,&lt;BR /&gt;- DASI is a Date Field (DD/MM/YY)&lt;BR /&gt;- NCIA is the airline&lt;BR /&gt;- ONGR is 0 or 1&lt;BR /&gt;- KEYI is a distinct ID for each aircraft&lt;BR /&gt;&lt;BR /&gt;And my Dimension is Time (HH:MM):&lt;BR /&gt;&lt;BR /&gt;Now, I would like to sum the available number of seats per time, using Time as dimension, but showint the sum of Seats per airline...&lt;BR /&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 18:28:23 GMT</pubDate>
    <dc:creator>brunolelli87</dc:creator>
    <dc:date>2021-04-05T18:28:23Z</dc:date>
    <item>
      <title>Sum when ID is distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-when-ID-is-distinct/m-p/1796951#M1211347</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I'm using the following expression ir order to count how many different aircraft are flying at the same time:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;count({&amp;lt;DASI ={'$(vData3)'},NCIA={'GLO'},ONGR={'0'}&amp;gt;} DISTINCT KEYI)&lt;/LI-CODE&gt;&lt;P&gt;Where,&lt;BR /&gt;- DASI is a Date Field (DD/MM/YY)&lt;BR /&gt;- NCIA is the airline&lt;BR /&gt;- ONGR is 0 or 1&lt;BR /&gt;- KEYI is a distinct ID for each aircraft&lt;BR /&gt;&lt;BR /&gt;And my Dimension is Time (HH:MM):&lt;BR /&gt;&lt;BR /&gt;Now, I would like to sum the available number of seats per time, using Time as dimension, but showint the sum of Seats per airline...&lt;BR /&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 18:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-when-ID-is-distinct/m-p/1796951#M1211347</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2021-04-05T18:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sum when ID is distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-when-ID-is-distinct/m-p/1797149#M1211362</link>
      <description>&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sum(aggr(count({&amp;lt;DASI ={'$(vData3)'},NCIA={'GLO'},ONGR={'0'}&amp;gt;} DISTINCT KEYI),KeYI))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 10:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-when-ID-is-distinct/m-p/1797149#M1211362</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2021-04-06T10:46:51Z</dc:date>
    </item>
  </channel>
</rss>

