<?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 Aggregation over multiple fields/columns in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1801666#M65011</link>
    <description>&lt;P&gt;Hi, I'm really new in Qlik so far but the most thinks are working with my basic understanding.&lt;/P&gt;&lt;P&gt;At the moment I have follwing issue:&lt;/P&gt;&lt;P&gt;I have several products with different timestamps. Each Product has a product number and a unique serial number and a time stamp.&lt;/P&gt;&lt;P&gt;Now I want to make following analysis.&lt;/P&gt;&lt;P&gt;1. Which serial number has a timestamp in the last 12 month&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This one is easy, I added a calculated field in the table of data manager&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2. Which serial number has more or equal than 2 timestamps in the last 12 month&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This aggregation works for me as I did for example a table in the analysis section and did the calculation with sum(calculated field)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3. Now I want to find out which product number has a serial number which has &amp;gt;=2 time stamps in the last 12 month&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This aggregation doesn't work at the momemt as I have the issue, that I not know how I can aggregate the "sum(calculated field)" which is shown as a result in a table (as described in 2.)&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;My first intention was to make an aggregation of the table I created in step 2. But that not worked yet. (Is it possible in general)?&lt;/LI&gt;&lt;LI&gt;My second try was to build a new tabel in data manager with aggregated serail numbers in the last 12 month. But I couldn't find out how or if this is working&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an idea how I can solve my issue how to aggregate over two fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 09:50:34 GMT</pubDate>
    <dc:creator>Robert089</dc:creator>
    <dc:date>2021-04-22T09:50:34Z</dc:date>
    <item>
      <title>Aggregation over multiple fields/columns</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1801666#M65011</link>
      <description>&lt;P&gt;Hi, I'm really new in Qlik so far but the most thinks are working with my basic understanding.&lt;/P&gt;&lt;P&gt;At the moment I have follwing issue:&lt;/P&gt;&lt;P&gt;I have several products with different timestamps. Each Product has a product number and a unique serial number and a time stamp.&lt;/P&gt;&lt;P&gt;Now I want to make following analysis.&lt;/P&gt;&lt;P&gt;1. Which serial number has a timestamp in the last 12 month&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This one is easy, I added a calculated field in the table of data manager&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2. Which serial number has more or equal than 2 timestamps in the last 12 month&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This aggregation works for me as I did for example a table in the analysis section and did the calculation with sum(calculated field)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3. Now I want to find out which product number has a serial number which has &amp;gt;=2 time stamps in the last 12 month&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This aggregation doesn't work at the momemt as I have the issue, that I not know how I can aggregate the "sum(calculated field)" which is shown as a result in a table (as described in 2.)&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;My first intention was to make an aggregation of the table I created in step 2. But that not worked yet. (Is it possible in general)?&lt;/LI&gt;&lt;LI&gt;My second try was to build a new tabel in data manager with aggregated serail numbers in the last 12 month. But I couldn't find out how or if this is working&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an idea how I can solve my issue how to aggregate over two fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 09:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1801666#M65011</guid>
      <dc:creator>Robert089</dc:creator>
      <dc:date>2021-04-22T09:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation over multiple fields/columns</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1801720#M65019</link>
      <description>&lt;P&gt;I believe that you can answer all three of these questions using set analysis in a table chart, instead of creating new fields.&amp;nbsp; For your dimension in a table chart, use the following expressions.&amp;nbsp; Results below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Question 1:&amp;nbsp;=aggr(Only({$&amp;lt;Timestamp={"&amp;gt;$(=Addmonths(Today(),-12))"}&amp;gt;}[Serial Number]), [Serial Number])&lt;/P&gt;&lt;P&gt;Question 2:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=aggr(Only({$&amp;lt;[Serial Number]={"=Count({$&amp;lt;Timestamp={""&amp;gt;$(=Addmonths(Today(),-12))""}&amp;gt;} Timestamp)=2"}&amp;gt;}[Serial Number]), [Serial Number])&lt;/P&gt;&lt;P&gt;Question 3:&lt;/P&gt;&lt;P&gt;=aggr(Only({$&amp;lt;[Serial Number]={"=Count({$&amp;lt;Timestamp={""&amp;gt;$(=Addmonths(Today(),-12))""}&amp;gt;} Timestamp)&amp;gt;2"}&amp;gt;}[Product Number]), [Product Number])&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GaryGiles_1-1619092590677.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53459i3566B3B31D64E233/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GaryGiles_1-1619092590677.png" alt="GaryGiles_1-1619092590677.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 11:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1801720#M65019</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-04-22T11:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation over multiple fields/columns</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1802012#M65052</link>
      <description>&lt;P&gt;Thanks, that helped me a lot!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 06:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1802012#M65052</guid>
      <dc:creator>Robert089</dc:creator>
      <dc:date>2021-04-23T06:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation over multiple fields/columns</title>
      <link>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1808323#M65825</link>
      <description>&lt;P&gt;I tried to finally get a clue to solve my issue with the aggr described above. As a final result I'm going to expect a table in QLIK like following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product numer | Number of Serial Number with more than 2 timestamps in the last 12 month&lt;/P&gt;&lt;P&gt;1234567 | 1&lt;/P&gt;&lt;P&gt;45378923 | 0&lt;/P&gt;&lt;P&gt;7437372 | 0&lt;/P&gt;&lt;P&gt;3452354 | 0&lt;/P&gt;&lt;P&gt;4353454 | 0&lt;/P&gt;&lt;P&gt;How should the formula look like for "Number of Serialnumbers with more than 2 timestamps in de last 12 month"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 10:35:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggregation-over-multiple-fields-columns/m-p/1808323#M65825</guid>
      <dc:creator>Robert089</dc:creator>
      <dc:date>2021-05-17T10:35:19Z</dc:date>
    </item>
  </channel>
</rss>

