<?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 Timestamp interpretation and manipulation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188612#M51801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is delayed by a month, you need to count between addmonths(today(),-2) and addmonths(today(),-1) using the set analysis formula I gave you. Using just month()+1 won't work because that ignores year. You need to use dates unless you have a month-year field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Sep 2010 00:03:13 GMT</pubDate>
    <dc:creator>vgutkovsky</dc:creator>
    <dc:date>2010-09-11T00:03:13Z</dc:date>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188605#M51794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, I have an excel file which has log activity for helpdesk. We have two fields - call creation time and call end time - which I would like to do manipulations on. The format of the field is as in this example "02/08/2010 11:54 AM". Since the data is being imported from excel, I'm not sure if it coming in as text or time. I'm having trouble finding the right function to interpret the field. These are things I want to do:&lt;/P&gt;&lt;P&gt;1) Determine the month from the create time so I can do anaysis on calls in a particular month&lt;BR /&gt;2) Determine the year from the create time&lt;BR /&gt;3) Determine the quarter from the create time&lt;BR /&gt;4) Subtract the create time and end time to analyze the response time for calls&lt;/P&gt;&lt;P&gt;I'm not able to figure out how to use the timestamp# function or others to do this. Please help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 06:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188605#M51794</guid>
      <dc:creator />
      <dc:date>2010-09-04T06:50:35Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188606#M51795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;month(timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt'))&lt;/LI&gt;&lt;LI&gt;year(timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt'))&lt;/LI&gt;&lt;LI&gt;if(month(timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt'))&amp;lt;4,1,if(month(timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt'))&amp;lt;7,2,if(month(timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt'))&amp;lt;10,3,4)))&lt;/LI&gt;&lt;LI&gt;timestamp#(endtimefieldname,'MM/DD/YYYY hh:mm tt') - timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt')&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Sep 2010 22:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188606#M51795</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-04T22:42:39Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188607#M51796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that worked. Now can you help me take this two steps forward:&lt;/P&gt;&lt;P&gt;1) I want to summarize response time (completion timestamp - create timestamp) into different segments in a bar chart, to clearly understand the service level being provided. So I need to know how many calls were answered in the following agreed time slots: &amp;lt;1hr, &amp;lt;3hr, &amp;lt;5hr, &amp;lt;1day, &amp;lt;3days, &amp;gt;3 days. What is the best way for doing this?&lt;/P&gt;&lt;P&gt;2) I also want to create a chart which compares calls answered by each of the 5 technicians in the month that just got completed (i.e. Aug) with the previous month (i.e. Jul). Each call is answered by 1 technician, so a row of data has technician name, other parameters, creation and completion date.&lt;/P&gt;&lt;P&gt;Plz do not attach a file with an example since I may not be able to open it in the Personal Edition.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 18:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188607#M51796</guid>
      <dc:creator />
      <dc:date>2010-09-05T18:12:16Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188608#M51797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;You would need to use some sort of rounding function (like ceil() for example) to put all the response times into the groups you described. Most likely you would do this with nested IFs in your script and create a separate field for the groups. 1/24 would be your segment since the smallest level of detail you care about is an hour. For example: &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;ceil(timestamp#(endtimefieldname,'MM/DD/YYYY hh:mm tt') - timestamp#(creationfieldname,'MM/DD/YYYY hh:mm tt'),1/24) * 24 as [# of Hours]&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;Once you have this rounded up to the nearest hour, it should be simple to use this new field to create a second field that would be 1 hour, 3 hours, 5 hours, etc. Then you would use this second new field as the dimension of your chart.&lt;/LI&gt;&lt;LI&gt;That chart would have Technician as a dimension and something like the following 2 expressions, assuming you want to compare the volume of calls: (1) count({&amp;lt;Month={"=month(today())"}&amp;gt;} distinct CallId) (2) count({&amp;lt;Month={"=month(addmonths(today()),-1)"}&amp;gt;} distinct CallId)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Sep 2010 18:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188608#M51797</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-05T18:37:41Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188609#M51798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. 1) seemed to work, though I'll have to play around with it a bit. Since ciel() is returning # of hours, is there a function to get # of minutes (and not with # of hr * 60). Also, how can I subtract non-working days from this calculation, if the creation timestamp is on Friday and the completion is on Tue&lt;/P&gt;&lt;P&gt;#2 didn't work. My graph has "Technician" as dimension. Previously, I just had count(Technician) as the Expression, which gave me grand total for each technician. But now putting this formula still gives me the grand total for each technician: count({&amp;lt;Month={"=month(today())"}&amp;gt;} distinct [Request ID])&lt;/P&gt;&lt;P&gt;Its not reading the month field. In my load script, I am identifying the month for each record by:&lt;BR /&gt;month(timestamp#(trim([Created Time]),'DD/MM/YYYY hh:mm tt'))as Month&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So adding the second Expression also has no impact.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 05:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188609#M51798</guid>
      <dc:creator />
      <dc:date>2010-09-06T05:53:40Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188610#M51799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean that you want to round it up to the nearest minute, use 1440 instead of 24.&lt;/P&gt;&lt;P&gt;The reason the second expression isn't working is because I wasn't sure how your fields were called. If should work if you change it to something this: count({&amp;lt;[Request Date]={"&amp;gt;=monthstart(today())"},[Request Date]={"&amp;lt;=monthend(today())"}&amp;gt;} distinct [Request ID]). For the previous month, do the same logic with the addmonths() function added.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Sep 2010 06:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188610#M51799</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-06T06:25:24Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188611#M51800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working yet, so I'm putting the statements here ... plz advice. Also, do note that I have only upto August data. Sept data will come in October.&lt;/P&gt;&lt;P&gt;count({&amp;lt;Date={"&amp;gt;=addmonths(today(),-2)"},Date={"&amp;lt;=addmonths(today(),-1)"}&amp;gt;} distinct [Request ID])&lt;BR /&gt;but this gives me no output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've even tried the following just to get the data from last month:&lt;BR /&gt;count({&amp;lt;Month={"=month(today())-1"}&amp;gt;} distinct [Request ID])&lt;BR /&gt;but this gives me the count for all the months!&lt;/P&gt;&lt;P&gt;From the Script,&lt;BR /&gt;month(timestamp#(trim([Created Time]),'DD/MM/YYYY hh:mm tt'))as Month,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 14:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188611#M51800</guid>
      <dc:creator />
      <dc:date>2010-09-10T14:36:36Z</dc:date>
    </item>
    <item>
      <title>Timestamp interpretation and manipulation</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188612#M51801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data is delayed by a month, you need to count between addmonths(today(),-2) and addmonths(today(),-1) using the set analysis formula I gave you. Using just month()+1 won't work because that ignores year. You need to use dates unless you have a month-year field.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Sep 2010 00:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-interpretation-and-manipulation/m-p/188612#M51801</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-09-11T00:03:13Z</dc:date>
    </item>
  </channel>
</rss>

