<?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 Group By Date data load is not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839510#M69462</link>
    <description>&lt;P&gt;I have the following data load script, and I'm trying to summarize (Average) the data by Date and station.&amp;nbsp; The source data in the QVD file is stored by DateTime stamp, so there will be multiple records per day and station, so the goal here is to get an average temperature per day by station and an average humidity per day by station.&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Date,&lt;BR /&gt;station,&lt;BR /&gt;Avg(relative_humidity) as Humidity,&lt;BR /&gt;Avg(temp_f) as Temp&lt;BR /&gt;FROM [lib://QVDFiles (tasp-qlik_administrator)/QVDFiles/MyQVDFile.qvd](qvd)&lt;BR /&gt;Where Date &amp;gt;= '1/1/2018'&lt;BR /&gt;Group by Date,station;&lt;/P&gt;&lt;P&gt;The data load, however, is not being properly grouped and averaged correctly; as you can see in this screen shot, there are multiple duplicate entries by Date and station, so it's apparent to me that the Group By load is not working as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1632763833873.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62844iBD7FB4F545FE3F17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1632763833873.png" alt="mikegrattan_0-1632763833873.png" /&gt;&lt;/span&gt;&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, 27 Sep 2021 17:32:21 GMT</pubDate>
    <dc:creator>mikegrattan</dc:creator>
    <dc:date>2021-09-27T17:32:21Z</dc:date>
    <item>
      <title>Group By Date data load is not working</title>
      <link>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839510#M69462</link>
      <description>&lt;P&gt;I have the following data load script, and I'm trying to summarize (Average) the data by Date and station.&amp;nbsp; The source data in the QVD file is stored by DateTime stamp, so there will be multiple records per day and station, so the goal here is to get an average temperature per day by station and an average humidity per day by station.&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;Date,&lt;BR /&gt;station,&lt;BR /&gt;Avg(relative_humidity) as Humidity,&lt;BR /&gt;Avg(temp_f) as Temp&lt;BR /&gt;FROM [lib://QVDFiles (tasp-qlik_administrator)/QVDFiles/MyQVDFile.qvd](qvd)&lt;BR /&gt;Where Date &amp;gt;= '1/1/2018'&lt;BR /&gt;Group by Date,station;&lt;/P&gt;&lt;P&gt;The data load, however, is not being properly grouped and averaged correctly; as you can see in this screen shot, there are multiple duplicate entries by Date and station, so it's apparent to me that the Group By load is not working as expected.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mikegrattan_0-1632763833873.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/62844iBD7FB4F545FE3F17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mikegrattan_0-1632763833873.png" alt="mikegrattan_0-1632763833873.png" /&gt;&lt;/span&gt;&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, 27 Sep 2021 17:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839510#M69462</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2021-09-27T17:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Date data load is not working</title>
      <link>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839533#M69465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49220"&gt;@mikegrattan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;just making sure that your date field is really date without timestamp remainder.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;floor(Date) as Date&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;station,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avg(relative_humidity) as Humidity,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Avg(temp_f) as Temp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM [lib://QVDFiles (tasp-qlik_administrator)/QVDFiles/MyQVDFile.qvd](qvd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Where Date &amp;gt;= '1/1/2018'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Group by &lt;STRONG&gt;floor(Date)&lt;/STRONG&gt;,station;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;m&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 19:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839533#M69465</guid>
      <dc:creator>mato32188</dc:creator>
      <dc:date>2021-09-27T19:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Group By Date data load is not working</title>
      <link>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839541#M69466</link>
      <description>&lt;P&gt;Ah, yes, the Floor() function!&amp;nbsp; Thanks, that worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 20:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-By-Date-data-load-is-not-working/m-p/1839541#M69466</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2021-09-27T20:06:17Z</dc:date>
    </item>
  </channel>
</rss>

