<?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/1829800#M1214377</link>
    <description>&lt;P&gt;hi Dwyane,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is the solution you are looking for: in the dimensions of the graph there is Customer Name and Month, in the expression&lt;BR /&gt;1. aggr (NODISTINCT FirstSortedValue (Collected, -Month), [Customer Name]) returns the value of the collection of the last month&lt;BR /&gt;2. sum (Paid) sum the payments&lt;BR /&gt;3. sum (Paid)&lt;BR /&gt;/&lt;BR /&gt;aggr (NODISTINCT FirstSortedValue (Collected, -Month), [Customer Name]) is the expression you need&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tincholiver_0-1629380053900.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60391iCBF3B6953560CB22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tincholiver_0-1629380053900.png" alt="tincholiver_0-1629380053900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tincholiver_1-1629380077156.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60392i0A0CF290A8AF41E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tincholiver_1-1629380077156.png" alt="tincholiver_1-1629380077156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 13:34:44 GMT</pubDate>
    <dc:creator>tincholiver</dc:creator>
    <dc:date>2021-08-19T13:34:44Z</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/1829473#M1214331</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;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Customer Name&lt;/TD&gt;&lt;TD&gt;Paid&lt;/TD&gt;&lt;TD&gt;Collected&lt;/TD&gt;&lt;TD&gt;Actual&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;1050&lt;/TD&gt;&lt;TD&gt;19%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;1100&lt;/TD&gt;&lt;TD&gt;27%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Kirk Polly&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;1150&lt;/TD&gt;&lt;TD&gt;22%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Kirk Polly&lt;/TD&gt;&lt;TD&gt;355&lt;/TD&gt;&lt;TD&gt;1200&lt;/TD&gt;&lt;TD&gt;30%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Kirk Polly&lt;/TD&gt;&lt;TD&gt;865&lt;/TD&gt;&lt;TD&gt;1250&lt;/TD&gt;&lt;TD&gt;69%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;The actual column is calculated by Collected divided by Paid. What i want to do is identify the max month so int examples is 3 for both customers and then use the collected amount for the max month and use that value to&amp;nbsp; divide by the paid for each month. So month 1 for John Smith would be 300/1100 month 2 would be 200/1100&amp;nbsp; &amp;nbsp;Any idea how i can do this in a line chart where i plot the calculated actual using the month and customer name as dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 14:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1829473#M1214331</guid>
      <dc:creator>Dwyane</dc:creator>
      <dc:date>2021-08-18T14:31:23Z</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/1829800#M1214377</link>
      <description>&lt;P&gt;hi Dwyane,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is the solution you are looking for: in the dimensions of the graph there is Customer Name and Month, in the expression&lt;BR /&gt;1. aggr (NODISTINCT FirstSortedValue (Collected, -Month), [Customer Name]) returns the value of the collection of the last month&lt;BR /&gt;2. sum (Paid) sum the payments&lt;BR /&gt;3. sum (Paid)&lt;BR /&gt;/&lt;BR /&gt;aggr (NODISTINCT FirstSortedValue (Collected, -Month), [Customer Name]) is the expression you need&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tincholiver_0-1629380053900.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60391iCBF3B6953560CB22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tincholiver_0-1629380053900.png" alt="tincholiver_0-1629380053900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tincholiver_1-1629380077156.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60392i0A0CF290A8AF41E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tincholiver_1-1629380077156.png" alt="tincholiver_1-1629380077156.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1829800#M1214377</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2021-08-19T13:34:44Z</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/1829803#M1214378</link>
      <description>&lt;P&gt;If you put the month as a dimension first and then the name of the client you would have something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tincholiver_2-1629380218192.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60393i1B40E5081FA0416E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tincholiver_2-1629380218192.png" alt="tincholiver_2-1629380218192.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1829803#M1214378</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2021-08-19T13:37:05Z</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/1829807#M1214379</link>
      <description>&lt;P&gt;Sorry, you were looking to graph the data in lines, it would look something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tincholiver_0-1629380854783.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60394i2F749D4D2C5B9765/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tincholiver_0-1629380854783.png" alt="tincholiver_0-1629380854783.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Usin-max-value-in-a-linechart/m-p/1829807#M1214379</guid>
      <dc:creator>tincholiver</dc:creator>
      <dc:date>2021-08-19T13:47:42Z</dc:date>
    </item>
  </channel>
</rss>

