<?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 Min date in each day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174522#M43318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;Thanks you! It worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2011 15:45:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-22T15:45:26Z</dc:date>
    <item>
      <title>Min date in each day</title>
      <link>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174518#M43314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I have a table with driving details that includes the date, car key, customer key and the meter reading at the beginning and end of the drive.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;I want to show in a chart the car key and the average of the start meter reading of the first drive of every day.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;For example if I have the following information:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG&gt;01/01/2011 08:30, car1, cust1, 100, 150&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;01/01/2011 16:50, car1, cust1, 150, 270&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG&gt;01/02/2011 08:30, car2, cust2, 50, 130&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG&gt;01/02/2011 09:00, car1, cust1, 270, 320&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;01/02/2011 18:00, car1, cust1, 320, 390&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;01/02/2011 19:00, car2, cust2, 130, 170&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The result will be:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Car1 -&amp;gt; 185 - (100+270)\2&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Car2 -&amp;gt; 50&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;The average will be calculated according to the bold lines.&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Any suggestions?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Thanks,&lt;/P&gt;&lt;P style="margin: 0cm 0cm 0pt;"&gt;Hadar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 14:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174518#M43314</guid>
      <dc:creator />
      <dc:date>2011-03-22T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Min date in each day</title>
      <link>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174519#M43315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be honest I don't really understand what you are trying to do... where does the 185 come from? It looks like you either want a flag for when it is the first drive of the day for that car or you could use some form of total &amp;lt;some field&amp;gt; but... I'm not really sure what you're trying to do so I can't say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 15:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174519#M43315</guid>
      <dc:creator />
      <dc:date>2011-03-22T15:14:02Z</dc:date>
    </item>
    <item>
      <title>Min date in each day</title>
      <link>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174520#M43316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to look at the first drive in each day for each car and calculate the average of the start meter reading.&lt;/P&gt;&lt;P&gt;Following the example I gave before, for Car1 I will look at the first drive in 01/01/2011 (which happened at 08:30) -&amp;gt;the meter reading is 100, and the first drive in 01/02/2011 (which happened at 09:00) -&amp;gt;the meter reading is 270, the average of 100 and 270 is 185,&lt;/P&gt;&lt;P&gt;Does that make more sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 15:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174520#M43316</guid>
      <dc:creator />
      <dc:date>2011-03-22T15:23:45Z</dc:date>
    </item>
    <item>
      <title>Min date in each day</title>
      <link>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174521#M43317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hadar,&lt;/P&gt;&lt;P&gt;you need to use Advanced Aggregation (function AGGR()):&lt;/P&gt;&lt;P&gt;- First, you need to determine the first drive of the day by using FirstSortedValue(), aggregated for each Car and Date&lt;/P&gt;&lt;P&gt;- Then, you need to average out the results.&lt;/P&gt;&lt;P&gt;the formula should be something like this:&lt;/P&gt;&lt;P&gt;AVG( AGGR( FirstSortedValue( Meter, Timestamp) , CarID, Date) )&lt;/P&gt;&lt;P&gt;That's assuming that you have separate fields for Timestamp, Date, etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 15:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174521#M43317</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-22T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Min date in each day</title>
      <link>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174522#M43318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oleg,&lt;/P&gt;&lt;P&gt;Thanks you! It worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 15:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Min-date-in-each-day/m-p/174522#M43318</guid>
      <dc:creator />
      <dc:date>2011-03-22T15:45:26Z</dc:date>
    </item>
  </channel>
</rss>

