<?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 calculation problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286250#M106495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was good for one calculation. When I added the second calculation like "Sales + Forecast"&amp;nbsp; it gives you the total of all the rows including the "Sales - Forecast".&lt;/P&gt;&lt;P&gt;A little confusing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2011 19:29:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-31T19:29:25Z</dc:date>
    <item>
      <title>calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286246#M106491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at my qvw and let me know how I can have the calculation (the third line) under the right column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 17:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286246#M106491</guid>
      <dc:creator />
      <dc:date>2011-10-31T17:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286247#M106492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well there are probably multiple ways to achieve what I think you want, what about attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the script snippet that I think should calculate the Sales - Forecast figures and added &lt;/P&gt;&lt;P&gt;=if(dimensionality()=0,sum({&amp;lt;TYPE= {Sales}&amp;gt;} DD)-sum({&amp;lt;TYPE= {Forecast}&amp;gt;} DD),Sum(DD))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression (similar for the second), so I am using a subtotal line to display the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 18:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286247#M106492</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-31T18:17:50Z</dc:date>
    </item>
    <item>
      <title>calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286248#M106493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for replying,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I would have more calculation line , like: Sales * Forecast and&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales / Forecast&amp;nbsp;&amp;nbsp;&amp;nbsp; and so on. &lt;/P&gt;&lt;P&gt;I don't know how I can handle them with the expression.That's why I did it in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 18:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286248#M106493</guid>
      <dc:creator />
      <dc:date>2011-10-31T18:29:34Z</dc:date>
    </item>
    <item>
      <title>calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286249#M106494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, maybe try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * FROM&lt;/P&gt;&lt;P&gt;[.\1234.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;CONCATENATE (Table) LOAD&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;'Sales - Forecast' as TYPE,&lt;/P&gt;&lt;P&gt;sum(if(TYPE='Sales', DD, - DD)) as DD,&lt;/P&gt;&lt;P&gt;sum(if(TYPE='Sales', LBS, -LBS)) as LBS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Table group by DATE;&lt;/P&gt;&lt;P&gt;//WHERE match(TYPE,'Sales','Forecast');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 19:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286249#M106494</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-31T19:14:13Z</dc:date>
    </item>
    <item>
      <title>calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286250#M106495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was good for one calculation. When I added the second calculation like "Sales + Forecast"&amp;nbsp; it gives you the total of all the rows including the "Sales - Forecast".&lt;/P&gt;&lt;P&gt;A little confusing &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 19:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286250#M106495</guid>
      <dc:creator />
      <dc:date>2011-10-31T19:29:25Z</dc:date>
    </item>
    <item>
      <title>calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286251#M106496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, another measure should not be a big problem, have you tried like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * FROM&lt;/P&gt;&lt;P&gt;[.\1234.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table) LOAD&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;'Sales - Forecast' as TYPE,&lt;/P&gt;&lt;P&gt;sum(if(TYPE='Sales', DD, - DD)) as DD,&lt;/P&gt;&lt;P&gt;sum(if(TYPE='Sales', LBS, -LBS)) as LBS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Table WHERE match(TYPE,'Sales','Forecast') group by DATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table) LOAD&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;'Sales / Forecast %' as TYPE,&lt;/P&gt;&lt;P&gt;100*(sum(if(TYPE='Sales', DD)) / sum(if(TYPE='Forecast',DD))) as DD,&lt;/P&gt;&lt;P&gt;100*(sum(if(TYPE='Sales', LBS)) / sum(if(TYPE='Forecast',LBS))) as LBS&lt;/P&gt;&lt;P&gt;RESIDENT Table WHERE match(TYPE,'Sales','Forecast') group by DATE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 20:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286251#M106496</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-31T20:21:02Z</dc:date>
    </item>
    <item>
      <title>calculation problem</title>
      <link>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286252#M106497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks a lot Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was a great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 20:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculation-problem/m-p/286252#M106497</guid>
      <dc:creator />
      <dc:date>2011-10-31T20:29:44Z</dc:date>
    </item>
  </channel>
</rss>

