<?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: Usin max value in a linechart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831912#M1214614</link>
    <description>&lt;P&gt;To calculate the value of the latest month you can use the firstsortedvalue(Paid,-Month) function. You will probably want to use the TOTAL keyword as well, as you do not want to calculate the value per Month in your chart. It will be like this: firstsortedvalue(TOTAL Paid, -Month).&lt;/P&gt;&lt;P&gt;If you have more than one lines in your chart then you will need to ignore that field in your TOTAL. Assuming you have one line per [Customer Name] it will look like this: firstsortedvalue(TOTAL &amp;lt;[Customer Name]&amp;gt; Paid, -Month).&lt;/P&gt;&lt;P&gt;So your final expression might look like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Collected)/firstsortedvalue(TOTAL &amp;lt;[Customer Name]&amp;gt; Paid, -Month)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Aug 2021 04:44:35 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-08-28T04:44:35Z</dc:date>
    <item>
      <title>Usin max value in a linechart</title>
      <link>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1829428#M1214320</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a table like this&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Month Customer Name Collected Paid Actual&lt;BR /&gt;2 John Smith 100 1000 10%&lt;BR /&gt;3 John Smith 200 1050 19%&lt;BR /&gt;4 John Smith 300 1100 27%&lt;BR /&gt;5 John Smith 400 1150 35%&lt;BR /&gt;6 John Smith 500 1200 42%&lt;BR /&gt;7 John Smith 600 1250 48%&lt;BR /&gt;8 John Smith 700 1300 54%&lt;BR /&gt;9 John Smith 800 1350 59%&lt;BR /&gt;10 John Smith 900 1400 64%&lt;BR /&gt;11 John Smith 1000 1450 69%&lt;BR /&gt;12 John Smith 1100 1500 73%&lt;BR /&gt;13 John Smith 1200 1550 77%&lt;BR /&gt;14 John Smith 1300 1600 81%&lt;BR /&gt;15 John Smith 1400 1650 85%&lt;BR /&gt;16 John Smith 1500 1700 88%&lt;BR /&gt;17 John Smith 1600 1750 91%&lt;BR /&gt;18 John Smith 1700 1800 94%&lt;BR /&gt;19 John Smith 1800 1850 97%&lt;BR /&gt;20 John Smith 1900 1900 100%&lt;BR /&gt;21 John Smith 2000 1950 103%&lt;/P&gt;&lt;P&gt;The actual column is calculated by Collected divided by Paid. What i want to actually do is the paid value from the last month so&amp;nbsp; in this case month 21 value 1950 to calculated for each month. So for example month 2 will be 100/1950 month 3 will be 150/1950. Any idea how i can do this in a line chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1829428#M1214320</guid>
      <dc:creator>Dwyane</dc:creator>
      <dc:date>2021-08-18T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Usin max value in a linechart</title>
      <link>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831904#M1214611</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138564"&gt;@Dwyane&lt;/a&gt;&amp;nbsp;you may want to try something like below:&lt;/P&gt;&lt;P&gt;= Sum(Collected)/Max(TOTAL [Paid Actual]) in your straight table expression.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 22:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831904#M1214611</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2021-08-27T22:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Usin max value in a linechart</title>
      <link>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831909#M1214612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use variable and store the max month value like below&lt;/P&gt;&lt;P&gt;vMaxMonthValue &lt;STRONG&gt;= Sum({&amp;lt;Month ={$(=Max(Month))}&amp;gt;}Paid)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, here "=", calculates the values and store in the variable.&lt;/P&gt;&lt;P&gt;In the line chart, you can use like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;= Sum(Collected)/$(vMaxMonthValue)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 00:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831909#M1214612</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-08-28T00:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Usin max value in a linechart</title>
      <link>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831912#M1214614</link>
      <description>&lt;P&gt;To calculate the value of the latest month you can use the firstsortedvalue(Paid,-Month) function. You will probably want to use the TOTAL keyword as well, as you do not want to calculate the value per Month in your chart. It will be like this: firstsortedvalue(TOTAL Paid, -Month).&lt;/P&gt;&lt;P&gt;If you have more than one lines in your chart then you will need to ignore that field in your TOTAL. Assuming you have one line per [Customer Name] it will look like this: firstsortedvalue(TOTAL &amp;lt;[Customer Name]&amp;gt; Paid, -Month).&lt;/P&gt;&lt;P&gt;So your final expression might look like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Collected)/firstsortedvalue(TOTAL &amp;lt;[Customer Name]&amp;gt; Paid, -Month)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 04:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1831912#M1214614</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-08-28T04:44:35Z</dc:date>
    </item>
  </channel>
</rss>

