<?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 Replacing if else with pick match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-if-else-with-pick-match/m-p/100200#M15972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please assist me how to replace below code with pick match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE ([Order Delivery Days])&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Dual (If ([Delivery Difference Days] &amp;gt; 0, &lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 5, 'Week or Less',&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 10, 'Two Weeks or Less',&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 20, 'Month or Less',&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 40, 'Two Months or Less', 'Over Two Months'))))),&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;gt; 0, &lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 5, 1,&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 10, 2,&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 20, 3,&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 40, 4, 5)))))) as [Late Status];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE ([Order Delivery Days])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ([Order Delivery Status by Calculated GI Date] = 'On Time', [Order Delivery Status by Calculated GI Date],&lt;/P&gt;&lt;P&gt;If (Floor ([Planned Delivery Date]) &amp;lt;= Floor ([Sales Document Creation Date]), '1. Bad First Date',&lt;/P&gt;&lt;P&gt;If ([%Plant_PLANT] = 'US09', '2. US09 Plant - Springfield',&lt;/P&gt;&lt;P&gt;If (Floor ([Planned Delivery Date]) = Floor ([Sales Document Creation Date] + 1), '3. ATP Error',&lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTAG', 'ZTSG', 'ZTAC', 'ZTAK', 'ZTBG', 'ZTL1', 'ZTL4', 'ZTLK', 'ZTRO', 'ZLBX') AND Floor ([Production Order Delivery Date]) &amp;gt; Floor ([Planned Delivery Date]), '4. Manufacture to Order',&lt;/P&gt;&lt;P&gt;If (Floor ([Actual Goods Issue Date]) &amp;gt;=&amp;nbsp; Floor ([Planned Delivery Date]) AND Floor ([Delivery Document Creation Date]) &amp;lt;= Floor ([Planned Delivery Date]), '5. Warehouse Issue',&lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTAP', 'ZTAB') &amp;gt; 0 AND Floor ([Latest Purchase Order Goods Received Date]) &amp;gt; Floor ([Planned Delivery Date]), '6. Vendor', &lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTAS', 'ZUCS', 'ZTCS', 'ZTBS', 'ZLKF', 'ZSAS', 'ZSST'), '7. Drop Shipment', &lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTNN', 'ZANN'), '8. Stock Items', &lt;/P&gt;&lt;P&gt;If ([Domestic/Export] = 'Export', '9. Export Order', '10. Other')))))))))) as [Late Analysis] &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 06:20:36 GMT</pubDate>
    <dc:creator>kishorj1982</dc:creator>
    <dc:date>2018-09-24T06:20:36Z</dc:date>
    <item>
      <title>Replacing if else with pick match</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-else-with-pick-match/m-p/100200#M15972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please assist me how to replace below code with pick match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE ([Order Delivery Days])&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Dual (If ([Delivery Difference Days] &amp;gt; 0, &lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 5, 'Week or Less',&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 10, 'Two Weeks or Less',&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 20, 'Month or Less',&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 40, 'Two Months or Less', 'Over Two Months'))))),&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;gt; 0, &lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 5, 1,&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 10, 2,&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 20, 3,&lt;/P&gt;&lt;P&gt;If ([Delivery Difference Days] &amp;lt;= 40, 4, 5)))))) as [Late Status];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE ([Order Delivery Days])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ([Order Delivery Status by Calculated GI Date] = 'On Time', [Order Delivery Status by Calculated GI Date],&lt;/P&gt;&lt;P&gt;If (Floor ([Planned Delivery Date]) &amp;lt;= Floor ([Sales Document Creation Date]), '1. Bad First Date',&lt;/P&gt;&lt;P&gt;If ([%Plant_PLANT] = 'US09', '2. US09 Plant - Springfield',&lt;/P&gt;&lt;P&gt;If (Floor ([Planned Delivery Date]) = Floor ([Sales Document Creation Date] + 1), '3. ATP Error',&lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTAG', 'ZTSG', 'ZTAC', 'ZTAK', 'ZTBG', 'ZTL1', 'ZTL4', 'ZTLK', 'ZTRO', 'ZLBX') AND Floor ([Production Order Delivery Date]) &amp;gt; Floor ([Planned Delivery Date]), '4. Manufacture to Order',&lt;/P&gt;&lt;P&gt;If (Floor ([Actual Goods Issue Date]) &amp;gt;=&amp;nbsp; Floor ([Planned Delivery Date]) AND Floor ([Delivery Document Creation Date]) &amp;lt;= Floor ([Planned Delivery Date]), '5. Warehouse Issue',&lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTAP', 'ZTAB') &amp;gt; 0 AND Floor ([Latest Purchase Order Goods Received Date]) &amp;gt; Floor ([Planned Delivery Date]), '6. Vendor', &lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTAS', 'ZUCS', 'ZTCS', 'ZTBS', 'ZLKF', 'ZSAS', 'ZSST'), '7. Drop Shipment', &lt;/P&gt;&lt;P&gt;If (Match ([%Item category_ITEM_CATEG], 'ZTNN', 'ZANN'), '8. Stock Items', &lt;/P&gt;&lt;P&gt;If ([Domestic/Export] = 'Export', '9. Export Order', '10. Other')))))))))) as [Late Analysis] &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 06:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-else-with-pick-match/m-p/100200#M15972</guid>
      <dc:creator>kishorj1982</dc:creator>
      <dc:date>2018-09-24T06:20:36Z</dc:date>
    </item>
  </channel>
</rss>

