<?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: Help with IF condition for field total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94716#M757999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the response, the excess column is returning 0 for everything, i tried it on my dataset and it returns zero all through&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2018 21:20:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-04T21:20:11Z</dc:date>
    <item>
      <title>Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94711#M757994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212650_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will like to calculate the total excess column using the following condition&lt;/P&gt;&lt;P&gt;if sum of currentstock - forecast &amp;gt; 0, excess is currentstock - forecast, else its zero. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u can see the sum of excess is 85 which is less than the forecast, i want to compare their totals and if excess is less than forecast, i should get a zero as the forecast will eat up the excess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the total excess is bigger than the forecast, then the excess with multiply the corresponding cost to give excess dollar. I know its a lot but I will really appreciate your input. &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/Help-with-IF-condition-for-field-total/m-p/94711#M757994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94712#M757995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share some sample data as text rather than image. And your expected output you would want to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 19:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94712#M757995</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-04T19:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94713#M757996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a simple excel that explains what i want to do. Let me know if that clears it up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 20:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94713#M757996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T20:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94714#M757997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this what you are looking for -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 20:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94714#M757997</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2018-09-04T20:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94715#M757998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this what you are looking for? If yes, then add straight table with following dimensions and expression accordingly. &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/212653_Capture.PNG" style="height: 111px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim: &lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;StoreLocation&lt;/P&gt;&lt;P&gt;Forecast&lt;/P&gt;&lt;P&gt;Excess&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expr:&lt;/P&gt;&lt;P&gt;= IF(Sum(TOTAL &amp;lt;Product&amp;gt; CurrentStock) &amp;gt; Sum(TOTAL &amp;lt;Product&amp;gt; Forecast), 0, Sum(TOTAL &amp;lt;StoreLocation&amp;gt; CurrentStock) - Sum(TOTAL &amp;lt;Product&amp;gt; Forecast))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum(Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Num(fabs(Column(1) * Sum(Cost)), '$'&amp;amp;'(#,##0.00)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the labels for expressions accordingly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 20:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94715#M757998</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-04T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94716#M757999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the response, the excess column is returning 0 for everything, i tried it on my dataset and it returns zero all through&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 21:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94716#M757999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T21:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94717#M758000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot for your response, i tried your solution on my dataset and the excess column returned same value as the currentstock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 21:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94717#M758000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94718#M758001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this for excess? If not can you send us the screen shot where you can see the 0's coming&lt;/P&gt;&lt;P&gt;= IF(Sum(TOTAL &amp;lt;Product&amp;gt; CurrentStock) &amp;gt; Sum(TOTAL &amp;lt;Product&amp;gt; Forecast), 0, Sum(TOTAL &amp;lt;StoreLocation, Product&amp;gt; CurrentStock) - Sum(TOTAL &amp;lt;Product&amp;gt; Forecast))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 21:29:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94718#M758001</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-04T21:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94719#M758002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/212658_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i had to blur off some parts but its the same as i showed earlier, the material is the product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 21:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94719#M758002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T21:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF condition for field total</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94720#M758003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌you have lot of other dimensions here we have to look into your actual data set to come up with correct expression. Based on what you sent in your excel it works but if your dataset is different we might need to tweak around. Can you share your qvw file masking data. You can scramble your data using scramble technique. Check here &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2018 21:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-condition-for-field-total/m-p/94720#M758003</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-09-04T21:51:27Z</dc:date>
    </item>
  </channel>
</rss>

