<?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: Inter-record functions question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840793#M295503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! That's exactly what I was asking for. Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's a little twist &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Let's say instead of multiplying everything by .85 of the first value, I use a weight instead, so my new table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[Priority, Value, Weight&lt;/P&gt;&lt;P&gt;1, 50, 1&lt;/P&gt;&lt;P&gt;1, 50, 1&lt;/P&gt;&lt;P&gt;2, 45, .8&lt;/P&gt;&lt;P&gt;2, 45, .8&lt;/P&gt;&lt;P&gt;3, 40, .5&lt;/P&gt;&lt;P&gt;3, 40, .5&lt;/P&gt;&lt;P&gt;4, 30, .2&lt;/P&gt;&lt;P&gt;4, 30, .2&lt;/P&gt;&lt;P&gt;5, 20, .1&lt;/P&gt;&lt;P&gt;5, 20, .1&lt;/P&gt;&lt;P&gt;6, 10, .1&lt;/P&gt;&lt;P&gt;6, 10, .1&lt;/P&gt;&lt;P&gt;7, 5, .1&lt;/P&gt;&lt;P&gt;7, 5, .1&lt;/P&gt;&lt;P&gt;8, 3, .1&lt;/P&gt;&lt;P&gt;9, 2, .1&lt;/P&gt;&lt;P&gt;10, 1, .1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I thought I could just replace the .85 in your valcalc expression with Weight, but it only shows the first value then everything else is null. How could I modify that expression to use a pre-defined weight instead of my hardcoded 85%?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 03:24:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-02T03:24:42Z</dc:date>
    <item>
      <title>Inter-record functions question</title>
      <link>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840791#M295501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I have a bar graph with the X-axis sorted by priority. I am expecting the graph to have the largest Y-values for the highest priority (lowest integer value). So I'm expecting the left side of the graph to have the highest values and for it to taper off to the right as you go down priority.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to draw a second line on the graph that shows the expected values based on a weight, where I take 85% of the first value, and the second should be 85% of that, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's say my data table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[Priority, Value&lt;/P&gt;&lt;P&gt;1, 50&lt;/P&gt;&lt;P&gt;1, 50&lt;/P&gt;&lt;P&gt;2, 45&lt;/P&gt;&lt;P&gt;2, 45&lt;/P&gt;&lt;P&gt;3, 40&lt;/P&gt;&lt;P&gt;3, 40&lt;/P&gt;&lt;P&gt;4, 30&lt;/P&gt;&lt;P&gt;4, 30&lt;/P&gt;&lt;P&gt;5, 20&lt;/P&gt;&lt;P&gt;5, 20&lt;/P&gt;&lt;P&gt;6, 10&lt;/P&gt;&lt;P&gt;6, 10&lt;/P&gt;&lt;P&gt;7, 5&lt;/P&gt;&lt;P&gt;7, 5&lt;/P&gt;&lt;P&gt;8, 3&lt;/P&gt;&lt;P&gt;9, 2&lt;/P&gt;&lt;P&gt;10, 1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have a chart where the dimension is Priority, and the expression is Sum(Value). This will create a nice decreasing graph. I want to create a second expression where the value for X=1 is 100, X=2 is 100*.85 = 85, X=3 is 100*.85*.85 = 72.25, and so on like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X | Value&lt;/P&gt;&lt;P&gt;1 | 100&lt;/P&gt;&lt;P&gt;2 | 85&lt;/P&gt;&lt;P&gt;3 | 72.25&lt;/P&gt;&lt;P&gt;4 | 61.41&lt;/P&gt;&lt;P&gt;5 | 52.2&lt;/P&gt;&lt;P&gt;6 | 44.37&lt;/P&gt;&lt;P&gt;7 | 37.71&lt;/P&gt;&lt;P&gt;8 | 32.06&lt;/P&gt;&lt;P&gt;9 | 27.25&lt;/P&gt;&lt;P&gt;10 | 23.16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make this expression that keys off of the first value in the previous expression, and sequentially multiplies that value times 85%?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:27:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840791#M295501</guid>
      <dc:creator />
      <dc:date>2015-04-01T21:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inter-record functions question</title>
      <link>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840792#M295502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grtz Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 21:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840792#M295502</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2015-04-01T21:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inter-record functions question</title>
      <link>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840793#M295503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! That's exactly what I was asking for. Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here's a little twist &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Let's say instead of multiplying everything by .85 of the first value, I use a weight instead, so my new table looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[Priority, Value, Weight&lt;/P&gt;&lt;P&gt;1, 50, 1&lt;/P&gt;&lt;P&gt;1, 50, 1&lt;/P&gt;&lt;P&gt;2, 45, .8&lt;/P&gt;&lt;P&gt;2, 45, .8&lt;/P&gt;&lt;P&gt;3, 40, .5&lt;/P&gt;&lt;P&gt;3, 40, .5&lt;/P&gt;&lt;P&gt;4, 30, .2&lt;/P&gt;&lt;P&gt;4, 30, .2&lt;/P&gt;&lt;P&gt;5, 20, .1&lt;/P&gt;&lt;P&gt;5, 20, .1&lt;/P&gt;&lt;P&gt;6, 10, .1&lt;/P&gt;&lt;P&gt;6, 10, .1&lt;/P&gt;&lt;P&gt;7, 5, .1&lt;/P&gt;&lt;P&gt;7, 5, .1&lt;/P&gt;&lt;P&gt;8, 3, .1&lt;/P&gt;&lt;P&gt;9, 2, .1&lt;/P&gt;&lt;P&gt;10, 1, .1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I thought I could just replace the .85 in your valcalc expression with Weight, but it only shows the first value then everything else is null. How could I modify that expression to use a pre-defined weight instead of my hardcoded 85%?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 03:24:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inter-record-functions-question/m-p/840793#M295503</guid>
      <dc:creator />
      <dc:date>2015-04-02T03:24:42Z</dc:date>
    </item>
  </channel>
</rss>

