<?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 Problem with 'group by' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by/m-p/1209904#M625784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222; background: white;"&gt;I am trying to &lt;/SPAN&gt;&lt;STRONG style="color: #222222; background: white; font-size: 12.0pt; font-family: 'Arial',sans-serif;"&gt;group by location and month year&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222; background: white;"&gt; in this script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #222222; font-family: 'Arial',sans-serif;"&gt;,ApplyMap( 'LOCNameMap', LOC_ID, '*Unknown' ) as Location;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;HSP_ACCOUNT_ID , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;DEPARTMENT_ID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QualityDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #222222; font-family: 'Arial',sans-serif;"&gt; date(MonthStart(QualityDate),'MMM YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp; QualityDateTime, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MetricID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numerator, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Denominator,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap( 'LOCIDMap', DEPARTMENT_ID, '*Unknown' ) as LOC_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;I know in qlikview group by you have to list all of the fields you are not aggregating, and none of these fields have anything to aggregate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #222222; font-size: 12.0pt; font-family: 'Arial',sans-serif;"&gt; I tried to inner join the above table to &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;max(HSP_Account_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Location&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;group by &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Location &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;resident original table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Is this the best way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2016 11:35:58 GMT</pubDate>
    <dc:creator>cirogomezparssi</dc:creator>
    <dc:date>2016-10-21T11:35:58Z</dc:date>
    <item>
      <title>Problem with 'group by'</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by/m-p/1209904#M625784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222; background: white;"&gt;I am trying to &lt;/SPAN&gt;&lt;STRONG style="color: #222222; background: white; font-size: 12.0pt; font-family: 'Arial',sans-serif;"&gt;group by location and month year&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222; background: white;"&gt; in this script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #222222; font-family: 'Arial',sans-serif;"&gt;,ApplyMap( 'LOCNameMap', LOC_ID, '*Unknown' ) as Location;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;HSP_ACCOUNT_ID , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;DEPARTMENT_ID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QualityDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #222222; font-family: 'Arial',sans-serif;"&gt; date(MonthStart(QualityDate),'MMM YYYY') as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp; QualityDateTime, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MetricID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Numerator, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Denominator,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap( 'LOCIDMap', DEPARTMENT_ID, '*Unknown' ) as LOC_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;I know in qlikview group by you have to list all of the fields you are not aggregating, and none of these fields have anything to aggregate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;STRONG style="color: #222222; font-size: 12.0pt; font-family: 'Arial',sans-serif;"&gt; I tried to inner join the above table to &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;max(HSP_Account_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Location&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;group by &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Location &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;resident original table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: 'Arial',sans-serif; color: #222222;"&gt;Is this the best way to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 11:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-group-by/m-p/1209904#M625784</guid>
      <dc:creator>cirogomezparssi</dc:creator>
      <dc:date>2016-10-21T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'group by'</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-group-by/m-p/1209905#M625785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you havn't put the complete script down, but from what I understand, Inner Join or Left Join or a regular Join would be the best thing if you want to combine them. You can also keep it as a separate table to avoid creating duplication of the aggregated field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 15:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-group-by/m-p/1209905#M625785</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-21T15:39:22Z</dc:date>
    </item>
  </channel>
</rss>

