<?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 Line chart does not show correct data from pivot table - RangeSum() and Above() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Line-chart-does-not-show-correct-data-from-pivot-table-RangeSum/m-p/1809256#M65926</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the next pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55333i351356330184AB74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; where the column number 8 is calculated as column7/column3&lt;/P&gt;&lt;P&gt;This columns (3 and 7) are the sum of the above per year&lt;/P&gt;&lt;P&gt;The function is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(RangeSum(Above((Count (Legajo) * 9 - Fridays),0,12)))/(RangeSum(Above(((count(distinct(leg_numero)) - count(distinct(if([leg_fecegr.autoCalendar.Date]&amp;lt;[Fecha.autoCalendar.Date],leg_numero))) - count(distinct(if([leg_fecing.autoCalendar.Date]&amp;gt;[Fecha.autoCalendar.Date],leg_numero)))) * (Days_w*9 - Fridays)),0,12)))&lt;/P&gt;&lt;P&gt;This is working well, the problem is when I want to represent the column number 8 as a line chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Line chart.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55334i9CD105D06897C69C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Line chart.PNG" alt="Line chart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The values that&amp;nbsp;are shown here are not the same that i have in the pivot table and i dont understand why.&lt;/P&gt;&lt;P&gt;Later, i found out that if i group by year and use the months as the line, the values are the expected, but i want to see them as is shown in the picture above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the line graph group by year and using month as line:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="line chart 2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55335i40CF46F872347421/image-size/medium?v=v2&amp;amp;px=400" role="button" title="line chart 2.PNG" alt="line chart 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think it may be because of the rangesum or the above, but im not sure.&lt;/P&gt;&lt;P&gt;Is there any reason why the values are not showing correctly in the first option? Because the funcion is the same!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Caro&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 20:40:09 GMT</pubDate>
    <dc:creator>carotravaglini</dc:creator>
    <dc:date>2021-12-22T20:40:09Z</dc:date>
    <item>
      <title>Line chart does not show correct data from pivot table - RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-does-not-show-correct-data-from-pivot-table-RangeSum/m-p/1809256#M65926</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the next pivot table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55333i351356330184AB74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; where the column number 8 is calculated as column7/column3&lt;/P&gt;&lt;P&gt;This columns (3 and 7) are the sum of the above per year&lt;/P&gt;&lt;P&gt;The function is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(RangeSum(Above((Count (Legajo) * 9 - Fridays),0,12)))/(RangeSum(Above(((count(distinct(leg_numero)) - count(distinct(if([leg_fecegr.autoCalendar.Date]&amp;lt;[Fecha.autoCalendar.Date],leg_numero))) - count(distinct(if([leg_fecing.autoCalendar.Date]&amp;gt;[Fecha.autoCalendar.Date],leg_numero)))) * (Days_w*9 - Fridays)),0,12)))&lt;/P&gt;&lt;P&gt;This is working well, the problem is when I want to represent the column number 8 as a line chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Line chart.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55334i9CD105D06897C69C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Line chart.PNG" alt="Line chart.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The values that&amp;nbsp;are shown here are not the same that i have in the pivot table and i dont understand why.&lt;/P&gt;&lt;P&gt;Later, i found out that if i group by year and use the months as the line, the values are the expected, but i want to see them as is shown in the picture above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the line graph group by year and using month as line:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="line chart 2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55335i40CF46F872347421/image-size/medium?v=v2&amp;amp;px=400" role="button" title="line chart 2.PNG" alt="line chart 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think it may be because of the rangesum or the above, but im not sure.&lt;/P&gt;&lt;P&gt;Is there any reason why the values are not showing correctly in the first option? Because the funcion is the same!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Caro&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 20:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-does-not-show-correct-data-from-pivot-table-RangeSum/m-p/1809256#M65926</guid>
      <dc:creator>carotravaglini</dc:creator>
      <dc:date>2021-12-22T20:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart does not show correct data from pivot table - RangeSum() and Above()</title>
      <link>https://community.qlik.com/t5/App-Development/Line-chart-does-not-show-correct-data-from-pivot-table-RangeSum/m-p/1811076#M66108</link>
      <description>&lt;P&gt;I still haven't found the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 13:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-chart-does-not-show-correct-data-from-pivot-table-RangeSum/m-p/1811076#M66108</guid>
      <dc:creator>carotravaglini</dc:creator>
      <dc:date>2021-05-27T13:59:53Z</dc:date>
    </item>
  </channel>
</rss>

