<?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: Display Count of Distinct Order Numbers in a Column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099287#M89995</link>
    <description>&lt;P&gt;Hi, try this code:&lt;/P&gt;
&lt;P&gt;myTable:&lt;BR /&gt;LOAD SOURCE_ORDER_ID,&lt;BR /&gt;ERROR_MESSAGE,&lt;BR /&gt;Autonumber(SOURCE_ORDER_ID) as TempID INLINE [&lt;BR /&gt;SOURCE_ORDER_ID, ERROR_MESSAGE&lt;BR /&gt;1522222, Missing Address&lt;BR /&gt;1874666, Missing Payment Information&lt;BR /&gt;1544444, Invalid Data&lt;BR /&gt;1253232, Missing Payment Information&lt;BR /&gt;1253232, Missing Address&lt;BR /&gt;1253232, Missing Name&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;TempTable:&lt;BR /&gt;LOAD *,&lt;BR /&gt;If(Peek('TempID') = TempID, Peek('Unique Order Count'), If(IsNull(Peek('Unique Order Count')), 1, Peek('Unique Order Count')+1)) as 'Unique Order Count'&lt;BR /&gt;Resident myTable&lt;BR /&gt;Order by TempID;&lt;/P&gt;
&lt;P&gt;Drop Table myTable;&lt;BR /&gt;DROP Fields TempID from TempTable;&lt;/P&gt;
&lt;P&gt;RENAME Table TempTable to myTable;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cristianj23a_0-1690925812700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113382i1810622A18FEDBC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cristianj23a_0-1690925812700.png" alt="cristianj23a_0-1690925812700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 21:37:01 GMT</pubDate>
    <dc:creator>cristianj23a</dc:creator>
    <dc:date>2023-08-01T21:37:01Z</dc:date>
    <item>
      <title>Display Count of Distinct Order Numbers in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099269#M89992</link>
      <description>&lt;P&gt;Hello Qliksense community!&amp;nbsp; I am hoping someone might be able to assist me with my question.&amp;nbsp; I have a table of orders and their current errors.&amp;nbsp; The way the data is structured there can be multiple error records per order number, resulting in a table that looks like the following:&lt;/P&gt;
&lt;TABLE width="361"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="141"&gt;SOURCE_ORDER_ID&lt;/TD&gt;
&lt;TD width="220"&gt;ERROR_MESSAGE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1522222&lt;/TD&gt;
&lt;TD&gt;Missing Address&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1874666&lt;/TD&gt;
&lt;TD&gt;Missing Payment Information&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1544444&lt;/TD&gt;
&lt;TD&gt;Invalid Data&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1253232&lt;/TD&gt;
&lt;TD&gt;Missing Payment Information&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1253232&lt;/TD&gt;
&lt;TD&gt;Missing Address&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1253232&lt;/TD&gt;
&lt;TD&gt;Missing Name&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm wanting to display the row number in a column that shows the row count by distinct order number.&amp;nbsp; Below is what I'm wanting to display.&amp;nbsp; Any thoughts on how I can accomplish that?&lt;/P&gt;
&lt;TABLE width="500"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="141"&gt;SOURCE_ORDER_ID&lt;/TD&gt;
&lt;TD width="220"&gt;ERROR_MESSAGE&lt;/TD&gt;
&lt;TD width="139"&gt;Unique Order Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1522222&lt;/TD&gt;
&lt;TD&gt;Missing Address&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1874666&lt;/TD&gt;
&lt;TD&gt;Missing Payment Information&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1544444&lt;/TD&gt;
&lt;TD&gt;Invalid Data&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1253232&lt;/TD&gt;
&lt;TD&gt;Missing Payment Information&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1253232&lt;/TD&gt;
&lt;TD&gt;Missing Address&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;1253232&lt;/TD&gt;
&lt;TD&gt;Missing Name&lt;/TD&gt;
&lt;TD&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099269#M89992</guid>
      <dc:creator>trevorcrow</dc:creator>
      <dc:date>2023-08-01T20:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Display Count of Distinct Order Numbers in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099282#M89994</link>
      <description>&lt;P&gt;Hi, Create a straight table or pivot table with the following&lt;/P&gt;
&lt;P&gt;Dimensions: SOURCE_ORDER_ID and ERROR_MESSAGE&lt;/P&gt;
&lt;P&gt;Measure: =Aggr(NODISTINCT RowNo(), SOURCE_ORDER_ID)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 20:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099282#M89994</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2023-08-01T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Display Count of Distinct Order Numbers in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099287#M89995</link>
      <description>&lt;P&gt;Hi, try this code:&lt;/P&gt;
&lt;P&gt;myTable:&lt;BR /&gt;LOAD SOURCE_ORDER_ID,&lt;BR /&gt;ERROR_MESSAGE,&lt;BR /&gt;Autonumber(SOURCE_ORDER_ID) as TempID INLINE [&lt;BR /&gt;SOURCE_ORDER_ID, ERROR_MESSAGE&lt;BR /&gt;1522222, Missing Address&lt;BR /&gt;1874666, Missing Payment Information&lt;BR /&gt;1544444, Invalid Data&lt;BR /&gt;1253232, Missing Payment Information&lt;BR /&gt;1253232, Missing Address&lt;BR /&gt;1253232, Missing Name&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;TempTable:&lt;BR /&gt;LOAD *,&lt;BR /&gt;If(Peek('TempID') = TempID, Peek('Unique Order Count'), If(IsNull(Peek('Unique Order Count')), 1, Peek('Unique Order Count')+1)) as 'Unique Order Count'&lt;BR /&gt;Resident myTable&lt;BR /&gt;Order by TempID;&lt;/P&gt;
&lt;P&gt;Drop Table myTable;&lt;BR /&gt;DROP Fields TempID from TempTable;&lt;/P&gt;
&lt;P&gt;RENAME Table TempTable to myTable;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cristianj23a_0-1690925812700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/113382i1810622A18FEDBC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cristianj23a_0-1690925812700.png" alt="cristianj23a_0-1690925812700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 21:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2099287#M89995</guid>
      <dc:creator>cristianj23a</dc:creator>
      <dc:date>2023-08-01T21:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display Count of Distinct Order Numbers in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2102370#M90073</link>
      <description>&lt;P&gt;use AutoNumber()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;SOURCE_ORDER_ID&lt;/P&gt;
&lt;P&gt;,ERROR_MESSAGE&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,Autonumber(SOURCE_ORDER_ID) as ID&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 06:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2102370#M90073</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-08-04T06:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display Count of Distinct Order Numbers in a Column</title>
      <link>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2103208#M90124</link>
      <description>&lt;P&gt;This worked perfectly and was very simple to add into my load statement.&amp;nbsp; Thanks so much everyone!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 16:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-Count-of-Distinct-Order-Numbers-in-a-Column/m-p/2103208#M90124</guid>
      <dc:creator>trevorcrow</dc:creator>
      <dc:date>2023-08-07T16:46:53Z</dc:date>
    </item>
  </channel>
</rss>

