<?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: Reset Timer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539544#M746814</link>
    <description>&lt;P&gt;The expression&amp;nbsp;&lt;SPAN&gt;LET vLastOperation = Peek('Operation', NoOfRows('TableName')-1,'TableName'); is returning null, what could it be?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 10:36:03 GMT</pubDate>
    <dc:creator>renatoteles</dc:creator>
    <dc:date>2019-02-05T10:36:03Z</dc:date>
    <item>
      <title>Reset Timer</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1538625#M746810</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have a dashboard getting a table from a database. This table has a field to indicate the type of operation (Start,Point,Stop and Finish).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´ve configured an object text with the sentence below to work like a decreasing timer&amp;nbsp;&lt;/P&gt;&lt;P&gt;=interval(variable1-now())&lt;/P&gt;&lt;P&gt;The variable1 is set with the expression:&lt;/P&gt;&lt;P&gt;=timestamp(now()+(3/1440))&lt;/P&gt;&lt;P&gt;I need to reset the timer (update the variable1)&amp;nbsp;always when&amp;nbsp;the type of the last row is equal to Start or Point and stop the timer when the last row is equal to Stop or Finish.&lt;/P&gt;&lt;P&gt;Does anyone knows how can i do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1538625#M746810</guid>
      <dc:creator>renatoteles</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Timer</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1538685#M746811</link>
      <description>Hi, I'm not sure to understand your question... maybe you can add the value while reloading data, using Peek().&lt;BR /&gt;&lt;BR /&gt;If it's in design time you can use bottom() to reach the last record inside the table.&lt;BR /&gt;&lt;BR /&gt;If it's outside the table you can use set analysis to emulate the table query for the last row and use the value returned.&lt;BR /&gt;&lt;BR /&gt;Can you post a sample of what are you trying to do?</description>
      <pubDate>Sat, 02 Feb 2019 09:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1538685#M746811</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-02-02T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Timer</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539052#M746812</link>
      <description>&lt;P&gt;Hi Rubenmarin,&lt;/P&gt;&lt;P&gt;Follow below a screenshot of the panel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Panel.png" style="width: 356px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5132iE597ACD513C84B43/image-dimensions/356x178?v=v2" width="356" height="178" role="button" title="Panel.png" alt="Panel.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There's no user's interaction with the panel and i'll set to reload continuously, so, when the last record has the type Start or Pointment , the timer&amp;nbsp;will reset an start the countdown and where has the type Stop or Finish the timer will have the value 00:00:00 till start again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 11:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539052#M746812</guid>
      <dc:creator>renatoteles</dc:creator>
      <dc:date>2019-02-04T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Timer</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539272#M746813</link>
      <description>don't know, maybe:&lt;BR /&gt;TableName:&lt;BR /&gt;LOAD * from table;&lt;BR /&gt;&lt;BR /&gt;// store last row operation in a variable&lt;BR /&gt;LET vLastOperation = Peek('Operation', NoOfRows('TableName')-1,'TableName');&lt;BR /&gt;&lt;BR /&gt;// Create expression based on last row operation&lt;BR /&gt;IF '$(vLastOperation)'='Start' or '$(vLastOperation)'='Pointment' THEN&lt;BR /&gt;SET Expression = =interval(variable1-now());&lt;BR /&gt;ELSE&lt;BR /&gt;SET Expression = =interval(0);&lt;BR /&gt;ENDIF&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539272#M746813</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-02-04T18:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Timer</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539544#M746814</link>
      <description>&lt;P&gt;The expression&amp;nbsp;&lt;SPAN&gt;LET vLastOperation = Peek('Operation', NoOfRows('TableName')-1,'TableName'); is returning null, what could it be?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 10:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539544#M746814</guid>
      <dc:creator>renatoteles</dc:creator>
      <dc:date>2019-02-05T10:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Timer</title>
      <link>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539894#M746815</link>
      <description>Try adding Noofrows in a different variable to check:&lt;BR /&gt;LET vNumRows = NoOfRows('TableName');&lt;BR /&gt;LET vLastOperation = Peek('Operation', $(vNumRows )-1,'TableName');&lt;BR /&gt;&lt;BR /&gt;And confirm table rows (in log or Document properties-&amp;gt;tables) should be the same as vNumRows, also confirm that the last row has a value in OperationField.&lt;BR /&gt;'Operation' should be the field name&lt;BR /&gt;'TableName' should be the table name</description>
      <pubDate>Tue, 05 Feb 2019 20:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reset-Timer/m-p/1539894#M746815</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-02-05T20:40:53Z</dc:date>
    </item>
  </channel>
</rss>

