<?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: Problem with Multiple if Conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482613#M483127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First of all create a flag which will tell you whether unloading date and Lineissuedate is null or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Something like shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Isnull(Lineissuedate),1,0) as Lineissuedate_Isnull_Flag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Isnull(LoadingDate),1,0) as LoadingDate_Isnull_Flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then use the below expression to find the count of Boxnumber with the said conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr(Count({&amp;lt;subrea -= {'Line'},Location = {'STOREHOUE'},Lineissuedate_Isnull_Flag = {"0"},LoadingDate_Isnull_Flag = {"0"}, Box_Flag={'Y'}&amp;gt;}&lt;SPAN style="color: #ff0000;"&gt;BoxNumber&lt;/SPAN&gt;),&lt;SPAN style="color: #ff0000;"&gt;CommissionNumber&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jul 2013 15:54:19 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2013-07-29T15:54:19Z</dc:date>
    <item>
      <title>Problem with Multiple if Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482611#M483125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have Two fields &lt;SPAN style="color: #ff0000;"&gt;BoxNumber&lt;/SPAN&gt; AND &lt;SPAN style="color: #ff0000;"&gt;CommissionNumber&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;one Commission Number Has Multiple BoxNumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i need to Dervie the &lt;SPAN style="color: #ff0000;"&gt;count of BoxNumberFrom the Commission Numer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. After Deriving the BoxNumber for the particular Commission Number&amp;nbsp; that needs to be used it in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;if((isnull(unloadingDate)=0 and Box_Flag='Y')and isnull(Lineissuedate)= -1 and subrea &amp;lt;&amp;gt; 'Line' and Location = 'STOREHOUE' )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i need to get the &lt;SPAN style="color: #ff0000;"&gt;count of BoxNumber &lt;/SPAN&gt;which is derived from the commission Number i Have mentioned....so how can i formulate the above conditions in&lt;/P&gt;&lt;P&gt;set analysis or exact if expression?&lt;/P&gt;&lt;P&gt; I am using all the Expressions in Pivot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Nikitha Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 23:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482611#M483125</guid>
      <dc:creator />
      <dc:date>2013-07-15T23:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Multiple if Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482612#M483126</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;1.U can use aggr function to get the count of box numbers like&amp;nbsp; aggr(count(box_no),commission_no)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for second one, i need some more clarifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to upload some sample data and explain the if condition where u want to use this count of box numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 15:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482612#M483126</guid>
      <dc:creator />
      <dc:date>2013-07-29T15:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Multiple if Conditions</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482613#M483127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First of all create a flag which will tell you whether unloading date and Lineissuedate is null or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Something like shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Isnull(Lineissuedate),1,0) as Lineissuedate_Isnull_Flag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Isnull(LoadingDate),1,0) as LoadingDate_Isnull_Flag&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then use the below expression to find the count of Boxnumber with the said conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr(Count({&amp;lt;subrea -= {'Line'},Location = {'STOREHOUE'},Lineissuedate_Isnull_Flag = {"0"},LoadingDate_Isnull_Flag = {"0"}, Box_Flag={'Y'}&amp;gt;}&lt;SPAN style="color: #ff0000;"&gt;BoxNumber&lt;/SPAN&gt;),&lt;SPAN style="color: #ff0000;"&gt;CommissionNumber&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 15:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Multiple-if-Conditions/m-p/482613#M483127</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-07-29T15:54:19Z</dc:date>
    </item>
  </channel>
</rss>

