<?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: Variable for past 24 hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849527#M1008646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My opinion too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v24HoursAgo = Date(now()-1, 'MM/DD/YYYY hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to see the timestamp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 09:19:28 GMT</pubDate>
    <dc:creator>simospa</dc:creator>
    <dc:date>2015-05-13T09:19:28Z</dc:date>
    <item>
      <title>Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849523#M1008642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below script for creating a variable for Previous day's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varPreviousDay = '(' &amp;amp; DayName(DayStart(today()-1)) &amp;amp; ')';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please someone help me with script for creating a variable - Past 24 Hours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:07:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849523#M1008642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T09:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849524#M1008643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET v24HoursAgo = now()-1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849524#M1008643</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-13T09:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849525#M1008644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May a bit simpler:&lt;/P&gt;&lt;P&gt;LET varPreviousDay = '(' &amp;amp; DayName(&lt;STRONG&gt;today()-1&lt;/STRONG&gt;) &amp;amp; ')';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849525#M1008644</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-05-13T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849526#M1008645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not as cleans as Gysberts but the same principle &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v24H = date(now()-1)&amp;amp;' '&amp;amp; time(now())&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849526#M1008645</guid>
      <dc:creator />
      <dc:date>2015-05-13T09:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849527#M1008646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My opinion too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v24HoursAgo = Date(now()-1, 'MM/DD/YYYY hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to see the timestamp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849527#M1008646</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-05-13T09:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849528#M1008647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt replies friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a column of TimeStamps like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5/12/2015 1:20:02 PM&lt;/P&gt;&lt;P&gt;5/11/2015 11:30:05 PM&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;etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to select dates (timestamps) for the tickets created in last 24 hours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET varPreviousDay = '(' &amp;amp; DayName(DayStart(today()-1)) &amp;amp; ')'; and the result is it is selecting 5/12/2015 tickets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to select the last 24 hours. The current time of mine is now 5/13/2015 2:55 PM IST.&lt;/P&gt;&lt;P&gt;I want to select the date / time stamps for last 24 hours like 5/12/2015 2:55 PM IST to &lt;SPAN style="font-size: 13.3333330154419px;"&gt;5/13/2015 2:55 PM IST.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849528#M1008647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849529#M1008648</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;Setup an expression where you only show the values that are bigger then your set variable time stamp and you should get the correct behavior. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849529#M1008648</guid>
      <dc:creator />
      <dc:date>2015-05-13T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849530#M1008649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hampus, Sorry for asking. I am not able to understand. I have tried the last response received &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET v24HoursAgo = Date(now()-1, 'MM/DD/YYYY hh:mm:ss'); and it is showing the variable result as time stamp before 24 hours. But when I am using this variable in a button. it is looking for the entry at that particular timestamp.&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;We need to find a way for a script variable to show the time stamp which will select all the timestamp entries for the last 24 hours.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849530#M1008649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T09:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849531#M1008650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to be simpler... Select all the tickets created between the timestamp of last 24 hours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849531#M1008650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T09:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849532#M1008651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about create a field concatenated as yyyymmddhhmmss, either for variable and your timestamps and use that?&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 09:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849532#M1008651</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-05-13T09:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849533#M1008652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you suggest creating the field please..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know if we can create a variable like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Between DD/MM/YYYY HH:MM:SS and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;DD/MM/YYYY HH:MM:SS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A variable for timestamp which comes in between last 24 hours&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 10:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849533#M1008652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T10:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849534#M1008653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any suggestions for selecting dates after - 10 hours&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 10:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849534#M1008653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T10:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849535#M1008654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use Num function. For example this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v24HoursAgo = Num(Date(now()-1, 'MM/DD/YYYY hh:mm:ss')); //number that identify the timestamp of 24 hours ago in numeric format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v10HoursAgo = timestamp(Now() - 10/24); //10 hours ago&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;LET v10HoursAgoNumeric = Num(timestamp(Now() - 10/24)); //10 hours ago in numeric format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creates a variable like 42136,571666667 at 05/12/2015 13:43:12, 42136,571840278 at 05/12/2015 13:43:27, and so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where yout timestamp values come from, but with a Load you can create an additional field that convert your timestamp in format viewed (something like Num(myTimeStamp as timeStampNum). At this point you can use it as numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know.&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 11:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849535#M1008654</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-05-13T11:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849536#M1008655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET v10HoursAgo = timestamp(Now() - 10/24); //10 hours ago&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;S.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 11:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849536#M1008655</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-05-13T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849537#M1008656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Simone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My TimeStamp field is CreatedDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am using this Variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LET v10HoursAgo = timestamp(Now() - 10/24); //10 hours ago I am able to get the result but....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am using this via Select In Field using a button to select the v10HoursAgo TimeStamp it is selecting the ticket created on the particular time which is 10 hours ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example: If the v10HoursAgo result is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;05/12/2015 13:43:27 then when I am using this selection it displays the tickets created on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;05/12/2015 13:43:27 and if there is no tickets created on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;05/12/2015 13:43:27 then my selection result is 0. I mean if a ticket is created on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;05/12/2015 13:45:00 instead of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;05/12/2015 13:43:27 then when I do a selection using v10HoursAgo the selection result is 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our ultimate goal is to display all the ticket numbers created since the last 10 hours.... Need your valuable helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 12:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849537#M1008656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-13T12:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variable for past 24 hours</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849538#M1008657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem now seems to be in Select in field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type in Search String field something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='&amp;gt;= $(=v10HoursAgo)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know.&lt;/P&gt;&lt;P&gt;S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 12:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-for-past-24-hours/m-p/849538#M1008657</guid>
      <dc:creator>simospa</dc:creator>
      <dc:date>2015-05-13T12:44:41Z</dc:date>
    </item>
  </channel>
</rss>

