<?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 Calculation on Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130616#M760470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date filed called Breach Time in MM/DD/YYYY hh:mm:ss format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want below logic to be applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will check if it is crossing 17:00:00 or not, if crossing then Qlik will check the difference and the difference will be added from 08:00:00 AM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;Case 1: 10-04-2018&amp;nbsp; 15:34:32 --- will show same&amp;nbsp; 10-04-2018&amp;nbsp; 15:34:32.&lt;/P&gt;&lt;P&gt;Case 2: 10-04-2018&amp;nbsp; 19:34:32 --- Will show&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-05-2018&amp;nbsp; 10:34:32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mhmmd_srf</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130616#M760470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date filed called Breach Time in MM/DD/YYYY hh:mm:ss format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want below logic to be applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will check if it is crossing 17:00:00 or not, if crossing then Qlik will check the difference and the difference will be added from 08:00:00 AM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;Case 1: 10-04-2018&amp;nbsp; 15:34:32 --- will show same&amp;nbsp; 10-04-2018&amp;nbsp; 15:34:32.&lt;/P&gt;&lt;P&gt;Case 2: 10-04-2018&amp;nbsp; 19:34:32 --- Will show&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10-05-2018&amp;nbsp; 10:34:32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&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/Calculation-on-Date/m-p/130616#M760470</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130617#M760471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TimeStamp(If(Hour([Breach Time) &amp;gt; 17, [Breach Time] + MakeTime(15), [Breach Time])) as [Breach Time]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=TimeStamp(If(Hour(MakeDate(2018, 10, 4) + MakeTime(19, 34, 32)) &amp;gt; 17,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MakeDate(2018, 10, 4) + MakeTime(19, 34, 32) + MakeTime(15), MakeDate(2018, 10, 4) + MakeTime(19, 34, 32)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Aug 2018 22:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130617#M760471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-11T22:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130618#M760472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Above expression is throwing error saying hour takes 1 parameter.&lt;/P&gt;&lt;P&gt;and second thing putting 15 is right approach here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;TimeStamp(If(Hour([Breach Time) &amp;gt; 17, [Breach Time] + &lt;SPAN style="color: #ff0000;"&gt;MakeTime(15)&lt;/SPAN&gt;, [Breach Time])) as [Breach Time]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Please suggest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Sarif&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2018 05:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130618#M760472</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-08-12T05:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130619#M760473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is wrong if you get to the right result? I mean do you have a scenario where it doesn't match... from what I understood... if the time is 17:01 PM... you want to make it 8:01 AM the next day, right? 7 Hour from today and 8 hours from tomorrow make it 15 hours... what is wrong about this approach? May be I am missing something, but feel free to correct me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I missed a square bracket after Breach Time within Hour... try this&lt;/P&gt;&lt;P&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; font-weight: bold;"&gt;TimeStamp(If(Hour([Breach Time]) &amp;gt; 17, [Breach Time] + &lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;MakeTime(15)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-weight: bold;"&gt;, [Breach Time])) as [Breach Time]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2018 13:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130619#M760473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-12T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130620#M760474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;working with date or timestamp the best technique is to convert in Numeric format do you calsulations and then convert numeric back to timestamp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2018 14:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130620#M760474</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2018-08-12T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130621#M760475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Sunny it was my mistake. I misunderstood.&lt;/P&gt;&lt;P&gt;Let me check it thoroughly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2018 15:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130621#M760475</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-08-12T15:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130622#M760476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working always. I am attaching my test file. Please check for &lt;STRONG&gt;INC0972080&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Please check Bus_Breach_New and BreachTime_New1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sarif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 10:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130622#M760476</guid>
      <dc:creator>mhmmd_srf</dc:creator>
      <dc:date>2018-08-13T10:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation on Date</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130623#M760477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to consider the minutes, seconds as well. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(TimeStamp(If(&lt;STRONG&gt;frac(Bus_Breach_New)&amp;gt;17/24,&lt;/STRONG&gt;&amp;nbsp; [Bus_Breach_New] + MakeTime(15), [Bus_Breach_New])),'MM/DD/YYYY hh:mm:ss') &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; font-weight: bold;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;as [Breach Time]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 10:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-on-Date/m-p/130623#M760477</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-08-13T10:48:53Z</dc:date>
    </item>
  </channel>
</rss>

