<?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: Subtract every row by specific row value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606657#M44950</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;It didn't work, but we can keep on this in other question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 20:44:21 GMT</pubDate>
    <dc:creator>jaimeoconor</dc:creator>
    <dc:date>2019-07-26T20:44:21Z</dc:date>
    <item>
      <title>Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606596#M44934</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have, for example, the following data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Asset&amp;nbsp; &amp;nbsp;Performance&amp;nbsp;&lt;/P&gt;&lt;P&gt;Asset 1&amp;nbsp; &amp;nbsp; &amp;nbsp;5%&lt;/P&gt;&lt;P&gt;Asset 2&amp;nbsp; &amp;nbsp; &amp;nbsp;3%&lt;/P&gt;&lt;P&gt;Asset 3&amp;nbsp; &amp;nbsp; &amp;nbsp;8%&lt;/P&gt;&lt;P&gt;Asset 4&amp;nbsp; &amp;nbsp; &amp;nbsp;10%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a table showing every Asset and the result of Asset x Performance - Asset 1 Performance. The result should be the following:&lt;/P&gt;&lt;P&gt;Asset 1&amp;nbsp; 0%&lt;/P&gt;&lt;P&gt;Asset 2&amp;nbsp; -2%&lt;/P&gt;&lt;P&gt;Asset 3&amp;nbsp; 3%&lt;/P&gt;&lt;P&gt;Asset 4&amp;nbsp; &amp;nbsp;5%&lt;/P&gt;&lt;P&gt;I wrote&amp;nbsp;Sum([Performance])-sum({&amp;lt;Asset={'Asset 1'}&amp;gt;}[Performance]) and, as a result, only Asset 1 is being subtracted.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606596#M44934</guid>
      <dc:creator>jaimeoconor</dc:creator>
      <dc:date>2024-11-16T05:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606607#M44936</link>
      <description>&lt;P&gt;You are missing the TOTAL qualifier from the second expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum([Performance]) - Sum(TOTAL {&amp;lt;Asset = {'Asset 1'}&amp;gt;}[Performance])&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 18:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606607#M44936</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-26T18:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606616#M44939</link>
      <description>&lt;P&gt;Thanks Suuny, it worked. Now I have an extra problem.&amp;nbsp;There&amp;nbsp;are Assets that have missing values, no performance instead of 0%. So, following the example, if Asset 5 has no performance, I need to see -5% as a result, but now I see nothing.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 18:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606616#M44939</guid>
      <dc:creator>jaimeoconor</dc:creator>
      <dc:date>2019-07-26T18:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606647#M44947</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeSum(
 Sum([Performance]),
-Sum(TOTAL {&amp;lt;Asset = {'Asset 1'}&amp;gt;}[Performance])
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606647#M44947</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-26T19:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606657#M44950</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;It didn't work, but we can keep on this in other question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606657#M44950</guid>
      <dc:creator>jaimeoconor</dc:creator>
      <dc:date>2019-07-26T20:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606951#M44997</link>
      <description>&lt;P&gt;Would you be able to share a sample to show what exactly you are seeing?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 11:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1606951#M44997</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-29T11:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1607078#M45013</link>
      <description>&lt;P&gt;Sorry that I'm not able to show the data. Using the formula above, I see this result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura.PNG" style="width: 761px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16146iAC698CD96C44ADE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura.PNG" alt="Captura.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The first row is OK, since it subtracted the Asset 1 - Asset 1=0. But in the rest of the rows, I would need to do the same in all the rows, not only the values that the row&amp;nbsp;has.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 14:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1607078#M45013</guid>
      <dc:creator>jaimeoconor</dc:creator>
      <dc:date>2019-07-29T14:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract every row by specific row value</title>
      <link>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1607098#M45014</link>
      <description>&lt;P&gt;Will be difficult to comment without seeing a sample and being able to play around with it.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 15:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Subtract-every-row-by-specific-row-value/m-p/1607098#M45014</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-07-29T15:24:45Z</dc:date>
    </item>
  </channel>
</rss>

