<?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 Counting Serial Numbers from inline-Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548474#M204874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count serial numbers based on an Inline-Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Inline consists of 3 columns. I am assigning the serial identification number to the year of&lt;BR /&gt;manufacture. There is a number at the beginning of the year and one at the end&lt;BR /&gt;of the year for each model. The numbers between were built in the assigning&lt;BR /&gt;year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43719" class="jive-image" alt="load_inline.png" src="https://community.qlik.com/legacyfs/online/43719_load_inline.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; These numbers are consecutive numbers. So what I want to know is how many models are&lt;BR /&gt;built in one year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, it’s pretty simple: I take the number in the first column, subtract it from the&lt;BR /&gt;second column and add one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;e.g.:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Column2] – [Column1] + 1 &lt;BR /&gt;&lt;BR /&gt;10640594 – 10640245 + 1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try this in a list box for one specific model.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG __jive_id="43718" class="jive-image-thumbnail jive-image" onclick="" alt="listbox.png" src="https://community.qlik.com/legacyfs/online/43718_listbox.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;In the first if I’m searching for one specific model, where the serial number&lt;BR /&gt;(GA_FG_Nr) begins with the numbers ‘1064’, in the second if I just want to know&lt;BR /&gt;whether the number is higher or lower as the last number in the load inline. If&lt;BR /&gt;both are true, it should do the calculation. For a better explanation I&lt;BR /&gt;calculate it for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Baujahr-1.FG_bis] - [Baujahr-1.FG_von] + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Column2] – [Column1] + 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10640594 – 10640245 + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula for the year ‘GJ11/12’ and the result is 350, works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I want to make a straight table. In this table should be as dimension the year of&lt;BR /&gt;manufacture, as formula the sum of serial numbers in one year and some other&lt;BR /&gt;things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43720" class="jive-image-thumbnail jive-image" onclick="" alt="straight_table.png" src="https://community.qlik.com/legacyfs/online/43720_straight_table.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The dimension column “Baujahr” is the year of manufacture, the last column in our&lt;BR /&gt;load inline. In the next column I’m asking for the serial number for this model&lt;BR /&gt;and count a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43721" class="jive-image-thumbnail jive-image" onclick="" alt="count.png" src="https://community.qlik.com/legacyfs/online/43721_count.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The same it is in the column “Fahrzeuge”, the same formula, just an another variable. The&lt;BR /&gt;column “GA/Fzg” is just a division.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In the column “Produktion” I want the number of models in one year, so the same as we&lt;BR /&gt;had before in the list box. I copied the formula from the list box in the&lt;BR /&gt;straight table, but there is the solution zero:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43722" class="jive-image-thumbnail jive-image" onclick="" alt="straight_table_produktion.png" src="https://community.qlik.com/legacyfs/online/43722_straight_table_produktion.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I also try it with a sum or a count before, but I didn’t get the right values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it seems, I have to use an another syntax for the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know which syntax I have to use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 06:54:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-08T06:54:59Z</dc:date>
    <item>
      <title>Counting Serial Numbers from inline-Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548474#M204874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count serial numbers based on an Inline-Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Inline consists of 3 columns. I am assigning the serial identification number to the year of&lt;BR /&gt;manufacture. There is a number at the beginning of the year and one at the end&lt;BR /&gt;of the year for each model. The numbers between were built in the assigning&lt;BR /&gt;year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43719" class="jive-image" alt="load_inline.png" src="https://community.qlik.com/legacyfs/online/43719_load_inline.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt; These numbers are consecutive numbers. So what I want to know is how many models are&lt;BR /&gt;built in one year?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, it’s pretty simple: I take the number in the first column, subtract it from the&lt;BR /&gt;second column and add one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;e.g.:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Column2] – [Column1] + 1 &lt;BR /&gt;&lt;BR /&gt;10640594 – 10640245 + 1&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try this in a list box for one specific model.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;IMG __jive_id="43718" class="jive-image-thumbnail jive-image" onclick="" alt="listbox.png" src="https://community.qlik.com/legacyfs/online/43718_listbox.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;In the first if I’m searching for one specific model, where the serial number&lt;BR /&gt;(GA_FG_Nr) begins with the numbers ‘1064’, in the second if I just want to know&lt;BR /&gt;whether the number is higher or lower as the last number in the load inline. If&lt;BR /&gt;both are true, it should do the calculation. For a better explanation I&lt;BR /&gt;calculate it for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Baujahr-1.FG_bis] - [Baujahr-1.FG_von] + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Column2] – [Column1] + 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10640594 – 10640245 + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula for the year ‘GJ11/12’ and the result is 350, works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, I want to make a straight table. In this table should be as dimension the year of&lt;BR /&gt;manufacture, as formula the sum of serial numbers in one year and some other&lt;BR /&gt;things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43720" class="jive-image-thumbnail jive-image" onclick="" alt="straight_table.png" src="https://community.qlik.com/legacyfs/online/43720_straight_table.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The dimension column “Baujahr” is the year of manufacture, the last column in our&lt;BR /&gt;load inline. In the next column I’m asking for the serial number for this model&lt;BR /&gt;and count a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43721" class="jive-image-thumbnail jive-image" onclick="" alt="count.png" src="https://community.qlik.com/legacyfs/online/43721_count.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The same it is in the column “Fahrzeuge”, the same formula, just an another variable. The&lt;BR /&gt;column “GA/Fzg” is just a division.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In the column “Produktion” I want the number of models in one year, so the same as we&lt;BR /&gt;had before in the list box. I copied the formula from the list box in the&lt;BR /&gt;straight table, but there is the solution zero:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG __jive_id="43722" class="jive-image-thumbnail jive-image" onclick="" alt="straight_table_produktion.png" src="https://community.qlik.com/legacyfs/online/43722_straight_table_produktion.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I also try it with a sum or a count before, but I didn’t get the right values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it seems, I have to use an another syntax for the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know which syntax I have to use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 06:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548474#M204874</guid>
      <dc:creator />
      <dc:date>2013-07-08T06:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Serial Numbers from inline-Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548475#M204875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post some sample data and what the results should be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 07:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548475#M204875</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-08T07:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Serial Numbers from inline-Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548476#M204876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The results from the listbox should be in the straight table. so 244 in the first and 350 in the secound row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 07:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548476#M204876</guid>
      <dc:creator />
      <dc:date>2013-07-08T07:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Serial Numbers from inline-Table</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548477#M204877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the best strategy is to autogenerate the number from min to max and use interval match with the year like extra key.&lt;/P&gt;&lt;P&gt;I hope it is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 15:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Serial-Numbers-from-inline-Table/m-p/548477#M204877</guid>
      <dc:creator>edmondo_tassi</dc:creator>
      <dc:date>2017-09-01T15:17:44Z</dc:date>
    </item>
  </channel>
</rss>

