<?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 sum in pivot table with RowNo () in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567008#M743247</link>
    <description>&lt;P&gt;Hello.&lt;BR /&gt;I need your kind help.&lt;BR /&gt;I have a pivot table, with three dimensions and different expressions.&lt;BR /&gt;With two variables, vDataMin and vDataMax, I limit the display of the lines only to those that have a value of &amp;lt;Data&amp;gt; included between these values.&lt;BR /&gt;On each line I calculate the number of days between the current line and the next line (column &amp;lt;Tot_Giorni&amp;gt;)&lt;BR /&gt;With the following expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum (If (Data&amp;gt; = (vDataMin) and Data &amp;lt;= (vDataMax),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NextDate &amp;lt;= (vDataMax),&lt;BR /&gt;&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; Day,&lt;BR /&gt;&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; (VDataMax-Data)&lt;BR /&gt;&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;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;to this value I should add, for each article, the value present only in the first row (Val_Row_1 = 7, for example for article 40101653).&lt;BR /&gt;this value is calculated with the following expression&lt;BR /&gt;if (RowNo () = 1, sum (Data-vDataMin), 0)&lt;/P&gt;&lt;P&gt;having to use the pivot, in making the sum, while obtaining a correct value on the line (12 instead of 5) I cannot get a total of days for the correct article. In fact, for example, for the first article I always get 195 and not 202 (correct value)&lt;BR /&gt;can you suggest me how to write the sum of the columns for the pivot?&lt;BR /&gt;thank you in advance.&lt;BR /&gt;regards&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:54:42 GMT</pubDate>
    <dc:creator>francofiorillo</dc:creator>
    <dc:date>2024-11-16T03:54:42Z</dc:date>
    <item>
      <title>sum in pivot table with RowNo ()</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567008#M743247</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;I need your kind help.&lt;BR /&gt;I have a pivot table, with three dimensions and different expressions.&lt;BR /&gt;With two variables, vDataMin and vDataMax, I limit the display of the lines only to those that have a value of &amp;lt;Data&amp;gt; included between these values.&lt;BR /&gt;On each line I calculate the number of days between the current line and the next line (column &amp;lt;Tot_Giorni&amp;gt;)&lt;BR /&gt;With the following expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sum (If (Data&amp;gt; = (vDataMin) and Data &amp;lt;= (vDataMax),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (NextDate &amp;lt;= (vDataMax),&lt;BR /&gt;&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; Day,&lt;BR /&gt;&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; (VDataMax-Data)&lt;BR /&gt;&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;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;&lt;P&gt;to this value I should add, for each article, the value present only in the first row (Val_Row_1 = 7, for example for article 40101653).&lt;BR /&gt;this value is calculated with the following expression&lt;BR /&gt;if (RowNo () = 1, sum (Data-vDataMin), 0)&lt;/P&gt;&lt;P&gt;having to use the pivot, in making the sum, while obtaining a correct value on the line (12 instead of 5) I cannot get a total of days for the correct article. In fact, for example, for the first article I always get 195 and not 202 (correct value)&lt;BR /&gt;can you suggest me how to write the sum of the columns for the pivot?&lt;BR /&gt;thank you in advance.&lt;BR /&gt;regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567008#M743247</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2024-11-16T03:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: sum in pivot table with RowNo ()</title>
      <link>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1572995#M743248</link>
      <description>Hi my friend.&lt;BR /&gt;Try: RowNo(TOTAL)&lt;BR /&gt;&lt;BR /&gt;Otherwise, upload your app to better help.</description>
      <pubDate>Thu, 25 Apr 2019 01:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1572995#M743248</guid>
      <dc:creator>lfetensini</dc:creator>
      <dc:date>2019-04-25T01:21:41Z</dc:date>
    </item>
  </channel>
</rss>

