<?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: How to get the first order date and amount form the table? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037630#M16068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one important thing i forgot to add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the order_date field is a timestamp field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the customer can have multipal order on the single day &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;so also based on time i want the first order date and order amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;a customer_id have order on the some day like&lt;/P&gt;&lt;P&gt;on 01/01/2016&amp;nbsp; but order 4 times on different time .&lt;/P&gt;&lt;P&gt;so from that i want that order value that he ordered for the first time on that date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Apr 2016 09:25:03 GMT</pubDate>
    <dc:creator>gauravgg</dc:creator>
    <dc:date>2016-04-03T09:25:03Z</dc:date>
    <item>
      <title>How to get the first order date and amount form the table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037629#M16067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following&amp;nbsp; order table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer_id order_id order_amount order_date&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;customer_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;order_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;order_amount&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;order_date&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;002&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/02/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;003&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;324&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;004&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;342&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;005&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;006&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;567&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;21/03/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt; form the above table i want to make another table using resident load in which in want the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want the customer_id and it's first order date and first order amount as follows&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;customer_id&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;first_order_date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;first_order_amount&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01/01/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;02/02/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;345&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;03/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;324&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20/03/2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;234&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 06:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037629#M16067</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-04-03T06:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first order date and amount form the table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037630#M16068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one important thing i forgot to add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the order_date field is a timestamp field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the customer can have multipal order on the single day &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;so also based on time i want the first order date and order amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;a customer_id have order on the some day like&lt;/P&gt;&lt;P&gt;on 01/01/2016&amp;nbsp; but order 4 times on different time .&lt;/P&gt;&lt;P&gt;so from that i want that order value that he ordered for the first time on that date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037630#M16068</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-04-03T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first order date and amount form the table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037631#M16069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;customer_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;TimeStamp(Min(order_date))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;FirstSortedValue(order_amount, order_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Apr 2016 10:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037631#M16069</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-03T10:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first order date and amount form the table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037632#M16070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to create a table in the data model &lt;/P&gt;&lt;P&gt;cusromer_id ,first_order_date&lt;SPAN style="font-size: 13.3333px;"&gt;,first_order_value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to create table in data model using resident load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 04:44:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037632#M16070</guid>
      <dc:creator>gauravgg</dc:creator>
      <dc:date>2016-04-04T04:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the first order date and amount form the table?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037633#M16071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD customer_id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_amount, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2156" data-containertype="14" data-objectid="211819" data-objecttype="1" href="https://community.qlik.com/thread/211819"&gt;https://community.qlik.com/thread/211819&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where Len(Trim(customer_id)) &amp;gt; 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;GroupedTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;LOAD customer_id,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; Date(Min(order_date)) as first_order_date,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp; FirstSortedValue(order_amount, order_date) as first_order_amount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;Group By customer_id;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-get-the-first-order-date-and-amount-form-the-table/m-p/1037633#M16071</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-04T12:16:29Z</dc:date>
    </item>
  </channel>
</rss>

