<?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: Simple Inter-record query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394540#M562333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternately, this person seemed to create a weird date alias to get around the same problem. It's common, if it makes you feel any better!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/122958#122958" title="http://community.qlik.com/message/122958#122958"&gt;http://community.qlik.com/message/122958#122958&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 19:27:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-28T19:27:17Z</dc:date>
    <item>
      <title>Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394528#M562321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to determine the simple % change in price between one record set and another (between one day and the next), and ideally chart this. However I'm struggling to do this. I can do this in the qvd as part of the sql, but prefer to do it in the qvw as part of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt;( ClosingPrice[Current] - ClosingPrice[PreviousDay] )/ClosingPrice(PreviousDay)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the current record, I'm attempting to query the previous price using the following expression. The expression is for a specific instrument, using the MakeDate function, using LadderYear, LadderMonth and LadderDay as the previous recorde date for that instrument. But this returns NULL value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt;=avg(&lt;BR /&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 10pt;"&gt;Instrument1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;$(='[DOE Annual World Oil Demand]')&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 10pt;"&gt;LadderDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;$(=MakeDate($(LadderYear),$(LadderMonth),$(LadderDay)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt; }&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: maroon; font-size: 10pt;"&gt;ClosingPriceUSD1&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: blue; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;I have also tried the function Last. This also returns NULL value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;=&lt;SPAN style="color: blue;"&gt;Last( &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;{$&amp;lt;Instrument1={&lt;STRONG&gt;&lt;EM style="color: gray;"&gt;$(='[DOE Annual World Oil Demand]')&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} ClosingPriceUSD1 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;I'm missing something fundamental here, as I would have thought this to be relatively simple to do. Any guidance people can offer, will be greatly appretciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="color: black; font-size: 10pt;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 15:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394528#M562321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T15:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394529#M562322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just had this problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look at your chart as a straight table, you will see that the days are arranged vertically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try closingprice - above(closingprice) / above(closingprice) and it should straighten things out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 16:36:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394529#M562322</guid>
      <dc:creator />
      <dc:date>2013-02-28T16:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394530#M562323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the helpful response. I wasn't aware of the "above" function. But similiar to the Last function, it doesn't seem to like the expresion&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;Instrument1={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(='[DOE Annual World Oil Demand]'))}&amp;gt; ClosingPriceUSD1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;﻿&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 16:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394530#M562323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T16:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394531#M562324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the helpful response. I wasn't aware of the "above" function. But similiar to the Last function, it doesn't seem to like the expresion. &lt;/P&gt;&lt;P&gt;Are these functions invalid in expression with set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Above(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;Instrument1={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(='[DOE Annual World Oil Demand]'))}&amp;gt; ClosingPriceUSD1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;even the following doesn't work&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;﻿&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;=Above(ClosingPriceUSD1) &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;returns NULL&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;&lt;SPAN id="mce_marker"&gt;&lt;/SPAN&gt;﻿&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394531#M562324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T17:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394532#M562325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those functions (last, above, etc.) work fine with set analysis. I am using them with set analysis in several applications... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you looking at your data? I recommend looking at it as a straight table while you are figuring out all of your equations, and then charting the results, rather than trying to do it as a bar or line chart directly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Chart inter-record functions help info is very useful as well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394532#M562325</guid>
      <dc:creator />
      <dc:date>2013-02-28T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394533#M562326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a simple table with the dimension of LadderYear,LadderMonth,LadderDay, and Instrument.&lt;/P&gt;&lt;P&gt;Expression as ClosingPriceUSD and trying to create an expression for the previous day ClosingPriceUSD using Last, Above, MakeDate....anything that allows me to move across the record set without changing the current record.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394533#M562326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T17:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394534#M562327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to show me your data, I'll see if I can do anything with it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394534#M562327</guid>
      <dc:creator />
      <dc:date>2013-02-28T17:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394535#M562328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I know why your chart inter-record functions aren't working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's because you have too many dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go LadderYear, LadderMonth, LadderDay, QlikView will look at all of the records in one "Day" as a block, and inter-record functions only function within a block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I had a bug where I sorted by Year(date) and Month(date) and did month/month analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the code sum(policies) / above(sum(policies)),&lt;/P&gt;&lt;P&gt;My table looked like:&lt;/P&gt;&lt;P&gt;2012&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013&lt;/P&gt;&lt;P&gt;Oct&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nov&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Jan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Feb&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 97%&amp;nbsp;&amp;nbsp;&amp;nbsp; 98%&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 96%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However using MonthName(date) I was able to have January show up as non-blank.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Rather than creating Year, Month, and Day, I recommend just using Date. Above() will then work normally.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 18:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394535#M562328</guid>
      <dc:creator />
      <dc:date>2013-02-28T18:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394536#M562329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the data - nothing really compilcated at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for previous price is =above({$&amp;lt;Instrument1={$('[DOE Annual World Oil Demand]')}&amp;gt;} ClosingPriceUSD1)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="34085" class="jive-image-thumbnail jive-image" onclick="" alt="SampleTable.jpg" src="https://community.qlik.com/legacyfs/online/34085_SampleTable.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 18:40:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394536#M562329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T18:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394537#M562330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, like I thought, it's because of your dimensions. If you're looking for year over year comparisons, try re-ordering your dimensions like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;Instrument1&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Day&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you should be able to use the above() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 18:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394537#M562330</guid>
      <dc:creator />
      <dc:date>2013-02-28T18:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394538#M562331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really appretciate your help and suggestions. I tried to rearrange the dimensions as suggested and once again it just doesn't seem to like the previous price. I'm either doing something so silly or it's fundementally wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only data set I have are 31st Dec for each year - there is no pricing during the year for this particular instrument. So rearranging the dimension have no effect. I even replaced the Month,Day, Year with a simple date and of course that had the same effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done some relatively complex charts with Qlikview and I would have thought a % change in any value over a period is relatively simple to do. Maybe i should rename Discussion as "Not so simple inter-record query".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If setanalysis works with Last, Above, it must be something in my expression that it doesn't like. Does it matter on the order whether I do Above(sum(......)) or Sum(above(.....))?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="34081" class="jive-image" alt="SampleTable.jpg" src="https://community.qlik.com/legacyfs/online/34081_SampleTable.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 19:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394538#M562331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T19:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394539#M562332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I actually played around with my data to see what was going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, it looks like your Instrument1 isn't changing. If you had 2 different instrument1s, you'd have a table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instrument, date, current price, previous&lt;/P&gt;&lt;P&gt;DOE A, dec31 1970, 46808, -&lt;/P&gt;&lt;P&gt;DOE B, dec31 1970, 46707,46808&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it doesn't look like this is dependent on the order the dimensions are in. In a pivot table, it would be, but this is a straight table. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you make separate tables for each instrument (which might be easier to read anyways, given how large a period of time your data spans) and just use date as a field rather than month/day/year, I think that'll do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's really too bad Qlikview can't get charts to run off of pivot tables rather than straight tables. It'd be much more intuitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 19:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394539#M562332</guid>
      <dc:creator />
      <dc:date>2013-02-28T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Inter-record query</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394540#M562333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternately, this person seemed to create a weird date alias to get around the same problem. It's common, if it makes you feel any better!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/122958#122958" title="http://community.qlik.com/message/122958#122958"&gt;http://community.qlik.com/message/122958#122958&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 19:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-Inter-record-query/m-p/394540#M562333</guid>
      <dc:creator />
      <dc:date>2013-02-28T19:27:17Z</dc:date>
    </item>
  </channel>
</rss>

