<?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: Round to nearest second and grouping by DateTime field isn't working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482534#M100941</link>
    <description>&lt;P&gt;Hi Or, thank you very much for the fast reply.&lt;/P&gt;
&lt;P&gt;I changed to:&amp;nbsp;timestamp(Floor(SignalTimestamp_UTC,1/86400), 'YYYY-MM-DD hh:mm:ss') as DateTime,&lt;/P&gt;
&lt;P&gt;and it works beautifully!&lt;/P&gt;
&lt;P&gt;Thanks again, you're a life saver &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2024 12:03:08 GMT</pubDate>
    <dc:creator>Polido</dc:creator>
    <dc:date>2024-09-19T12:03:08Z</dc:date>
    <item>
      <title>Round to nearest second and grouping by DateTime field isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482518#M100939</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've searched for similar problems and tried everything but this seems to not be working.&lt;/P&gt;
&lt;P&gt;I need to round my data to nearest second and grouping by DateTime field.&lt;/P&gt;
&lt;P&gt;I receive a list of Signals and their values and after I put them into columns and group them by every second of data to have data from every signal in one line.&lt;/P&gt;
&lt;P&gt;I extracted the first 2 steps of my code with 3 signals:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;table1:&lt;BR /&gt;LOAD&lt;BR /&gt;SignalID,&lt;BR /&gt;timestamp(Floor(SignalTimestamp_UTC,1/86400000), 'YYYY-MM-DD hh:mm:ss') as DateTime,&lt;BR /&gt;IF(SignalID = '5aa29df4-7e022ba55784', SignalValueFloat) as Latitude,&lt;BR /&gt;IF(SignalID = '7b963165-76a2fbb67ead', SignalValueFloat) as Longi,&lt;BR /&gt;IF(SignalID = 'd5513705-980546b31115', SignalValueFloat) as TempOel01,&lt;BR /&gt;SignalValueFloat&lt;BR /&gt;FROM [lib://Files DEV-V3/Step1-ETL-E-output/raw_localtime_WW_2024-09-W3.QVD]&lt;BR /&gt;(qvd);&lt;BR /&gt;&lt;BR /&gt;table2:&lt;BR /&gt;Load&lt;BR /&gt;DateTime,&lt;BR /&gt;maxstring(Latitude) as Latitude,&lt;BR /&gt;maxstring(Longi) as Longi,&lt;BR /&gt;maxstring(TempOel01) as TempOel01&lt;BR /&gt;resident table1&lt;BR /&gt;group by DateTime;&lt;/P&gt;
&lt;P&gt;drop table table1;&lt;/P&gt;
&lt;P&gt;exit script;&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The results are in the image attached.&lt;/P&gt;
&lt;P&gt;Thank you very much in advance&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 12:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482518#M100939</guid>
      <dc:creator>Polido</dc:creator>
      <dc:date>2024-09-19T12:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Round to nearest second and grouping by DateTime field isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482525#M100940</link>
      <description>&lt;P&gt;Floor(YourTimeStamp/86400)&lt;/P&gt;
&lt;P&gt;You seem to have had the right idea, but you were rounding to the nearest millisecond.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 11:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482525#M100940</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2024-09-19T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Round to nearest second and grouping by DateTime field isn't working</title>
      <link>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482534#M100941</link>
      <description>&lt;P&gt;Hi Or, thank you very much for the fast reply.&lt;/P&gt;
&lt;P&gt;I changed to:&amp;nbsp;timestamp(Floor(SignalTimestamp_UTC,1/86400), 'YYYY-MM-DD hh:mm:ss') as DateTime,&lt;/P&gt;
&lt;P&gt;and it works beautifully!&lt;/P&gt;
&lt;P&gt;Thanks again, you're a life saver &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 12:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Round-to-nearest-second-and-grouping-by-DateTime-field-isn-t/m-p/2482534#M100941</guid>
      <dc:creator>Polido</dc:creator>
      <dc:date>2024-09-19T12:03:08Z</dc:date>
    </item>
  </channel>
</rss>

