<?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: tAggregation groupby is not working in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276857#M3206</link>
    <description>&lt;P&gt;Hi!&amp;nbsp; A "Date" object in java encapsulates&amp;nbsp; a "Long" number , starting at 1970-01-01 with millisecond precision.&lt;/P&gt; 
&lt;P&gt;Formatting it using a pattern, like&amp;nbsp;"YYYY-MM-DD" doesn't change the actual value of the object.&lt;/P&gt; 
&lt;P&gt;As a consequence, you cant' group Date objects by "same day" but only by "same millisecond"...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To achieve that, first you "format" your date according to what you need for grouping (i.e : day =&amp;gt; "YYYY-MM-DD") , then you convert that field of type "Date" into String (usint tConvertType or automatic conversion in tMap).&amp;nbsp; Then you should be able to aggregate on "same day" using that String.&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, 06 May 2019 14:04:24 GMT</pubDate>
    <dc:creator>act</dc:creator>
    <dc:date>2019-05-06T14:04:24Z</dc:date>
    <item>
      <title>tAggregation groupby is not working</title>
      <link>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276855#M3204</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have fromTime and toTime columns and by using Datediff i did calculated the minutes of each employees each day.&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Sample Data:-&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;136777|16-01-2019|03:00:00 PM|08:00:00 PM|300&lt;BR /&gt;136777|10-01-2019|07:00:00 PM|08:00:00 PM|60&lt;BR /&gt;136777|02-01-2019|08:00:00 PM|09:00:00 PM|60&lt;BR /&gt;136777|11-01-2019|10:00:00 PM|11:00:00 PM|60&lt;BR /&gt;136777|22-01-2019|09:00:00 AM|11:50:00 AM|170&lt;BR /&gt;136777|28-01-2019|10:00:00 AM|03:00:00 PM|300&lt;BR /&gt;136777|31-01-2019|08:00:00 PM|10:00:00 PM|120&lt;BR /&gt;136777|04-02-2019|08:00:00 PM|09:00:00 PM|60&lt;BR /&gt;136777|05-02-2019|08:00:00 PM|09:00:00 PM|60&lt;BR /&gt;136777|06-02-2019|07:00:00 PM|09:00:00 PM|120&lt;BR /&gt;136777|11-02-2019|08:00:00 PM|09:00:00 PM|60&lt;BR /&gt;136777|15-02-2019|08:00:00 PM|09:00:00 PM|60&lt;BR /&gt;136777|20-02-2019|07:30:00 PM|08:00:00 PM|30&lt;BR /&gt;136777|21-02-2019|07:00:00 PM|07:30:00 PM|30&lt;BR /&gt;136777|22-02-2019|07:30:00 PM|08:15:00 PM|45&lt;BR /&gt;136777|28-02-2019|01:30:00 PM|06:30:00 PM|300&lt;BR /&gt;136777|01-03-2019|07:30:00 PM|09:30:00 PM|120&lt;BR /&gt;136777|06-03-2019|09:05:00 AM|11:03:00 AM|118&lt;BR /&gt;136777|07-03-2019|09:00:00 AM|02:00:00 PM|300&lt;BR /&gt;136777|07-03-2019|03:00:00 PM|06:00:00 PM|180&lt;BR /&gt;136777|06-03-2019|07:00:00 PM|08:00:00 PM|60&lt;BR /&gt;136777|11-03-2019|08:00:00 AM|08:30:00 AM|30&lt;BR /&gt;136777|11-03-2019|08:00:00 PM|09:30:00 PM|90&lt;BR /&gt;136777|13-03-2019|09:05:00 AM|01:54:00 PM|289&lt;BR /&gt;136777|13-03-2019|06:30:00 PM|07:30:00 PM|60&lt;BR /&gt;136777|21-03-2019|07:00:00 PM|07:30:00 PM|30&lt;BR /&gt;136777|23-03-2019|11:00:00 AM|01:00:00 PM|120&lt;BR /&gt;136777|25-03-2019|05:30:00 PM|07:40:00 PM|130&lt;BR /&gt;136777|27-03-2019|09:15:00 AM|02:03:00 PM|288&lt;BR /&gt;136777|27-03-2019|06:30:00 PM|07:30:00 PM|60&lt;BR /&gt;136777|29-03-2019|05:30:00 PM|07:39:00 PM|129&lt;BR /&gt;136777|01-04-2019|07:00:00 PM|09:00:00 PM|120&lt;BR /&gt;136777|02-04-2019|07:00:00 PM|09:00:00 PM|120&lt;BR /&gt;136777|06-04-2019|07:00:00 PM|09:00:00 PM|120&lt;BR /&gt;136777|09-04-2019|08:00:00 PM|11:30:00 PM|210&lt;BR /&gt;136777|10-04-2019|07:00:00 PM|08:00:00 PM|60&lt;BR /&gt;136777|11-04-2019|08:00:00 PM|11:00:00 PM|180&lt;BR /&gt;136777|15-04-2019|02:23:00 PM|06:15:00 PM|232&lt;BR /&gt;136777|17-04-2019|06:30:00 PM|07:30:00 PM|60&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tMap:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-05 at 8.07.05 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M532.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140460i7F8F084700A97AA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M532.png" alt="0683p000009M532.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;When i group by EmpID(1st Column) and Date(Second Column) using tAggregate as below image&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-05 at 8.12.33 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M537.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155062i7DC1DA5C061204F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M537.png" alt="0683p000009M537.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The output is still same&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-05 at 8.13.14 PM.png" style="width: 619px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M53C.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153116i631927403783A06E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M53C.png" alt="0683p000009M53C.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anyone please correct me where i am going wrong.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Mohan V.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276855#M3204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: tAggregation groupby is not working</title>
      <link>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276856#M3205</link>
      <description>&lt;P&gt;Can anyone please correct me whats wrong with my configurations.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 06:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276856#M3205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-06T06:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: tAggregation groupby is not working</title>
      <link>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276857#M3206</link>
      <description>&lt;P&gt;Hi!&amp;nbsp; A "Date" object in java encapsulates&amp;nbsp; a "Long" number , starting at 1970-01-01 with millisecond precision.&lt;/P&gt; 
