<?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: How to write set analysis expression (multiple conditions) with AND / OR operators? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626983#M230415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I haven't fully understood what you want to accomplish (especially looking at your second, expected table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, there are set operators for Union, Exclusion, Intersection and XOR, so chances are that you can do what you want using these oeprators. Have a look at the Help for more detail or detail your requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 May 2014 12:47:14 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-05-25T12:47:14Z</dc:date>
    <item>
      <title>How to write set analysis expression (multiple conditions) with AND / OR operators?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626982#M230414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data looks like the table below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="377" style="width: 443px; height: 373px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl75" height="21" width="80"&gt;LoadDate&lt;/TD&gt;&lt;TD class="xl76" style="border-left: none;" width="55"&gt;EmpID&lt;/TD&gt;&lt;TD class="xl77" style="border-left: none;" width="47"&gt;Level&lt;/TD&gt;&lt;TD class="xl78" style="border-left: none;" width="85"&gt;Status&lt;/TD&gt;&lt;TD class="xl79" style="border-left: none;" width="64"&gt;Wages&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl80" height="20"&gt;01-Jan-2014&lt;/TD&gt;&lt;TD class="xl72" style="border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl73" style="border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl81" style="border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="21" style="border-top: none;"&gt;31-Jan-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;10000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;28-Feb-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;30-Apr-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;120&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M1&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;XFER_IN&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;13000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;30-Apr-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;120&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M1&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;13000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl80" height="20"&gt;01-Jan-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M1&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;31-Jan-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M1&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;28-Feb-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M1&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;PROM_OUT&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;28-Feb-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;28-Feb-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;PROM_IN&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl82" height="20" style="border-top: none;"&gt;31-Mar-2014&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl70" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl71" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl83" style="border-top: none; border-left: none;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl84" height="21" style="border-top: none;"&gt;30-Apr-2014&lt;/TD&gt;&lt;TD class="xl85" style="border-top: none; border-left: none;"&gt;130&lt;/TD&gt;&lt;TD class="xl86" style="border-top: none; border-left: none;"&gt;M2&lt;/TD&gt;&lt;TD class="xl87" style="border-top: none; border-left: none;"&gt;ONBOARD&lt;/TD&gt;&lt;TD align="right" class="xl88" style="border-top: none; border-left: none;"&gt;15000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish to write an expression that will count distinct employees who have a transaction with status "ONBOARD" on 01-Jan-2014 and 30-Apr-2014 (continuing employees) including any promoted during this period . The table dimension is grade as displayed the expected results. The expression used by me is not producing the right results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="93" style="width: 608px; height: 96px;" width="606"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl73" height="21" width="64"&gt;Level&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="64"&gt;Op HC&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="64"&gt;Op Wages&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="76"&gt;Prom_In HC&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="92"&gt;Prom Wages&lt;/TD&gt;&lt;TD class="xl74" style="border-left: none;" width="75"&gt;Post Inc HC&lt;/TD&gt;&lt;TD class="xl75" style="border-left: none;" width="100"&gt;Post Inc Wages&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border-top: none;"&gt;M1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;12000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="21" style="border-top: none;"&gt;M2&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;10000&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;15000&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl72" style="border-top: none; border-left: none;"&gt;27000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 08:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626982#M230414</guid>
      <dc:creator />
      <dc:date>2014-05-25T08:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to write set analysis expression (multiple conditions) with AND / OR operators?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626983#M230415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I haven't fully understood what you want to accomplish (especially looking at your second, expected table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, there are set operators for Union, Exclusion, Intersection and XOR, so chances are that you can do what you want using these oeprators. Have a look at the Help for more detail or detail your requirements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 12:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626983#M230415</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-25T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to write set analysis expression (multiple conditions) with AND / OR operators?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626984#M230416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think one way would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&lt;/P&gt;&lt;P&gt;&amp;lt;EmpID=P({&amp;lt;LoadDate={"01-Jan-2014"},Status={ONBOARD}&amp;gt;})&amp;gt;&lt;/P&gt;&lt;P&gt;*&amp;lt;EmpID=P({&amp;lt;LoadDate={"31-Mar-2014"},Status={ONBOARD}&amp;gt;})&amp;gt;&lt;/P&gt;&lt;P&gt;}DISTINCT EmpID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 May 2014 14:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-analysis-expression-multiple-conditions-with/m-p/626984#M230416</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-05-25T14:18:24Z</dc:date>
    </item>
  </channel>
</rss>

