<?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 condition not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227019#M852881</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 have tried it but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 13:29:20 GMT</pubDate>
    <dc:creator>nareshthavidishetty</dc:creator>
    <dc:date>2017-03-03T13:29:20Z</dc:date>
    <item>
      <title>IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227017#M852879</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 have used the below if condition but it is not giving correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Condition:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Len(Status_I_Min)= null(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(Interval(Status_A_Max-Status_Null_Min,'hh:mm:ss'),Application_Number), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(Interval(Status_A_Max-Status_I_Min,'hh:mm:ss'),Application_Number))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario(Please refer below image):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Condition for Total time taken to approve application&amp;nbsp; Column &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if &lt;STRONG&gt;Total time taken to create application&lt;/STRONG&gt; is null then show &lt;STRONG style="font-size: 13.3333px;"&gt;aggr(Interval(Status_A_Max-Status_Null_Min,'hh:mm:ss'),Application_Number)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;aggr(Interval(Status_A_Max-Status_I_Min,'hh:mm:ss'),Application_Number)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here am not able to show the results if&amp;nbsp; &lt;STRONG style="font-size: 13.3333px;"&gt;Total time taken to create application&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; is null&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155136_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227017#M852879</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227018#M852880</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;Change "&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Len(Status_I_Min)= null()&lt;/STRONG&gt;" by "&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Len(Status_I_Min) = 0&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 13:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227018#M852880</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2017-03-03T13:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227019#M852881</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 have tried it but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 13:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227019#M852881</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-03-03T13:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227020#M852882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send latest expression which you tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try Simple &lt;STRONG&gt;''&lt;/STRONG&gt; or &lt;STRONG&gt;'0'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=if(Len(Status_I_Min)= '',&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;aggr(Interval(Status_A_Max-Status_Null_Min,'hh:mm:ss'),Application_Number),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;aggr(Interval(Status_A_Max-Status_I_Min,'hh:mm:ss'),Application_Number))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 13:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227020#M852882</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-03T13:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227021#M852883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using this expression? All the fields are naked (ie not inside an aggregation function like Sum, Count, Max) and so will not return anything unless there is only one possible value where the expression is being evaluated. That's why you are getting nulls; and what purpose does the Aggr() serve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the expression you need is (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if Status_I_Min as an empty string or null):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Sum(Status_A_Max - Alt(Status_I_Min, Status_Null_Min))&lt;/EM&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format this to interval using the Property | Number for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Status_I_Min is zero, then:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;Sum(Status_A_Max - If(Status_I_Min &amp;lt;&amp;gt; 0, Status_I_Min, Status_Null_Min)) &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 13:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227021#M852883</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-03-03T13:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227022#M852884</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;We taking the time interval difference and i thin aggregation wont help us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227022#M852884</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-03-03T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227023#M852885</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;Still its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227023#M852885</guid>
      <dc:creator>nareshthavidishetty</dc:creator>
      <dc:date>2017-03-03T15:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227024#M852887</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;Did you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;isNull(&lt;STRONG&gt;Status_I_Min&lt;/STRONG&gt;) or len(trim(&lt;STRONG&gt;Status_I_Min)) = 0&lt;/STRONG&gt;,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(Interval(Status_A_Max-Status_Null_Min,'hh:mm:ss'),Application_Number), &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aggr(Interval(Status_A_Max-Status_I_Min,'hh:mm:ss'),Application_Number))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 07:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-not-working/m-p/1227024#M852887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-06T07:05:29Z</dc:date>
    </item>
  </channel>
</rss>

