<?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: false Result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426811#M429645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Staffan has already answered your question above. If you think the response is not correct, you'll have to explain why. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 08:57:05 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2017-11-21T08:57:05Z</dc:date>
    <item>
      <title>false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426807#M429641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope all is well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I have a table thant calculate the difference between two dates creation date ans last modified date according to a group of rules,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after calculting the delais de traitement measure, I would like to set the intervalls of these measure, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my table :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183935_Capture.PNG" style="height: 115px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;heres the expression of my Intervalle field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='00:30:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'01:00:00',' &amp;gt;=30 Min',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'00:30:00',' &amp;lt;30 Min'&lt;/P&gt;&lt;P&gt;,if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='01:00:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'02:00:00',' &amp;gt;=1h',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='02:00:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'04:00:00',' &amp;gt;=2h and &amp;lt;4h',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='04:00:00'and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'05:00:00',' &amp;gt;4h and &amp;lt;5h',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='05:00:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'06:00:00',' &amp;gt;5h and &amp;lt;6h'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='09:00:00'and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'18:00:00','&amp;gt;=1j and &amp;lt;2j'&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;,if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='18:00:00'and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'27:00:00','&amp;gt;=2j and &amp;lt;3j'&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;The problem is this formula gives me result like this&lt;SPAN style="font-size: 18pt;"&gt; '&lt;/SPAN&gt;&lt;STRONG style=": ; font-size: 18pt;"&gt;-'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any idea how to correcte my formula ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 14:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426807#M429641</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2017-11-20T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426808#M429642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to add sample data with the same structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 14:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426808#M429642</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-11-20T14:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426809#M429643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at the difference between Row_added_dttm and row_lastmant_dttm, it a lot more that 27 hour that is Your top value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other rows have the same date, just a Clue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 15:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426809#M429643</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-20T15:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426810#M429644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help pleaase &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426810#M429644</guid>
      <dc:creator>master_student</dc:creator>
      <dc:date>2017-11-21T08:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426811#M429645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Staffan has already answered your question above. If you think the response is not correct, you'll have to explain why. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 08:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426811#M429645</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-21T08:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426812#M429646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try to add an else statment, '-' mean nomatch. Add test after last if statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='00:30:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'01:00:00',' &amp;gt;=30 Min',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'00:30:00',' &amp;lt;30 Min'&lt;/P&gt;&lt;P&gt;,if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='01:00:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'02:00:00',' &amp;gt;=1h',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='02:00:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'04:00:00',' &amp;gt;=2h and &amp;lt;4h',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='04:00:00'and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'05:00:00',' &amp;gt;4h and &amp;lt;5h',&lt;/P&gt;&lt;P&gt;if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='05:00:00' and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'06:00:00',' &amp;gt;5h and &amp;lt;6h'&lt;/P&gt;&lt;P&gt;,if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='09:00:00'and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'18:00:00','&amp;gt;=1j and &amp;lt;2j'&lt;/P&gt;&lt;P&gt;,if(time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;gt;='18:00:00'and time(Business_Hrs_Without_Overtime / 24, 'hh:mm:ss')&amp;lt;'27:00:00','&amp;gt;=2j and &amp;lt;3j',&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;'test'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;P&gt;))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:24:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426812#M429646</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-21T09:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426813#M429647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wiem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most likely thing here is that you need another item on your IF for what if it doesn't match any of the timeframes.&amp;nbsp; As &lt;A href="https://community.qlik.com/qlik-users/51107"&gt;stabben23&lt;/A&gt;‌ has pointed out the dates are further apart on the last row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is the problem then you can fix it by adding to the final line of code, for instance.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,'&amp;gt;=2j and &amp;lt;3j', '&amp;gt;= 3j'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't look right that there is no aggregation in your expression, but this probably doesn't matter as you have both start and end times as dimensions (otherwise you would want Max and Min statements around each &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Business_Hrs_Without_Overtime).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The fact that you are comparing strings rather than numerics feels wrong, but as it is a fixed length string with zero padding this should work fine.&amp;nbsp; Instinctively though I would not use the time function and have the hour compare doing something like this for two hours:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;((1 / 24) * 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This would also be more efficient - but what you have seems to work for the first set of dates so you could leave it as is.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;What granularity are the overtimes stored to.&amp;nbsp; There is a possibility that something could fall between the gaps where times are rounded to the nearest second.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I would expect to see the if be nested from the shortest up, as you can then write less code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&amp;lt;= 0.5, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&amp;lt; 1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&amp;lt; 2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&amp;lt;24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Over a Day'))))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;As it is you are checking for &amp;gt; and &amp;lt; on each check.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hope that helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426813#M429647</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-11-21T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: false Result</title>
      <link>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426814#M429648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if Your Expression "Intervalle" Depends on "Delais de Traitement" the you could use that instead of a New calculation.&lt;/P&gt;&lt;P&gt;like this instead:&lt;/P&gt;&lt;P&gt;if( [Delais de Traitement]&amp;gt;='00:30:00' and [Delais de Traitement]&amp;lt;'01:00:00',' &amp;gt;=30 Min',...aso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/false-Result/m-p/1426814#M429648</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-11-21T09:51:41Z</dc:date>
    </item>
  </channel>
</rss>

