<?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 Re: counting unique codes in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497822#M102788</link>
    <description>&lt;P&gt;Thank you for the answers. but it didn't work. Imagine that these sales are 100 thousand units. and each has a separate code. I want to perform a counting operation as in the table I showed in a new column that I will open in Qlik.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2024 06:55:15 GMT</pubDate>
    <dc:creator>tolgaclk</dc:creator>
    <dc:date>2024-12-13T06:55:15Z</dc:date>
    <item>
      <title>counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497688#M102771</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="tw-target-text" class="tw-data-text tw-text-large tw-ta" dir="ltr" data-placeholder="Çeviri" data-ved="2ahUKEwjWq8uqp6KKAxXK3gIHHW_GIjQQ3ewLegQICRAU" aria-label="Çevrilmiş metin: How do I formulate the order I specified in the table below?"&gt;&lt;SPAN class="Y2IQFc"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;How do I formulate the order I specified in the table below?&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="389"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="134"&gt;COD&lt;/TD&gt;
&lt;TD width="159"&gt;ID&lt;/TD&gt;
&lt;TD width="96"&gt;ORDER&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;234234&lt;/TD&gt;
&lt;TD&gt;ENGİN&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&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R&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;578&lt;/TD&gt;
&lt;TD&gt;ABDULKADİR&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;578567434&lt;/TD&gt;
&lt;TD&gt;ABDULKADİR&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;34564&lt;/TD&gt;
&lt;TD&gt;ABDULKADİR&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;56879685&lt;/TD&gt;
&lt;TD&gt;ABDULKADİR&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3546352&lt;/TD&gt;
&lt;TD&gt;ENGİN&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;567476&lt;/TD&gt;
&lt;TD&gt;ENGİN&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;967857&lt;/TD&gt;
&lt;TD&gt;ENGİN&lt;/TD&gt;
&lt;TD&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;568567&lt;/TD&gt;
&lt;TD&gt;NURETTİN&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:44:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497688#M102771</guid>
      <dc:creator>tolgaclk</dc:creator>
      <dc:date>2024-12-12T13:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497689#M102772</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can you clarify your basic data and what you want to do?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497689#M102772</guid>
      <dc:creator>Clement15</dc:creator>
      <dc:date>2024-12-12T13:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497719#M102776</link>
      <description>&lt;P&gt;It could be done with interrecord-functions within a sorted resident load, for example like:&lt;/P&gt;
&lt;P&gt;load *, if(ID = previous(ID), peek('ORDER') + 1, 1) as ORDER&lt;BR /&gt;resident X order by ID;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497719#M102776</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-12-12T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497721#M102777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/323112"&gt;@tolgaclk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I did something similar to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;. Following the code:&lt;/P&gt;
&lt;PRE&gt;TempMyTable:
LOAD
  COD,
  ID,
  RecNo() AS RowLine
INLINE [
COD,ID
234234,ENGİN
23423,ENGİN
4235,MESUT
123412,CENGİZ
1423,SEDAT
436,SEDAT
67,SEDAT
56856,NURETTİN
78,HASAN
4563423,SEBAHATTİN
235,IŞIK GIDA
6546,ABDULKADİR
578,ABDULKADİR
578567434,ABDULKADİR
34564,ABDULKADİR
56879685,ABDULKADİR
3546352,ENGİN
567476,ENGİN
967857,ENGİN
568567,NURETTİN
];


MyTable:
LOAD
    COD,
    ID,
    If(Match(ID, Peek(ID)),Peek(ORDER)+1,1) AS ORDER
RESIDENT
	TempMyTable
ORDER BY
    ID,
	RowLine
;

DROP TABLE TempMyTable;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marksouzacosta_0-1734015515048.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175656i762115398A31A583/image-size/medium?v=v2&amp;amp;px=400" role="button" title="marksouzacosta_0-1734015515048.png" alt="marksouzacosta_0-1734015515048.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Mark Costa&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:58:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497721#M102777</guid>
      <dc:creator>marksouzacosta</dc:creator>
      <dc:date>2024-12-12T14:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497822#M102788</link>
      <description>&lt;P&gt;Thank you for the answers. but it didn't work. Imagine that these sales are 100 thousand units. and each has a separate code. I want to perform a counting operation as in the table I showed in a new column that I will open in Qlik.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 06:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497822#M102788</guid>
      <dc:creator>tolgaclk</dc:creator>
      <dc:date>2024-12-13T06:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497838#M102792</link>
      <description>&lt;P&gt;The above hinted approach to use interrecord-functions will work for the described scenario even if there are millions of records and also if the real case is a bit more complex and might need some if-loops more and/or with more result-fields and/or running it twice (forwards + backwards) or ...&lt;/P&gt;
&lt;P&gt;Of course such approach will need more run-time as a pure table load without any transformation but usually it happens within an acceptable time - and everything might be further optimized by embedding it within incremental logic.&lt;/P&gt;
&lt;P&gt;Therefore I suggest you give it a try.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 08:08:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497838#M102792</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-12-13T08:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497857#M102798</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The formula below does not work. I need a formula to sort like this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Aggr(If(Previous([Mobis.Müşteri Kodu])&amp;lt;&amp;gt;[Mobis.Müşteri Kodu], 1, RowNo(TOTAL &amp;lt;[Mobis.Müşteri Kodu]&amp;gt;)), [Mobis.Müşteri Kodu])&lt;/P&gt;
&lt;TABLE&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH&gt;&lt;STRONG&gt;Mobis.Müşteri Kodu&lt;/STRONG&gt;&lt;/TH&gt;
&lt;TH&gt;&lt;STRONG&gt;Sıra&lt;/STRONG&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;36518&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;36518&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;36553&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;44002&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;44002&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;44008&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;44008&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;44008&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 13 Dec 2024 10:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497857#M102798</guid>
      <dc:creator>tolgaclk</dc:creator>
      <dc:date>2024-12-13T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: counting unique codes</title>
      <link>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497865#M102800</link>
      <description>&lt;P&gt;A table in Qlik is a chart which dimensionality is created by the combination of the used fields (in the dimensions as well as within the expressions). Therefore there is no overhead of n rows/columns resulting in n cells like in a table-calculation tools. This leads further to the fact that no dimension-value has a fixed position else it depends on various aspects like the ordering of the dimensions/expression-results, the selection-state, object-properties ...&lt;/P&gt;
&lt;P&gt;All of it made it not mandatory impossible to display any kind of position-information but it may depending on the scenario quite difficult and is probably requiring (nested) aggr() to show such calculated dimensions. Means a high complexity and more or less serious disadvantages in regard to the usability and performance.&lt;/P&gt;
&lt;P&gt;Simpler and probably more expedient would be to use normal expressions in appropriate designed objects (only serving this purpose and not fulfilling n requirements) with a (combination) of rowno() and/or rowno(total) or a rank() with/without a total-statement against an (extra) expression.&lt;/P&gt;
&lt;P&gt;If there is no dependency of the positioning against any user-interactions you shouldn't try it within the UI else using the hinted script-solutions.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2024 11:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/counting-unique-codes/m-p/2497865#M102800</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2024-12-13T11:20:48Z</dc:date>
    </item>
  </channel>
</rss>

