<?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: Calculating total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451173#M434325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in your example the actuals for future months is always 0 which you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression should work:&lt;/P&gt;&lt;P&gt;if(Sum(eUSD_Amt) &amp;gt; 0, Sum(eUSD_Amt), sum(oUSD_Amt))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jf you set a color expression with the same rules you can differentiate visually also on if you are looking at an actual or a forecast.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 11:25:18 GMT</pubDate>
    <dc:creator>niclaz79</dc:creator>
    <dc:date>2017-08-23T11:25:18Z</dc:date>
    <item>
      <title>Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451171#M434323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on an app which has the following fields: Functional Area, Sub Functional Area and 3 different costs- Actuals (eUSD_Amt), budget(bUSD_Amt) and outlook (oUSD_Amt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have data for all 12 months of 2017 for outlook. But for Actuals, I have data till July only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to show the sum of Actuals for all the 12 months. Since I have data only till July, I need to add the corresponding months' outlook data for missing months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;Jan(eUSD_Amt)+ Feb&lt;SPAN style="font-size: 13.3333px;"&gt;(eUSD_Amt) + Mar&lt;SPAN style="font-size: 13.3333px;"&gt;(eUSD_Amt)+ Apr&lt;SPAN style="font-size: 13.3333px;"&gt;(eUSD_Amt)+ May&lt;SPAN style="font-size: 13.3333px;"&gt;(eUSD_Amt)+ Jun&lt;SPAN style="font-size: 13.3333px;"&gt;(eUSD_Amt)+ Jul&lt;SPAN style="font-size: 13.3333px;"&gt;(eUSD_Amt)+ Aug&lt;SPAN style="font-size: 13.3333px;"&gt;(oUSD_Amt)+ Sep&lt;SPAN style="font-size: 13.3333px;"&gt;(oUSD_Amt)+ Oct&lt;SPAN style="font-size: 13.3333px;"&gt;(oUSD_Amt)+ Dec&lt;SPAN style="font-size: 13.3333px;"&gt;(oUSD_Amt)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;We would be getting the remaining months Actuals (eUSD_Amt) in due course of the remaining part of the year. Till then, I need to use the outlook (oUSD_Amt) for unavailable months' data to calculate the total Actuals for entire 12 months.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I hope I have made my requirement clear. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Yash&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451171#M434323</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2017-08-23T11:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451172#M434324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(sum({&amp;lt;monthfield ={'jan','feb','mar','apr','may','jun'}&amp;gt;} TOTAL eUSD_amt), sum({&amp;lt;monthfield = {'jul','aug','sep','oct','dec'}&amp;gt;} TOTAL oUSD_amt))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451172#M434324</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-23T11:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451173#M434325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, in your example the actuals for future months is always 0 which you can use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression should work:&lt;/P&gt;&lt;P&gt;if(Sum(eUSD_Amt) &amp;gt; 0, Sum(eUSD_Amt), sum(oUSD_Amt))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;jf you set a color expression with the same rules you can differentiate visually also on if you are looking at an actual or a forecast.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451173#M434325</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2017-08-23T11:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451174#M434326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451174#M434326</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2017-08-23T11:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451175#M434327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Year = {$(=Max(Year))}&amp;gt;}Aggr(If(Sum(eUSD_Amt) = 0, Sum(oUSD_Amt), Sum(eUSD_Amt)), Year, Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174361_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451175#M434327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-23T11:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451176#M434328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using mobile now? Just guessing? Looks like sunny share the image. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451176#M434328</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-23T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451177#M434329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or may be just this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;sum(AGGR(if(sum(eUSD_Amt)=0,sum(oUSD_Amt),sum(eUSD_Amt)),Year,Month))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451177#M434329</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-08-23T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451178#M434330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;The total will be incorrect unless the OP is willing to switch to straight table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451178#M434330</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-23T11:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451179#M434331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you...that worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 12:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451179#M434331</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2017-08-23T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451180#M434332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the expression if I want to show the actual amount for individual months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if Actual data is not available for the month of January, it should show the corresponding Outlook Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a new requirement where in along with Actual total, I need to show the individual months in text boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451180#M434332</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2017-09-12T09:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating total</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451181#M434333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;For example, if Actual data is not available for the month of January, it should show the corresponding Outlook Amount.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Isn't that what it is doing today? I am not sure I completely understand your need.... Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 11:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-total/m-p/1451181#M434333</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-12T11:24:29Z</dc:date>
    </item>
  </channel>
</rss>

