<?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: Subtract from date time field using Interval in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748120#M453432</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114076"&gt;@rafaelsch&lt;/a&gt;&amp;nbsp; you can test for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=Timestamp(interval(Timestamp#(YOURFIELD,'dd/mm/yyyy hh:mm')-7,'D'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=Timestamp(interval(Timestamp#('15/12/2019 05:00','dd/mm/yyyy hh:mm')-7,'D'))&lt;/LI-CODE&gt;&lt;P&gt;the output is :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 403px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41399i3D21F7696A6C7063/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET DateFormat='dd/mm/yyyy';&lt;BR /&gt;SET TimestampFormat='dd/mm/yyyy hh:mm]';&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:31:11 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-09-29T13:31:11Z</dc:date>
    <item>
      <title>Subtract from date time field using Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748112#M453431</link>
      <description>&lt;P&gt;Here is my scenario. I'm trying to subtract 7 days from a date time field.&lt;/P&gt;&lt;P&gt;Example: MyField : 15/12/2019 05:00&amp;nbsp; -&amp;gt; (dd/mm/yyyy hh:mm).&lt;BR /&gt;The result I'm expecting is :&amp;nbsp;&amp;nbsp;08/12/2019 05:00&amp;nbsp; &amp;nbsp;&amp;gt; (dd/mm/yyyy hh:mm).&lt;/P&gt;&lt;P&gt;When I remove the hour from MyField it works well . I use the interval function to do the job:&lt;/P&gt;&lt;P&gt;Date(interval([DATA] - 7,'D'),'DD/MM/YYYY'). The result is&amp;nbsp;08/12/2019 .&lt;/P&gt;&lt;P&gt;When I try something like this it doesn't work:&lt;/P&gt;&lt;P&gt;Date(interval([DataHra] - 7,'D'),'DD/MM/YYYY hh:mm').&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748112#M453431</guid>
      <dc:creator>rafaelsch</dc:creator>
      <dc:date>2024-11-16T18:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract from date time field using Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748120#M453432</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114076"&gt;@rafaelsch&lt;/a&gt;&amp;nbsp; you can test for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=Timestamp(interval(Timestamp#(YOURFIELD,'dd/mm/yyyy hh:mm')-7,'D'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=Timestamp(interval(Timestamp#('15/12/2019 05:00','dd/mm/yyyy hh:mm')-7,'D'))&lt;/LI-CODE&gt;&lt;P&gt;the output is :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 403px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41399i3D21F7696A6C7063/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET DateFormat='dd/mm/yyyy';&lt;BR /&gt;SET TimestampFormat='dd/mm/yyyy hh:mm]';&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748120#M453432</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-09-29T13:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract from date time field using Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748138#M453434</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114076"&gt;@rafaelsch&lt;/a&gt;&amp;nbsp; &amp;nbsp;set the timestamp format as below based on your source data values.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET TimestampFormat='DD/MM/YYYY hh:mm'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you can simply use below and you can also provide the format of your choice&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=timestamp(DATE_FIELD-7,'DD/MM/YYYY hh:mm')&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:42:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748138#M453434</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-29T14:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Subtract from date time field using Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748151#M453437</link>
      <description>&lt;P&gt;It worked. Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subtract-from-date-time-field-using-Interval/m-p/1748151#M453437</guid>
      <dc:creator>rafaelsch</dc:creator>
      <dc:date>2020-09-29T15:05:49Z</dc:date>
    </item>
  </channel>
</rss>

