<?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: Customer satisfaction based on IF conditionS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307167#M406738</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([Safety Stock] = 0 or Len(Trim([Safety Stock])) = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If([Invoicing date] &amp;lt;= [Customer requested date], 'YES', 'NO'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If([Invoicing date] = [Order creation date], 'YES', 'NO'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2017 14:13:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-04-24T14:13:39Z</dc:date>
    <item>
      <title>Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307166#M406737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build an application that will determine wether a customer is satisfied or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of invoices stored in an excel file with different informations :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice, being the invoice reference.&lt;/P&gt;&lt;P&gt;[Part Number], being the part number invoiced.&lt;/P&gt;&lt;P&gt;[Safety Stock], being the safety stock against the part number.&lt;/P&gt;&lt;P&gt;[Invoicing date], being the date the part number has been invoiced.&lt;/P&gt;&lt;P&gt;[Order creation date], being the date the customer order has been created.&lt;/P&gt;&lt;P&gt;[Customer requested date], being the date the customer requested to be invoiced.&lt;/P&gt;&lt;P&gt;Qty being the quantity invoiced to the customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To determine wether a customer is satisfied there are two situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If Part number is covered by a safety stock (&lt;SPAN style="font-size: 13.3333px;"&gt;[Safety Stock]&lt;/SPAN&gt; is different than zero) :&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;in this case a customer is satisfied if the invoicing date is the same as the order creation date (meaning the order is shipped the day the order is created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If part number is not covered by a safety stock (&lt;SPAN style="font-size: 13.3333px;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Safety Stock]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; is equal to zero or "empty") :&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In this case a customer is satisfied if the invoicing date is at least equal to the customer requested date. The same is the order is invoiced before it was requested by the customer date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Knowing those two rules, the test table shall return a customer satisfaction of 50 % as 4 part number among 8 parts number have been invoiced on time.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" height="130" src="https://community.qlik.com/legacyfs/online/161015_Capture.JPG" style="height: 129.556px; width: 675px; display: block; margin-left: auto; margin-right: auto;" width="675" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is qvw and excel test database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307166#M406737</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-04-24T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307167#M406738</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([Safety Stock] = 0 or Len(Trim([Safety Stock])) = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If([Invoicing date] &amp;lt;= [Customer requested date], 'YES', 'NO'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If([Invoicing date] = [Order creation date], 'YES', 'NO'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307167#M406738</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-24T14:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307168#M406739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks great Sunny.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I sum this up in a chart or in a text box in a percentage figure ? (50 % in our example)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:19:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307168#M406739</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-04-24T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307169#M406740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(Sum(If([Safety Stock] = 0 or Len(Trim([Safety Stock])) = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; If([Invoicing date] &amp;lt;= [Customer requested date], 1, 0),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt; If([Invoicing date] = [Order creation date], 1, 0)))/Sum(Qty), '##%')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307169#M406740</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-24T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307170#M406741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have to show this indicator based on different criteria (company, period), so i may have to "play" a bit with your formulas, but i reckon i will be able to do it by myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307170#M406741</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-04-24T14:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307171#M406742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you write below formulas if i would like to show in the table only part number A ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=If([Safety Stock] = 0 or Len(Trim([Safety Stock])) = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If([Invoicing date] &amp;lt;= [Customer requested date], 'YES', 'NO'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If([Invoicing date] = [Order creation date], 'YES', 'NO'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I tried :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=If&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;[Part Number]= {'A'}&lt;/SPAN&gt;([Safety Stock] = 0 or Len(Trim([Safety Stock])) = 0,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; If([Invoicing date]&amp;nbsp; &amp;lt;= [Customer requested date], 'YES', 'NO'),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; If([Invoicing date] = [Order creation date], 'YES', 'NO'))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;but this does not seem to work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:38:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307171#M406742</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-04-25T09:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307172#M406743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to get below output for instance :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161125_Capture.JPG" style="height: 69px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307172#M406743</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-04-25T09:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307173#M406744</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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=If(Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;} [Safety Stock]) = 0 or Len(Trim(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;} &lt;/STRONG&gt;[Safety Stock]))) = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;} &lt;/STRONG&gt;[Invoicing date]) &amp;lt;= &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt; [Customer requested date]), 'YES', 'NO'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;} &lt;/STRONG&gt;[Invoicing date]) = &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Only({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;} &lt;/STRONG&gt;[Order creation date]), 'YES', 'NO'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307173#M406744</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-25T09:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307174#M406745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;Only({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Part Number]= {'A'}&lt;/SPAN&gt;&amp;gt;}&lt;/STRONG&gt; If([Safety Stock] = 0 or Len(Trim([Safety Stock])) = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If([Invoicing date] &amp;lt;= [Customer requested date], 'YES', 'NO'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; If([Invoicing date] = [Order creation date], 'YES', 'NO')))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307174#M406745</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-25T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Customer satisfaction based on IF conditionS</title>
      <link>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307175#M406746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 09:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Customer-satisfaction-based-on-IF-conditionS/m-p/1307175#M406746</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-04-25T09:57:56Z</dc:date>
    </item>
  </channel>
</rss>

