<?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 IF Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430479#M609377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a document where I look at the cover of stock in the warehouse. I want to created a figure based on the stock we currently have, plus the stock on the way, divided by the week before sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to say is If On Order = 0 then Free Stock/Sum, otherwise &lt;SPAN style="font-size: 13.3333px;"&gt;([On Order]+Free_stock)/Sum (if (InWeek (SI_Date, Today(), -1), [Quantity])) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2017 14:57:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-05T14:57:56Z</dc:date>
    <item>
      <title>IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430479#M609377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating a document where I look at the cover of stock in the warehouse. I want to created a figure based on the stock we currently have, plus the stock on the way, divided by the week before sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to say is If On Order = 0 then Free Stock/Sum, otherwise &lt;SPAN style="font-size: 13.3333px;"&gt;([On Order]+Free_stock)/Sum (if (InWeek (SI_Date, Today(), -1), [Quantity])) .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 14:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430479#M609377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-05T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430480#M609378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;share the mock up data ..will help you &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430480#M609378</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-12-05T15:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430481#M609379</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;If([On Order] = 0, [Free Stock]/Sum, ([On Order]/Free_stock)/Sum(If(InWeek(SI_Date, Today(), -1), Quantity)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430481#M609379</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-05T15:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430482#M609380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share any sample data or what is mean by &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;On Order = 0 kindly elaborate.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430482#M609380</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-12-05T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430483#M609381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My formula looks like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;([on Order]+[Free_stock])/Sum (if (InWeek (SI_Date, Today(), -1), [Quantity]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, for instance in the attached screenshot, 6712 in stock + 5520 on order, LW sales were 1776 meaning total cover of 6.9 (6.88 without rounding)&lt;IMG alt="img.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185785_img.png" style="height: 625px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430483#M609381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-05T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430484#M609382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Round((Stock+[On Order])/LW, 0.01)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 18:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430484#M609382</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-05T18:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: IF Statement</title>
      <link>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430485#M609383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need 6.88 or 6.9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 18:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-Statement/m-p/1430485#M609383</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-12-05T18:22:31Z</dc:date>
    </item>
  </channel>
</rss>

