<?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 two group by in front end in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815676#M1042433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to get an expression working in the front end , which if calculated in the script has 2 group bys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table 1]:&lt;/P&gt;&lt;P&gt;Load [key1], min(Item_key) as [min key]&lt;/P&gt;&lt;P&gt;resident [ABC]&lt;/P&gt;&lt;P&gt;GROUP BY [key1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table 2]:&lt;/P&gt;&lt;P&gt;load min([min key]) as [min key]&lt;/P&gt;&lt;P&gt;resident [Table 1]&lt;/P&gt;&lt;P&gt;group by [key2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use the field [min key] in an expression in a pivot table it works perfect..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;AGGR(MIN(AGGR(MIN(item_key), [key1])), [key2])) instead of&amp;nbsp; [min key]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, it errors out....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but, when I display it in a separate pivot table against [key2], it works fine... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any clue what could be wrong...?&lt;/P&gt;&lt;P&gt;Many thanks.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2014 12:01:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-11T12:01:19Z</dc:date>
    <item>
      <title>two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815676#M1042433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to get an expression working in the front end , which if calculated in the script has 2 group bys:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table 1]:&lt;/P&gt;&lt;P&gt;Load [key1], min(Item_key) as [min key]&lt;/P&gt;&lt;P&gt;resident [ABC]&lt;/P&gt;&lt;P&gt;GROUP BY [key1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Table 2]:&lt;/P&gt;&lt;P&gt;load min([min key]) as [min key]&lt;/P&gt;&lt;P&gt;resident [Table 1]&lt;/P&gt;&lt;P&gt;group by [key2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use the field [min key] in an expression in a pivot table it works perfect..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;AGGR(MIN(AGGR(MIN(item_key), [key1])), [key2])) instead of&amp;nbsp; [min key]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, it errors out....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;but, when I display it in a separate pivot table against [key2], it works fine... &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any clue what could be wrong...?&lt;/P&gt;&lt;P&gt;Many thanks.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 12:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815676#M1042433</guid>
      <dc:creator />
      <dc:date>2014-12-11T12:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815677#M1042434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MIN(AGGR(MIN(item_key), [key1], [key2]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 16:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815677#M1042434</guid>
      <dc:creator>yduval75</dc:creator>
      <dc:date>2014-12-11T16:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815678#M1042435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DOESN'T WORK &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 17:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815678#M1042435</guid>
      <dc:creator />
      <dc:date>2014-12-11T17:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815679#M1042436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My data is SOMEWHAT like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key2 Key1 Date_Key&lt;/P&gt;&lt;P&gt;A 199 200101&lt;/P&gt;&lt;P&gt;A 199 200102&lt;/P&gt;&lt;P&gt;A 199 200903&lt;/P&gt;&lt;P&gt;A 232 200409&lt;/P&gt;&lt;P&gt;B 523 200807&lt;/P&gt;&lt;P&gt;B 677 200111&lt;/P&gt;&lt;P&gt;B 677 200402&lt;/P&gt;&lt;P&gt;C 73 200509&lt;/P&gt;&lt;P&gt;C 73 200709&lt;/P&gt;&lt;P&gt;C 74 200306&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want this&amp;nbsp; as my calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where for A : 1 represents 200101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 represents 200102&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 represents 200409&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 represents 200903&lt;/P&gt;&lt;P&gt;&amp;nbsp; B:&amp;nbsp;&amp;nbsp; 1 represents 200111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 represents 200402&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 represents 200807&lt;/P&gt;&lt;P&gt;&amp;nbsp; C:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 represents 200306&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 represents 200509&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 represents 200709&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my expressions I have a measure for 2 different 'key2' keys, so I have two lines in the chart...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x-axis has 1, 2, 3, 4...... and so on... which represents different date_keys for different key2s and&lt;/P&gt;&lt;P&gt;y-axis has the corresponding measure values....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you get the problem.. Please ask if I haven't been very clear in explaining something .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this? any help would be highly appreciated..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 06:14:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815679#M1042436</guid>
      <dc:creator />
      <dc:date>2014-12-12T06:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815680#M1042437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would like to help you but unable to understand your explanation..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 08:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815680#M1042437</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-12T08:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815681#M1042438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish... which part of it would you like me to elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 08:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815681#M1042438</guid>
      <dc:creator />
      <dc:date>2014-12-12T08:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815682#M1042439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please explain your required result in brief. I am unable to understand what you explain above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 09:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815682#M1042439</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-12-12T09:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: two group by in front end</title>
      <link>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815683#M1042440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what I want is datekeys on the dimension.. but since they vary for different items.. I want them to be relative as 1, 2, 3 and so on... where 1 represents the first datekey for an item in ascending order, 2 the second one and so on... corresponding to these datekeys we have a measure.. so I want these measures in my line chart ... and as I want these displayed for two items, I have two lines in my line chart...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/two-group-by-in-front-end/m-p/815683#M1042440</guid>
      <dc:creator />
      <dc:date>2014-12-12T10:03:45Z</dc:date>
    </item>
  </channel>
</rss>

