<?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: calculate average value on timestamp in a graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669530#M50558</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;After a closer look at this I can see that it's not working. The new variable is not created.&lt;/P&gt;&lt;P&gt;It seems as if you can't created a variable based on another variable in the load script&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 12:00:40 GMT</pubDate>
    <dc:creator>stekol61</dc:creator>
    <dc:date>2020-01-27T12:00:40Z</dc:date>
    <item>
      <title>calculate average value on timestamp in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1668991#M50516</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have calculated values for response time (during Business Hours) for tickets.&lt;/P&gt;&lt;P&gt;I want to present average response time per month.&lt;/P&gt;&lt;P&gt;I converted the timestamp values from 'hh:mm:ss' to minutes into a new variable (response_time_bh (min:))using this formula:&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Num#(Subfield(winc_response_time_bh,':',1)) *60&lt;BR /&gt;+ Num#(Subfield(winc_response_time_bh,':',2))&lt;BR /&gt;+ Num#(Subfield(winc_response_time_bh,':',3))/60&lt;/P&gt;&lt;P&gt;Then I can easily calculate the average&amp;nbsp;response time in a table.&lt;/P&gt;&lt;P&gt;When i try to do the same in a graph it doesn't give the correct value.&lt;/P&gt;&lt;P&gt;Any suggestion how this can be solved?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Ticket ID&lt;/TD&gt;&lt;TD&gt;response_time_bh&lt;/TD&gt;&lt;TD&gt;response_time_bh (min)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OP-000001700301&lt;/TD&gt;&lt;TD&gt;102:01:45&lt;/TD&gt;&lt;TD&gt;6 121,8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OP-000001697522&lt;/TD&gt;&lt;TD&gt;03:19:41&lt;/TD&gt;&lt;TD&gt;199,7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OP-000001689558&lt;/TD&gt;&lt;TD&gt;05:03:43&lt;/TD&gt;&lt;TD&gt;303,7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OP-000001665107&lt;/TD&gt;&lt;TD&gt;278:34:00&lt;/TD&gt;&lt;TD&gt;16 714,0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OP-000001655877&lt;/TD&gt;&lt;TD&gt;302:03:55&lt;/TD&gt;&lt;TD&gt;18 123,9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;OP-000001653706&lt;/TD&gt;&lt;TD&gt;296:02:07&lt;/TD&gt;&lt;TD&gt;17 762,1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 24 Jan 2020 14:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1668991#M50516</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-01-24T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average value on timestamp in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669031#M50522</link>
      <description>You can add the field "response_time_bh_min" to the script and then to the chart. This also improves the performance of the app as less calculations are needed in the UI.</description>
      <pubDate>Fri, 24 Jan 2020 15:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669031#M50522</guid>
      <dc:creator>TimvB</dc:creator>
      <dc:date>2020-01-24T15:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average value on timestamp in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669332#M50546</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I added this to the load script:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;(Num#(Subfield(response_time_bh,':',1)) *60&lt;BR /&gt;+ Num#(Subfield(response_time_bh,':',2))&lt;BR /&gt;+ Num#(Subfield(response_time_bh,':',3))/60)as new_response_time_min_bh&lt;/P&gt;&lt;P&gt;It works but the result is 'hh:mm:ss' and I don't thing I can calculate an average on that format.&lt;/P&gt;&lt;P&gt;Also the 'response_time_bh' is calculated in the load script with the format&amp;nbsp; 'hh:mm:ss'&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 09:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669332#M50546</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-01-27T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculate average value on timestamp in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669530#M50558</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;After a closer look at this I can see that it's not working. The new variable is not created.&lt;/P&gt;&lt;P&gt;It seems as if you can't created a variable based on another variable in the load script&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 12:00:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/calculate-average-value-on-timestamp-in-a-graph/m-p/1669530#M50558</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-01-27T12:00:40Z</dc:date>
    </item>
  </channel>
</rss>

