<?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: sum in pivot table with RowNo () in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567557#M743223</link>
    <description>&lt;P&gt;No.&lt;BR /&gt;&amp;nbsp; the result I want is the one shown in the "Valore desiderato" column that represents the sum of "Tot_Giorni" and "Val_Row_1 ".&lt;BR /&gt;Using RowNo () in the "Val_Row_1" column in a pivot, when I add the expressions of the two columns, even if I get the correct value at the row level (in the example the value 12) the total for Item always returns me 195 and not 202 which is the desired value.&lt;BR /&gt;in essence,&lt;BR /&gt;// Expression of "Tot_Giorni"&lt;BR /&gt;&amp;nbsp; sum (if (NextDate&amp;gt; (vDataMax),&lt;BR /&gt;(vDataMax-Data), Day))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; +&lt;BR /&gt;// Expression of "Val_Row_1&lt;BR /&gt;&amp;nbsp; if (Data = Top (Data), sum (Data-vDataMin), 0))&lt;BR /&gt;works on the lines but not for the total for Item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 11:22:18 GMT</pubDate>
    <dc:creator>francofiorillo</dc:creator>
    <dc:date>2019-04-10T11:22:18Z</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/1567011#M743221</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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567011#M743221</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</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/1567414#M743222</link>
      <description>Hello,&lt;BR /&gt;so you want to calculate each Val_Row_1 like in the first row?</description>
      <pubDate>Wed, 10 Apr 2019 08:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567414#M743222</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-10T08:20:04Z</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/1567557#M743223</link>
      <description>&lt;P&gt;No.&lt;BR /&gt;&amp;nbsp; the result I want is the one shown in the "Valore desiderato" column that represents the sum of "Tot_Giorni" and "Val_Row_1 ".&lt;BR /&gt;Using RowNo () in the "Val_Row_1" column in a pivot, when I add the expressions of the two columns, even if I get the correct value at the row level (in the example the value 12) the total for Item always returns me 195 and not 202 which is the desired value.&lt;BR /&gt;in essence,&lt;BR /&gt;// Expression of "Tot_Giorni"&lt;BR /&gt;&amp;nbsp; sum (if (NextDate&amp;gt; (vDataMax),&lt;BR /&gt;(vDataMax-Data), Day))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; +&lt;BR /&gt;// Expression of "Val_Row_1&lt;BR /&gt;&amp;nbsp; if (Data = Top (Data), sum (Data-vDataMin), 0))&lt;BR /&gt;works on the lines but not for the total for Item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 11:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567557#M743223</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2019-04-10T11:22:18Z</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/1567606#M743224</link>
      <description>For column "Valore desiderato" try&lt;BR /&gt;=RangeSum(Tot_Giorni,Val_Row_1)</description>
      <pubDate>Wed, 10 Apr 2019 12:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567606#M743224</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-10T12:06:11Z</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/1567658#M743225</link>
      <description>&lt;P&gt;No, unfortunately I always get the same unwanted result.&lt;BR /&gt;I want the total for Item to be 202 and not 195 in the "Valore desiderato" column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567658#M743225</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2019-04-10T13:22:52Z</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/1567660#M743226</link>
      <description>May you share the whole file and i will see what i can do.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 10 Apr 2019 13:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567660#M743226</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-10T13:28:41Z</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/1567676#M743227</link>
      <description>&lt;P&gt;here is the file.&lt;BR /&gt;I only uploaded some records.&lt;BR /&gt;Meanwhile, I thank you for the support you are providing.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567676#M743227</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2019-04-10T13:48:05Z</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/1567677#M743228</link>
      <description>&lt;P&gt;&lt;SPAN&gt;here is the file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I only uploaded some records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile, I thank you for the support you are providing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567677#M743228</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2019-04-10T13:49:03Z</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/1567678#M743229</link>
      <description>I have to enter username and password?</description>
      <pubDate>Wed, 10 Apr 2019 13:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567678#M743229</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-10T13:50:08Z</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/1567687#M743230</link>
      <description>&lt;P&gt;admin usr&lt;/P&gt;&lt;P&gt;V1etat0 psw&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 13:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sum-in-pivot-table-with-RowNo/m-p/1567687#M743230</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2019-04-10T13:58:08Z</dc:date>
    </item>
  </channel>
</rss>

