<?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: Use value from another row in calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429976#M568042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are my favorite person today!&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;P&gt;Heather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 20:48:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-13T20:48:47Z</dc:date>
    <item>
      <title>Use value from another row in calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429972#M568038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a straight table with two dimensions, Line Number and Line Description, the expresssion sums Balance.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a second expression that uses the Balance sum from the row where Line Description = 'Net Sales' to calculate a percent value.&amp;nbsp; So, on the row where Line Description = Product Sales it would look something like SUM(Balance) / [SUM(Balance) from Net Sales].&amp;nbsp; I can't use Above or Below as the number of rows is not static.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 18:02:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429972#M568038</guid>
      <dc:creator />
      <dc:date>2012-11-13T18:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use value from another row in calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429973#M568039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. You may use Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SUM(Balance) / [SUM({&amp;lt;[Line Description]={'Net Sales'}&amp;gt;} Balance)]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 18:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429973#M568039</guid>
      <dc:creator>diegofcaivano</dc:creator>
      <dc:date>2012-11-13T18:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use value from another row in calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429974#M568040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Appreciate the quick reply!&amp;nbsp; This doesn't work as it calculates the second part as 0 except where the dimension matches the Set Analysis.&amp;nbsp; So, if I only do the [SUM({&amp;lt;[Line Description]={'Net Sales'}&amp;gt;} Balance)] part all values come up as zero except the row where the Line Desc is actual Net Sales.&amp;nbsp; I am assuming Set Analysis would still honor the dimensions so it cannot do this calculation.&amp;nbsp; Thanks though.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 18:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429974#M568040</guid>
      <dc:creator />
      <dc:date>2012-11-13T18:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use value from another row in calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429975#M568041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the TOTAL qualifier along with the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(Balance) / [SUM({&amp;lt;[Line Description]={'Net Sales'}&amp;gt;} TOTAL Balance)]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should disregard the dimensions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 20:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429975#M568041</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-11-13T20:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use value from another row in calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429976#M568042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jason, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are my favorite person today!&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest regards,&lt;/P&gt;&lt;P&gt;Heather&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 20:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429976#M568042</guid>
      <dc:creator />
      <dc:date>2012-11-13T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use value from another row in calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429977#M568043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're very welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 21:10:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-value-from-another-row-in-calculation/m-p/429977#M568043</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-11-13T21:10:40Z</dc:date>
    </item>
  </channel>
</rss>

