<?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 Help required to frame the logic in QlikView. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-required-to-frame-the-logic-in-QlikView/m-p/814908#M287430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help your to frame the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDFLAG',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') &amp;lt;&amp;gt;’NA’, Product,’Apply Below Logic’)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the match is found in the above applymap then we have SET the flag as Product. For rest of the records we have to apply below logic and find out whether it is Product or Non-Product. Can some help me out to frame this logic in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;if &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'Y'&lt;BR /&gt; ,'Product'&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'NA'&lt;BR /&gt; ,'Product'&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') &amp;lt;&amp;gt; 'NA'&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'Y','Product','Non-Product')&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;ORG_PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'NA'&lt;BR /&gt; ,'Product'&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;ORG_PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') &amp;lt;&amp;gt; 'NA'&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;ORG_PRDID&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'Y','Product','Non-Product')&lt;BR /&gt; ,'Non-Product')))))&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Product Flag]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 06:47:36 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2014-11-12T06:47:36Z</dc:date>
    <item>
      <title>Help required to frame the logic in QlikView.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-to-frame-the-logic-in-QlikView/m-p/814908#M287430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help your to frame the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDFLAG',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') &amp;lt;&amp;gt;’NA’, Product,’Apply Below Logic’)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the match is found in the above applymap then we have SET the flag as Product. For rest of the records we have to apply below logic and find out whether it is Product or Non-Product. Can some help me out to frame this logic in QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;if &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'Y'&lt;BR /&gt; ,'Product'&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'NA'&lt;BR /&gt; ,'Product'&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') &amp;lt;&amp;gt; 'NA'&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'Y','Product','Non-Product')&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;ORG_PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'NA'&lt;BR /&gt; ,'Product'&lt;BR /&gt; , &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Flag]&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;= 'N' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;ORG_PRDID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') &amp;lt;&amp;gt; 'NA'&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;('PRDIDCHECK', &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;ORG_PRDID&lt;/SPAN&gt; &lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: #3d3d3d;"&gt;,'NA') = 'Y','Product','Non-Product')&lt;BR /&gt; ,'Non-Product')))))&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: blue;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;[Product Flag]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'inherit','serif'; color: maroon;"&gt;-----&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 06:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-to-frame-the-logic-in-QlikView/m-p/814908#M287430</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2014-11-12T06:47:36Z</dc:date>
    </item>
  </channel>
</rss>

