<?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 Set Analysis, Multiple Conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464994#M173682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the number of Task_ID_New based on the following conditions:&lt;/P&gt;&lt;P&gt;Completion_Date is less than or equal to Due_Date&lt;/P&gt;&lt;P&gt;Source = Assignments or (Source=Tasks and TASK_TYPE = Product).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do get the correct results of Assignments by itself and Tasks by itself but cannot seem to combine them into one chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume I can use set analysis but have not been able to get the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample showing all the data in a Table Box and then two separate staight tables.&lt;/P&gt;&lt;P&gt;Want the reuslts of the two combined into one straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any and all help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2012 02:51:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-26T02:51:01Z</dc:date>
    <item>
      <title>Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464994#M173682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the number of Task_ID_New based on the following conditions:&lt;/P&gt;&lt;P&gt;Completion_Date is less than or equal to Due_Date&lt;/P&gt;&lt;P&gt;Source = Assignments or (Source=Tasks and TASK_TYPE = Product).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do get the correct results of Assignments by itself and Tasks by itself but cannot seem to combine them into one chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume I can use set analysis but have not been able to get the correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample showing all the data in a Table Box and then two separate staight tables.&lt;/P&gt;&lt;P&gt;Want the reuslts of the two combined into one straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any and all help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 02:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464994#M173682</guid>
      <dc:creator />
      <dc:date>2012-12-26T02:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464995#M173683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;try the below expression &lt;/P&gt;&lt;P&gt;count(if((&lt;/P&gt;&lt;P&gt;Source='Tasks' and TASK_TYPE='Product' and Completion_Date&amp;lt;=Due_Date)&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;(Source='Assignments'and Completion_Date&amp;lt;=Due_Date),Task_ID_New))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 05:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464995#M173683</guid>
      <dc:creator />
      <dc:date>2012-12-26T05:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464996#M173684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ='Assignments' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Tasks' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TASK_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Product')) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Completion_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Due_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Task_ID_New&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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-size: 8pt;"&gt;Niranjan M.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 05:59:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464996#M173684</guid>
      <dc:creator />
      <dc:date>2012-12-26T05:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464997#M173685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Completion_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Due_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Assignments',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Tasks' },&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TASK_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={ 'Product'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Task_ID_New&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps you!!...&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-size: 8pt;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Chandra&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 09:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464997#M173685</guid>
      <dc:creator />
      <dc:date>2012-12-26T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464998#M173686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi&lt;/P&gt;&lt;P class="jive-content-controls clearfix" id="discussion-action-div-266901"&gt;see this link &lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/136125#136125" title="http://community.qlik.com/message/136125"&gt;http://community.qlik.com/message/136125&lt;/A&gt;&lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/283514#283514" title="http://community.qlik.com/message/283514"&gt;http://community.qlik.com/message/283514&lt;/A&gt;&lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/266912#266912" title="http://community.qlik.com/message/266912"&gt;http://community.qlik.com/message/266912&lt;/A&gt;&lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;&lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;or try it.&lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;&lt;/P&gt;&lt;P&gt;IF(Completion_Date&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= &lt;/SPAN&gt;Due_Date&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 8pt;"&gt;Source&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={'Assignments',&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;'Tasks' },&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 8pt;"&gt;TASK_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ={ 'Product'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 8pt;"&gt;Task_ID_New&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="jive-content-controls clearfix"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="discussionAdd" title="Reply to this message"&gt; &lt;/A&gt; &lt;/STRONG&gt;hope it help you.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 09:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464998#M173686</guid>
      <dc:creator />
      <dc:date>2012-12-26T09:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464999#M173687</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;Count(if(Completion_Date &amp;lt;= Due_Date &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (Source = 'Assignments'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or (Source = 'Tasks' and TASK_TYPE = 'Product')), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Task_ID_New))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you add a unique ID field to your table &lt;EM&gt;(i.e. rowno() as ID)&lt;/EM&gt; you can use a set analysis expression:&lt;/P&gt;&lt;P&gt;count({&amp;lt;Source={'Assignments'},ID={"=Completion_Date&amp;lt;=Due_Date"}&amp;gt;+&amp;lt;Source={'Tasks'},TASK_TYPE={'Product'},ID={"=Completion_Date&amp;lt;=Due_Date"}&amp;gt;} Task_ID_New)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 10:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/464999#M173687</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-26T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis, Multiple Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/465000#M173688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 13:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Multiple-Conditions/m-p/465000#M173688</guid>
      <dc:creator />
      <dc:date>2012-12-26T13:27:36Z</dc:date>
    </item>
  </channel>
</rss>

