<?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: If logic consolidation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565362#M210949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Any hint from anyone..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 17:04:02 GMT</pubDate>
    <dc:creator>dhanu_today</dc:creator>
    <dc:date>2014-04-11T17:04:02Z</dc:date>
    <item>
      <title>If logic consolidation</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565359#M210946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;I have to get the list of customers with the below conditions and same has to do in design level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Req:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;1)) Product Codes - 883,887,903,945,946,939&lt;BR /&gt;2) Promotion Code - AbcOC1, CbaB01, DcdENC, EzcC01, SoaIE1, SYTEDU, TwuS01, TRUS02, WaeFAR1, SECT25, Gae000&lt;BR /&gt;3) Customer Type – ‘Newone’.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Along with above conditions, we need to consider those customers who are having CASA accounts as per logic but having Customer Type not equal to 'Newone’ under FD Product.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Dimension level I wrote the below logics individually how we can consolidate both logics as one to fill the above req. We no need to consider the Cust_id’s which are having product as FD and Customer_type not equal to ‘Newone’ in the second script.(it’s the difference between both the logics)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;PRODUCT_CODE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'883','887','903','945','946','939') &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;PROMO_CODE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'AbcOC1', 'CbaB01', 'DcdENC', 'EzcC01', 'SoaIE1', &lt;BR /&gt;'SYTEDU', 'TwuS01', 'TRUS02', 'WaeFAR1', 'SECT25', 'Gae000') &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;CUSTOMER_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Newone’&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;and&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;WILDMATCH&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'CA',’SA’),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;CUST_ID&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;PRODUCT_CODE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'883','887','903','945','946','939') &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;PROMO_CODE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'AbcOC1', 'CbaB01', 'DcdENC', 'EzcC01', 'SoaIE1', &lt;BR /&gt;'SYTEDU', 'TwuS01', 'TRUS02', 'WaeFAR1', 'SECT25', 'Gae000') &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt; not &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;wildmatch&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;CUSTOMER_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif';"&gt;Newone’&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Book Antiqua','serif'; color: blue; font-size: 9pt;"&gt;WILDMATCH&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;PRODUCT&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;,'FD'),&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: maroon; font-size: 9pt;"&gt;CUST_ID&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;Let me know if in case any clarifications and unable to attache the sample app.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;Thanks Inadvance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; color: black; font-size: 9pt;"&gt;Dhanu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 11:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565359#M210946</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-04-11T11:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: If logic consolidation</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565360#M210947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(wildmatch(PRODUCT_CODE,'883','887','903','945','946','939') and wildmatch(PROMO_CODE,'AbcOC1', 'CbaB01', 'DcdENC', 'EzcC01', 'SoaIE1',&lt;/P&gt;&lt;P&gt;'SYTEDU', 'TwuS01', 'TRUS02', 'WaeFAR1', 'SECT25', 'Gae000') and&lt;/P&gt;&lt;P&gt;((wildmatch(CUSTOMER_TYPE,'Newone’) and&amp;nbsp; WILDMATCH (PRODUCT,'CA',’SA’))&amp;nbsp; or (not wildmatch(CUSTOMER_TYPE,'Newone’)&amp;nbsp; and WILDMATCH (PRODUCT,'FD')) ) ,CUST_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, if these are all fields from the same table, you could consider creating a flag field in the script to mark these customers and use the flag field to select them. Or you could create bookmarks for both sets and use the bookmarks in set analysis expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 11:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565360#M210947</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-04-11T11:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: If logic consolidation</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565361#M210948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; font-size: 10pt;"&gt;Thanks Gysbert ..Its working..&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Book Antiqua','serif'; font-size: 10pt;"&gt;Small correction in my query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;I have the Product category as ‘CA’,’SA’,’FD’.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;A)To calculate the CASA customers we have consider the conditions below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;1)) Product Codes - 883,887,903,945,946,939&lt;BR /&gt;2) Promotion Code - AbcOC1, CbaB01, DcdENC, EzcC01, SoaIE1, SYTEDU, TwuS01, TRUS02, WaeFAR1, SECT25, Gae000&lt;BR /&gt;3) Customer Type – ‘Newone’.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;B)To calculate the FD customers we have consider the conditions below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Customer Type – ‘Newone’.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;C)To calculate the CASA_FD customers we have consider the conditions below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Let say if I have 100 FD customers(from B) with the CUSTOMER_TYEPE as ‘&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Newone’ and from the 100 custid’s We have check whether they are having CASA product or not with &lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;CUSTOMER_TYEPE is not equal to ‘&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Newone’.If yes we have to show that information also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;It means in domain level one custid having multiple products.We have to capture the customers details by various parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Let me know if in case of any clarifications.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt;Dhanu&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN lang="EN" style="font-family: 'Book Antiqua','serif'; color: #3d3d3d; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565361#M210948</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-04-11T14:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: If logic consolidation</title>
      <link>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565362#M210949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Any hint from anyone..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 17:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-logic-consolidation/m-p/565362#M210949</guid>
      <dc:creator>dhanu_today</dc:creator>
      <dc:date>2014-04-11T17:04:02Z</dc:date>
    </item>
  </channel>
</rss>

