<?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: Group by clause in qlikview chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781964#M1043191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr function comes always with aggregate function like sum,count,only avg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example sum(sales) and want to aggregare/group by Region then aggr(sum(Sales),Region).&lt;/P&gt;&lt;P&gt;even you could aggregate by more than one field /dimension&lt;/P&gt;&lt;P&gt;aggr(sum(Sales),Region,Country,City,ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for you case use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(((LEFT((Year([Month_Date]))*100 + Month([Month_Date]),4)) - LEFT(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(Min([Start Date])&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, [item code])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,4)) * 12) + (RIGHT((Year([Month_Date]))*100 + Month([Month_Date]),2)) - RIGHT(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Aggr(Min([Start Date])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, [item code])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,2) + 1&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;&lt;BR /&gt;&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;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 08:50:05 GMT</pubDate>
    <dc:creator>SunilChauhan</dc:creator>
    <dc:date>2014-12-05T08:50:05Z</dc:date>
    <item>
      <title>Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781956#M1043183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a ' GROUP BY' in a qlikview chart (pivot table/line chart) without which my expression errors out, is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the expression with Group by clause in the script it works fine, but due to other constraints, I want to use this in chart itself. So is there a way I could set the Group by clause there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 06:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781956#M1043183</guid>
      <dc:creator />
      <dc:date>2014-12-05T06:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781957#M1043184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Result of your expressions in Pivot chart are grouped at Dimensions included in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show your expression? Can you explain your requirement with sample data and expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 06:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781957#M1043184</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T06:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781958#M1043185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aggr() is the front-end counter-part of group by. Try to create a sample qvw and shre explaining the expected output. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 06:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781958#M1043185</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-12-05T06:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781959#M1043186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yukti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr() function can be used in expression as group by function only be used at script level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;kushal T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 06:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781959#M1043186</guid>
      <dc:creator>kushalthakral</dc:creator>
      <dc:date>2014-12-05T06:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781960#M1043187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(((LEFT((Year([Month_Date]))*100 + Month([Month_Date]),4)) - LEFT(Min([Start Date]),4)) * 12) + (RIGHT((Year([Month_Date]))*100 + Month([Month_Date]),2)) - RIGHT(Min([Start Date]),2) + 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression I am using which errors out. However, if I replace Min(Start Date) with [Min Start Date] and do the calculation for it in the script as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load Min(Start date) AS [Min Start Date]&lt;/P&gt;&lt;P&gt;group by [item key], [item code]&lt;/P&gt;&lt;P&gt;RESIDENT [abc];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfectly fine. So I am guessing the issue is with not using group by in the chart..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 06:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781960#M1043187</guid>
      <dc:creator />
      <dc:date>2014-12-05T06:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781961#M1043188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Tresesco said, you can use Aggr() like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Min([Start Date]),Dim1,Dim2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 07:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781961#M1043188</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T07:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781962#M1043189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you guys are right about the aggr function.. but I am not sure exactly where to place it.. Could you explain with respect to the expression I mentioned above... thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781962#M1043189</guid>
      <dc:creator />
      <dc:date>2014-12-05T08:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781963#M1043190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(((LEFT((Year([Month_Date]))*100 + Month([Month_Date]),4)) - LEFT(&lt;STRONG&gt;Aggr(Min([Start Date]),&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[item key], [item code])&lt;/STRONG&gt;&lt;/SPAN&gt;,4)) * 12) + (RIGHT((Year([Month_Date]))*100 + Month([Month_Date]),2)) - RIGHT(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Aggr(Min([Start Date]),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;[item key], [item code])&lt;/STRONG&gt;&lt;/SPAN&gt;,2) + 1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781963#M1043190</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T08:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781964#M1043191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;aggr function comes always with aggregate function like sum,count,only avg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example sum(sales) and want to aggregare/group by Region then aggr(sum(Sales),Region).&lt;/P&gt;&lt;P&gt;even you could aggregate by more than one field /dimension&lt;/P&gt;&lt;P&gt;aggr(sum(Sales),Region,Country,City,ID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for you case use below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(((LEFT((Year([Month_Date]))*100 + Month([Month_Date]),4)) - LEFT(&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(Min([Start Date])&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, [item code])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,4)) * 12) + (RIGHT((Year([Month_Date]))*100 + Month([Month_Date]),2)) - RIGHT(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Aggr(Min([Start Date])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;, [item code])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,2) + 1&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;&lt;BR /&gt;&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;hope this helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781964#M1043191</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-12-05T08:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781965#M1043192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks anbu.. I did this.. but doesn't seem to work.. thanks anyway.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781965#M1043192</guid>
      <dc:creator />
      <dc:date>2014-12-05T08:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781966#M1043193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post sample app&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 08:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781966#M1043193</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-12-05T08:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781967#M1043194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression looks weird !&lt;/P&gt;&lt;P&gt;I didn't get it why you use&lt;/P&gt;&lt;P&gt;(LEFT((Year([Month_Date]))*100 + Month([Month_Date]),4))&amp;nbsp;&amp;nbsp; instead of&amp;nbsp; Year([Month_Date])&amp;nbsp; ?&lt;BR /&gt;Same thing for the other expressions.:&lt;/P&gt;&lt;P&gt;Create a calendar for your start Date for exemple and LEFT(Min([Start Date]),4) would just be Min([Start Year])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781967#M1043194</guid>
      <dc:creator />
      <dc:date>2014-12-05T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group by clause in qlikview chart</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781968#M1043195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks anbu and chauhan ... your answers work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, I was trying to use the expression as a calculated dimension, that's when it errors out. in the pivot table it's fine if I define it as an expression or a dimension.. but the problem arises when I want to use this expression a dimension in a line chart.. way out??? Any suggestions??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help guys....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 09:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-clause-in-qlikview-chart/m-p/781968#M1043195</guid>
      <dc:creator />
      <dc:date>2014-12-05T09:27:36Z</dc:date>
    </item>
  </channel>
</rss>

