<?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 compare price at two different time intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906309#M658315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2015 17:02:42 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2015-05-25T17:02:42Z</dc:date>
    <item>
      <title>How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906301#M658307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have couple of questions in regards to time/ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;07:00:00&lt;/P&gt;&lt;P&gt;08:00:00&lt;/P&gt;&lt;P&gt;09:00:00&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1400&lt;/P&gt;&lt;P&gt;1410&lt;/P&gt;&lt;P&gt;1390&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I need to know if the price at 07:00:00 was Higher then the price at 16:00:00?&lt;/P&gt;&lt;P&gt;2) then I need to calculate the difference - by how many points&lt;/P&gt;&lt;P&gt;3) and then I need to build time ranges and find an average price for each interval:&lt;/P&gt;&lt;P&gt;range: 'morning' - time: 07-12&lt;/P&gt;&lt;P&gt;range ' lunch' - time 12-13&lt;/P&gt;&lt;P&gt;range 'evening' -&amp;nbsp; time 13-16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with that. Thanks in advance for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Apr 2015 15:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906301#M658307</guid>
      <dc:creator />
      <dc:date>2015-04-26T15:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906302#M658308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, anyone know a good way to solve this? thanks in advance for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 07:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906302#M658308</guid>
      <dc:creator />
      <dc:date>2015-05-10T07:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906303#M658309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;see attachment.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 09:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906303#M658309</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-05-10T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906304#M658310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attachment (added 2 charts to Antonio's .qvw)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 10:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906304#M658310</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-10T10:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906305#M658311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for help but could you pls copy/passe the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 15:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906305#M658311</guid>
      <dc:creator />
      <dc:date>2015-05-24T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906306#M658312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I made a little change to Antonio's app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 20:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906306#M658312</guid>
      <dc:creator>anlonghi2</dc:creator>
      <dc:date>2015-05-24T20:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906307#M658313</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_161728_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/87422_QlikCommunity_Thread_161728_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_161728_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/87423_QlikCommunity_Thread_161728_Pic2.JPG" style="height: 478px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14325115582912878 jive_text_macro" jivemacro_uid="_14325115582912878"&gt;
&lt;P&gt;tabPrices:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Round(frac(DateTime),'01:00:00')) as Time,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(100+Ceil(Rand()*10)) as Price,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Product '&amp;amp;IterNo() as Product&lt;/P&gt;
&lt;P&gt;While IterNo() &amp;lt;= 3;&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(Date+'07:00:00'+(IterNo()-1)*'01:00:00') as DateTime&lt;/P&gt;
&lt;P&gt;While IterNo()&amp;lt;=10;&lt;/P&gt;
&lt;P&gt;LOAD Date(Today()-30+RecNo()) as Date&lt;/P&gt;
&lt;P&gt;AutoGenerate 30;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabPrices)&lt;/P&gt;
&lt;P&gt;LOAD Product,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money(FirstSortedValue(Price,-Time)-FirstSortedValue(Price,Time)) as PriceChange&lt;/P&gt;
&lt;P&gt;Resident tabPrices&lt;/P&gt;
&lt;P&gt;Group By Product, Date;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTimes:&lt;/P&gt;
&lt;P&gt;LOAD Round(Time, '01:00:00') as Time,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; range&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;Time, range&lt;/P&gt;
&lt;P&gt;'07:00:00', morning&lt;/P&gt;
&lt;P&gt;'08:00:00', morning&lt;/P&gt;
&lt;P&gt;'09:00:00', morning&lt;/P&gt;
&lt;P&gt;'10:00:00', morning&lt;/P&gt;
&lt;P&gt;'11:00:00', morning&lt;/P&gt;
&lt;P&gt;'12:00:00', lunch&lt;/P&gt;
&lt;P&gt;'13:00:00', afternoon&lt;/P&gt;
&lt;P&gt;'14:00:00', afternoon&lt;/P&gt;
&lt;P&gt;'15:00:00', afternoon&lt;/P&gt;
&lt;P&gt;'16:00:00', afternoon&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 23:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906307#M658313</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-24T23:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906308#M658314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! i needed the script - this one was a really good one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 16:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906308#M658314</guid>
      <dc:creator />
      <dc:date>2015-05-25T16:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906309#M658315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 17:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/906309#M658315</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-05-25T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare price at two different time intervals</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/2475249#M1226001</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone knows how to Compare the prices based on Valid from Date? as a results to see new price and old price comparison.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 09:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-price-at-two-different-time-intervals/m-p/2475249#M1226001</guid>
      <dc:creator>Sunnny</dc:creator>
      <dc:date>2024-08-08T09:20:21Z</dc:date>
    </item>
  </channel>
</rss>

