<?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 Sort and number dates by customer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150732#M28704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shariel,&lt;/P&gt;&lt;P&gt;this is the only part in our script we used the field "Tr_Id". Instead of "Tr_Id" try to count the field "Date".&lt;/P&gt;&lt;P&gt;CountTrId:&lt;BR /&gt;Load&lt;BR /&gt; Cu_Id,&lt;BR /&gt; Count(Tr_Id) as CountedTrId&lt;BR /&gt;Resident RealData&lt;BR /&gt;Group By Cu_Id&lt;/P&gt;&lt;P&gt;Ia´m not sure if I understand your question correctly.&lt;/P&gt;&lt;P&gt;If possible prepare a short example of the tables you have.&lt;/P&gt;&lt;P&gt;So I and the other colleagues are able to thing about a solution.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Aug 2009 12:33:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-05T12:33:18Z</dc:date>
    <item>
      <title>Sort and number dates by customer</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150728#M28700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need sort dates and number by Cu_Id like &lt;STRONG&gt;Tr_Id&lt;/STRONG&gt;, then use it for count days between the dates for the same Cu_id and add the number as a new column then view&lt;/P&gt;&lt;P&gt;- Average by Cu_Id&lt;/P&gt;&lt;P&gt;The new table should look like this.&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 375pt; border-collapse: collapse;" width="501"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 38pt; mso-width-source: userset; mso-width-alt: 1865; mso-outline-parent: collapsed;" width="51" /&gt;&lt;COL style="width: 35pt; mso-width-source: userset; mso-width-alt: 1718; mso-outline-parent: collapsed;" width="47" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3620; mso-outline-parent: collapsed;" width="99" /&gt;&lt;COL style="width: 81pt; mso-width-source: userset; mso-width-alt: 3949; mso-outline-parent: collapsed;" width="108" /&gt;&lt;COL style="width: 69pt; mso-width-source: userset; mso-width-alt: 3364;" width="92" /&gt;&lt;COL style="width: 78pt; mso-width-source: userset; mso-width-alt: 3803;" width="104" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl28" height="17" style="width: 38pt; height: 12.75pt; background-color: whitesmoke; border: gainsboro 0.5pt solid;" width="51"&gt;&lt;STRONG&gt;Cu_Id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl29" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 0.5pt solid; border-left: gainsboro; width: 35pt; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;" width="47"&gt;&lt;STRONG&gt;Tr_Id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 0.5pt solid; border-left: gainsboro; width: 74pt; border-bottom: gainsboro 0.5pt solid; background-color: white;" width="99"&gt;Date&lt;/TD&gt;&lt;TD class="xl24" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 0.5pt solid; border-left: gainsboro; width: 81pt; border-bottom: gainsboro 0.5pt solid; background-color: white;" width="108"&gt;Date - Above(Date)&lt;/TD&gt;&lt;TD class="xl30" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 0.5pt solid; border-left: gainsboro; width: 69pt; border-bottom: gainsboro 0.5pt solid; background-color: transparent;" width="92"&gt;Sum by Cu_Id&lt;/TD&gt;&lt;TD class="xl30" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro 0.5pt solid; border-left: gainsboro; width: 78pt; border-bottom: gainsboro 0.5pt solid; background-color: transparent;" width="104"&gt;Average by Cu_Id&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1234&lt;/TD&gt;&lt;TD align="right" class="xl26" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39054"&gt;03/12/2006&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;0&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;0&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1234&lt;/TD&gt;&lt;TD align="right" class="xl26" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39069"&gt;18/12/2006&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;15&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;15&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1234&lt;/TD&gt;&lt;TD align="right" class="xl26" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39087"&gt;05/01/2007&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;18&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent" fmla="=SUM(E3,D4)"&gt;33&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;1234&lt;/TD&gt;&lt;TD align="right" class="xl26" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39091"&gt;09/01/2007&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;4&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent" fmla="=SUM(E4,D5)"&gt;37&lt;/TD&gt;&lt;TD class="xl30" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;2345&lt;/TD&gt;&lt;TD align="right" class="xl27" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39882"&gt;10/03/2009&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;0&lt;/TD&gt;&lt;TD class="xl31" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;0&lt;/TD&gt;&lt;TD class="xl31" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;2345&lt;/TD&gt;&lt;TD align="right" class="xl27" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39915"&gt;12/04/2009&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;33&lt;/TD&gt;&lt;TD class="xl31" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;33&lt;/TD&gt;&lt;TD class="xl31" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl24" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;2345&lt;/TD&gt;&lt;TD align="right" class="xl27" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl25" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white" num="39939"&gt;06/05/2009&lt;/TD&gt;&lt;TD align="right" class="xl24" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: white"&gt;24&lt;/TD&gt;&lt;TD class="xl31" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent" fmla="=SUM(E7,D8)"&gt;57&lt;/TD&gt;&lt;TD class="xl31" style="BORDER-RIGHT: gainsboro 0.5pt solid; BORDER-TOP: gainsboro; BORDER-LEFT: gainsboro; BORDER-BOTTOM: gainsboro 0.5pt solid; BACKGROUND-COLOR: transparent" fmla="=E8/3"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Tks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 19:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150728#M28700</guid>
      <dc:creator />
      <dc:date>2009-07-30T19:59:05Z</dc:date>
    </item>
    <item>
      <title>Sort and number dates by customer</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150729#M28701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shariel,&lt;/P&gt;&lt;P&gt;the part "Sum by Cu_Id" is finished.&lt;/P&gt;&lt;P&gt;For the second part "Average" I have no idea yet.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 20:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150729#M28701</guid>
      <dc:creator />
      <dc:date>2009-07-30T20:43:22Z</dc:date>
    </item>
    <item>
      <title>Sort and number dates by customer</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150730#M28702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shariel,&lt;/P&gt;&lt;P&gt;here are the table you want to have.&lt;/P&gt;&lt;P&gt;Happy qlicking!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 19:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150730#M28702</guid>
      <dc:creator />
      <dc:date>2009-07-31T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Sort and number dates by customer</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150731#M28703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rainer! it´s just i need, but one more question, i have two tables without the number "Tr_Id" how can i generate it or sort by client?&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 21:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150731#M28703</guid>
      <dc:creator />
      <dc:date>2009-08-04T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Sort and number dates by customer</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150732#M28704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shariel,&lt;/P&gt;&lt;P&gt;this is the only part in our script we used the field "Tr_Id". Instead of "Tr_Id" try to count the field "Date".&lt;/P&gt;&lt;P&gt;CountTrId:&lt;BR /&gt;Load&lt;BR /&gt; Cu_Id,&lt;BR /&gt; Count(Tr_Id) as CountedTrId&lt;BR /&gt;Resident RealData&lt;BR /&gt;Group By Cu_Id&lt;/P&gt;&lt;P&gt;Ia´m not sure if I understand your question correctly.&lt;/P&gt;&lt;P&gt;If possible prepare a short example of the tables you have.&lt;/P&gt;&lt;P&gt;So I and the other colleagues are able to thing about a solution.&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 12:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-and-number-dates-by-customer/m-p/150732#M28704</guid>
      <dc:creator />
      <dc:date>2009-08-05T12:33:18Z</dc:date>
    </item>
  </channel>
</rss>

