<?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: Problem with group by clause. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643783#M235884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agnevish,&lt;/P&gt;&lt;P&gt;if you will write Groupd by Date, than it will group by qlikview numeric format(the default date format which you have in source database),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you can write your Group by Like, &lt;/P&gt;&lt;P&gt;Group By &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DATE(COLUMN,'DD-MMM-YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;now first it will format your date and than it will group by DD-MMM-YYYY format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write calculated group by clause,&lt;/P&gt;&lt;P&gt;like group by Year(DateField), it will grouo by same year....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2014 12:06:52 GMT</pubDate>
    <dc:creator>israrkhan</dc:creator>
    <dc:date>2014-06-08T12:06:52Z</dc:date>
    <item>
      <title>Problem with group by clause.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643780#M235881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a data source from where i have fetch the many columns in which one is date column, If i load directly that column to qlikview it will by default changes to number format. but if during loading i am using&lt;/P&gt;&lt;P&gt;DATE(COLUMN,'DD-MMM-YYYY')&lt;/P&gt;&lt;P&gt;it will store date column in DD-MMM-YYYY .&lt;/P&gt;&lt;P&gt;Problem is that when i am applying any calculation on any fields like sum , then&amp;nbsp; during group by&lt;/P&gt;&lt;P&gt;is it will accept my DD-MMM-YYYY format or qlikview numeric format. ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 10:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643780#M235881</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2014-06-08T10:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with group by clause.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643781#M235882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Agnivesh - I assume the field is just a Date and not TimeStamp. Is this right? I don't think it matters whether it's Date or numeric format because you can always change the formatting with Preceding Load above your normal Load statement which has Group By clause. I think it will be numeric format because that's the underlying format from the DB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 10:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643781#M235882</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-06-08T10:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with group by clause.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643782#M235883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agnivesh, I haven't fully understood if this is a general question or you are asking for help with a specific problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are having a specific problem, please post some more information, some demo data and what your expected ouput is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, applying Date(COLUMN,'DD-MMM-YYYY') on a numeric value of COLUMN will create a dual, keeping the original numeric value and creating a text string that interprets the number as a date (number of days since Dec 30, 1899) and formats the date textual representation according the format code 'DD-MMM-YYYY'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A group by clause will use the numeric value of that date value, so if the underlying numeric value is more granular than the textual representation (e.g. having a time part, decimals), the outcome may be not what you expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use daystart() or floor() to create pure dates from a timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the date field in an aggregation like sum(), you might need to reformat the textual representation using Date().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual" title="http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2012/11/13/dual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work" title="http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 11:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643782#M235883</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-08T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with group by clause.</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643783#M235884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agnevish,&lt;/P&gt;&lt;P&gt;if you will write Groupd by Date, than it will group by qlikview numeric format(the default date format which you have in source database),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you can write your Group by Like, &lt;/P&gt;&lt;P&gt;Group By &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DATE(COLUMN,'DD-MMM-YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;now first it will format your date and than it will group by DD-MMM-YYYY format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write calculated group by clause,&lt;/P&gt;&lt;P&gt;like group by Year(DateField), it will grouo by same year....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 12:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-group-by-clause/m-p/643783#M235884</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2014-06-08T12:06:52Z</dc:date>
    </item>
  </channel>
</rss>

