<?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: Multiple if/else calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230077#M848225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The raw data looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Raw data.PNG" class="jive-image image-1" src="/legacyfs/online/156815_Raw data.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 09:07:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-20T09:07:31Z</dc:date>
    <item>
      <title>Multiple if/else calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230075#M848223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to QlikView so I hope you can help me out! I need to calculate the price index as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;Selected month&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966; text-decoration: underline;"&gt;&lt;SPAN style="color: #008000; text-decoration: underline;"&gt;Previous month compared to selected month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If revenue &lt;SPAN style="font-size: 13.3333px;"&gt;nov.'16&lt;/SPAN&gt; * &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³ = 0, then 0&lt;BR /&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else revenue nov.'16 / &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³ n&lt;SPAN style="font-size: 13.3333px;"&gt;ov.'16&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-size: 13.3333px; font-family: arial, sans-serif;"&gt;2. If &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;total 2016 &lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³&lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt; = 0, then 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;revenue&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt; &lt;/EM&gt;* &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;m³&lt;/EM&gt;&lt;/SPAN&gt; = 0, then show the value from calculation 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;r&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc99ff; font-size: 13.3333px;"&gt;&lt;EM&gt;evenue&lt;/EM&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;/ &lt;/SPAN&gt;&lt;SPAN style="color: #cc99ff; font-size: small; font-family: arial, sans-serif;"&gt;&lt;EM&gt;m³&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-size: 13.3333px; font-family: arial, sans-serif;"&gt;3. If calculation 2 = 0 or when (&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;calculation 2&lt;/EM&gt;&lt;/SPAN&gt; - &lt;SPAN style="color: #008000; text-decoration: underline;"&gt;calculation 2&lt;/SPAN&gt;) = 0, then 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-size: 13.3333px; font-family: arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else (&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;calculation 2&lt;/EM&gt;&lt;/SPAN&gt; - &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: 13.3333px;"&gt;&lt;SPAN style="color: #008000; text-decoration: underline;"&gt;calculation 2&lt;/SPAN&gt;) / &lt;SPAN style="color: #008000; font-size: 13.3333px; font-family: arial, sans-serif; text-decoration: underline;"&gt;calculation 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is followed by some extra calculations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A. (Sumproduct all rows from calculation 1 with &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;total 2016 &lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³)&lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt; / total 2016 &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-size: small; font-family: arial, sans-serif;"&gt;B. (Sumproduct all rows from &lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;calculation 2&lt;/EM&gt;&lt;/SPAN&gt; with &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;total 2016 &lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³) &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;/ total 2016 &lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;m³&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-size: small; font-family: arial, sans-serif;"&gt;C. 100 + (&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;calculation B&lt;/EM&gt;&lt;/SPAN&gt; / &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;calculation A&lt;/SPAN&gt; -1) * 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;D. If &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;calculation C&lt;/EM&gt;&lt;/SPAN&gt; = 0, then 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else (&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #cc99ff;"&gt;&lt;EM&gt;calculation C&lt;/EM&gt;&lt;/SPAN&gt; - &lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small;"&gt;&lt;SPAN style="color: #008000; text-decoration: underline;"&gt;calculation C&lt;/SPAN&gt;) / 100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is currently all in Excel (see attachment) but I want to get it done in QlikView. Does anyone have any ideas? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230075#M848223</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if/else calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230076#M848224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the raw data behind this kind of output you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 16:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230076#M848224</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-17T16:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple if/else calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230077#M848225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The raw data looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Raw data.PNG" class="jive-image image-1" src="/legacyfs/online/156815_Raw data.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it's useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 09:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-if-else-calculations/m-p/1230077#M848225</guid>
      <dc:creator />
      <dc:date>2017-03-20T09:07:31Z</dc:date>
    </item>
  </channel>
</rss>