&lt;P&gt;Formatting it using a pattern, like&amp;nbsp;"YYYY-MM-DD" doesn't change the actual value of the object.&lt;/P&gt; 
&lt;P&gt;As a consequence, you cant' group Date objects by "same day" but only by "same millisecond"...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To achieve that, first you "format" your date according to what you need for grouping (i.e : day =&amp;gt; "YYYY-MM-DD") , then you convert that field of type "Date" into String (usint tConvertType or automatic conversion in tMap).&amp;nbsp; Then you should be able to aggregate on "same day" using that String.&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, 06 May 2019 14:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276857#M3206</guid>
      <dc:creator>act</dc:creator>
      <dc:date>2019-05-06T14:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: tAggregation groupby is not working</title>
      <link>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276858#M3207</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMJEAA4"&gt;@act&lt;/A&gt;&amp;nbsp; thanks for the reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I did tried as below image, by getting day, month, year and then parsing those values as date by using "-".&lt;/P&gt; 
&lt;P&gt;It still didnt worked.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-17 at 9.15.35 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4DR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137892i370E9F6AA5DEF372/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4DR.png" alt="0683p000009M4DR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;But still after aggregating it giving me the same output without any change.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-17 at 9.18.21 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Dv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154456iE0A9B9D051A72B3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Dv.png" alt="0683p000009M4Dv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-05-17 at 9.17.10 AM.png" style="width: 343px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Dm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152205i2183C8DBDC931A99/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Dm.png" alt="0683p000009M4Dm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I do not understand why this is happening so.&lt;/P&gt; 
&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 04:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/tAggregation-groupby-is-not-working/m-p/2276858#M3207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-17T04:49:31Z</dc:date>
    </item>
  </channel>
</rss>

