<?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: Compare a time obtained from Min to one created with MakeTime() in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160621#M94147</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;Maybe format like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) - Time(MakeTime(15,45,00))&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 11 Jan 2024 14:38:22 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2024-01-11T14:38:22Z</dc:date>
    <item>
      <title>Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160602#M94145</link>
      <description>&lt;P&gt;I want to calculate if a time I obtain from the production of certain objects is before or after 15:45:00 of each day I am taking into consideration.&lt;/P&gt;
&lt;P&gt;So, my idea was to do like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) - MakeTime(15,45,00)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I compare these two, it gives me a very big number, and it seems like the time I create with MakeTime is associated with a very early date instead of just being the time only. How can I deal with this? I just want to understand if an event has happened before this datetime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160602#M94145</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-11T14:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160621#M94147</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;Maybe format like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) - Time(MakeTime(15,45,00))&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Jan 2024 14:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160621#M94147</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-11T14:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160652#M94149</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;, unfortunately I had tried with this but I still get a very large number that isn't what I am looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It come out like this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1704985729742.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126917iDC54A281FE535EF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1704985729742.png" alt="alespooletto_0-1704985729742.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 15:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160652#M94149</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-11T15:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160860#M94180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Try this instead :&lt;/P&gt;
&lt;P&gt;num(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime))-(num(floor(DateTime))+0.65625);&lt;/P&gt;
&lt;P&gt;PS :&amp;nbsp;0.65625 is the numeric value for 15:45:00. I believe this will resolve your issue. Revert if any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Rohan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 06:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160860#M94180</guid>
      <dc:creator>Rohan</dc:creator>
      <dc:date>2024-01-12T06:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160959#M94187</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;If you do one more Time format on top of like this?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time(Time(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) - Time(MakeTime(15,45,00)))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 09:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160959#M94187</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-12T09:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160974#M94189</link>
      <description>&lt;P&gt;Thank you both &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/82500"&gt;@Rohan&lt;/a&gt;&amp;nbsp; for your suggestions. It is still an issue, because when I compare the two datetimes I don't reach the desired result. I will show you here a few things I worked on :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1705051203353.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126978i02096553E04F6A95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1705051203353.png" alt="alespooletto_0-1705051203353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The first 2 columns are the start and end date of a specific task from a machine. What I am looking for is a measure that, when the task is started before 15:45 and ended after 16:00 on any given date, it will remove the 15 minutes duration. In the rightmost column, the measures I have tried with both of your suggestions don't give me the exact result, whereas in the "Overall Measure" column, I have succesfully did one row, but all the others are affected as well. You may check this measure here:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Interval(
    Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime) -
    Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime) -
    If(
        // Break period 10:00 to 10:15
        (
            (Hour(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) = 10 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt; 0) OR
            (Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) = 10 AND Minute(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt; 15)
        ) OR
        // Break period 15:45 to 16:00
        (
            (Hour(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) = 15 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt; 45) OR
            (Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) = 16 AND Minute(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt; 0)
        ),
        // Subtract 15 minutes
        Interval(0.0104167),
        // ELSE IF Break period 12:30 - 13:30
        If(
            (
                (Hour(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) = 12 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt; 30) AND
                (Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) = 13 AND Minute(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt;= 30)
            ),
            // Subtract 1 hour
            Interval(0.0416667),
            // ELSE
            0 // No adjustment
        )
    ),
    'hh:mm:ss'
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please do let me know if you spot any issues with the measure, such as it will exit the conditions I want to give it. The conditions are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF datetime of start before 10:00 or before 12:30 or before 15:45&lt;/P&gt;
&lt;P&gt;AND datetime of end after 10:15 or after 13:30 or after 16:00&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THEN remove the time in between of those for the total duration when subtracting them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The objective is to get a final duration of the product time that takes into consideration when the machine is stopped being operated on. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 12:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2160974#M94189</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-12T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161110#M94207</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;Condition look ok for me, Is there any error when you validate?&lt;/P&gt;
&lt;P&gt;And, The same screenshot you sent please do like this&lt;/P&gt;
&lt;P&gt;Expression 1: Time(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime))&lt;/P&gt;
&lt;P&gt;Expression 2: Time(MakeTime(15,45,00))&lt;/P&gt;
&lt;P&gt;Final:&amp;nbsp;Time(Time(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) - Time(MakeTime(15,45,00)))&lt;/P&gt;
&lt;P&gt;Send us screenshot again to see the rows that what is difference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 13:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161110#M94207</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-12T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161123#M94210</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately the conditions albeit they seem fine but they seem to&amp;nbsp;&lt;EM&gt;always&lt;/EM&gt; subtract the 15 minutes when the time is either 15 or 16. Not just when necessary. You can see an example here, with the 3 columns you asked:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_0-1705068153593.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127007i0A831E635E2B3FC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_0-1705068153593.png" alt="alespooletto_0-1705068153593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The products before 15 are okay, not presenting the subtraction with 15 minutes. For the step started at 15:43, and ended at 16:07 this is also okay, as it correctly subtracts the 15 minutes. But the others get subtracted without it being necessary.&lt;/P&gt;
&lt;P&gt;I have also started wondering if this is related to the default times that I have pre-fixed in the app. Thanks for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161123#M94210</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-12T14:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161125#M94211</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;With this, It is really difficult to help because I don't have any data to test with.&lt;/P&gt;
&lt;P&gt;If you add before 10 AM, It never understand to Qlik on which date &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; So, For that, I have created a flag long back to determine that what duration is needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assume, If(Time(10)&amp;gt;10 &lt;STRONG&gt;and&lt;/STRONG&gt; Flag='Morning', ......)&lt;/P&gt;
&lt;P&gt;Here the Flag is calculated from If(Time(10)&amp;gt;00 and Time(10)&amp;lt;10, 'Morning'), ...&lt;/P&gt;
&lt;P&gt;With this, The condition can understand on the full 24 hours with AM and PM to determined due to &lt;STRONG&gt;AND&lt;/STRONG&gt; operator (I assume).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161125#M94211</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-12T14:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161128#M94212</link>
      <description>&lt;P&gt;I'm very sorry&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;, I'm not understanding well. Do you mean to place a flag and then use binary conditions with that? If you want some data to test with, I can give you the extraction of that table, the data is all masked anyway.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161128#M94212</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-12T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161130#M94213</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;Sorry and Exactly, With Binary conditions combination you can be able to because like I said that data shows with Time and not full timestamp so Qlik not able to process the Time if that is with Date.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161130#M94213</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-12T14:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161542#M94263</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;Hey, sorry for the delay. I was able to work with this in a different, and actually easier way. But so far, I only have to work on adding a couple more details, such as removing 16 hours when the product was started at 17:29 for example and finished 8:31 the next day. Or 48+16 hours if it's started on Friday and finished Monday.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the current formula. I feel like adding new IFs at the end would be the straightforward choice. But I am curious if in QLIK there is a function like SWITCH in Power BI, where you can get multiple IF statements at once?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Interval(
    Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime) -
    Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime) -
    If(
        // Break period 10:00 to 10:15
        (
            (Hour(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt;= 10 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt; 0) AND
		    (Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt;= 10 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;gt; 15)
        ) OR
        // Break period 15:45 to 16:00
        (
        	(Hour(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt;= 15 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt; 45) AND
		    (Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt;= 16 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;gt; 0)
        ),
        // Subtract 15 minutes
        Interval(0.0104167),
        // ELSE IF Break period 12:30 - 13:30
        If(
            (
                (Hour(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt;= 12 AND Minute(Min({&amp;lt;ACTION_CODE={'LABOR_ON'}&amp;gt;} DateTime)) &amp;lt; 30) AND
                (Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt;= 13 AND Minute(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime)) &amp;gt;= 30)
            ),
            // Subtract 1 hour
            Interval(0.0416667),
            // ELSE
            0 // No adjustment
        )
    ),
    'hh:mm:ss'
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Jan 2024 09:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161542#M94263</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-15T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161565#M94265</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/253882"&gt;@alespooletto&lt;/a&gt;&amp;nbsp;SWITCH is there, but not in UX and it is designed only in Script So, I would recommend you move from UX to script level because such conditions will degrade the performance on object level, and it decreases the performance of whole dashboard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 09:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161565#M94265</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2024-01-15T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compare a time obtained from Min to one created with MakeTime()</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161593#M94267</link>
      <description>&lt;P&gt;Yes, I think it's better to move all at the script level. The only issue I have is when I tried before, I couldn't seem to use operations such as&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Hour(Max({&amp;lt;ACTION_CODE={'LABOR_OFF'}&amp;gt;} DateTime))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because it wouldn't properly read those {} graphs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much again.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 10:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-a-time-obtained-from-Min-to-one-created-with-MakeTime/m-p/2161593#M94267</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-01-15T10:25:03Z</dc:date>
    </item>
  </channel>
</rss>

