<?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 Script Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069120#M945060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this scripting problem. For Example i has two table in my data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales201507&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearMonth&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Sales201507.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Load ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales201507&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearMonth&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sales201507.qvd(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;After that, i need get the maximum sale in every month. How can i get the max sale in the script?Is it like this kind of way?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final Result:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Sales&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth&lt;/SPAN&gt;) as MaxSales&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;group by ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 05:25:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-12T05:25:43Z</dc:date>
    <item>
      <title>Script Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069120#M945060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this scripting problem. For Example i has two table in my data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;Load ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales201507&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearMonth&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;Sales201507.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;Load ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales201507&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YearMonth&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sales201507.qvd(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;After that, i need get the maximum sale in every month. How can i get the max sale in the script?Is it like this kind of way?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Final Result:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load ID,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Sales&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth&lt;/SPAN&gt;) as MaxSales&amp;amp;&lt;SPAN style="font-size: 13.3333px;"&gt;YearMonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;group by ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 05:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069120#M945060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T05:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069121#M945061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, almost. This works better in my opinion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;[Final Result]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load YearMonth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Sales) as MaxSales,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(ID, -Sales) AS MaxSalesID&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier;"&gt;Resident TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: 'courier new', courier; font-weight: inherit;"&gt;group by YearMonth;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This LOAD statement returns the maximum Sales per YearMonth, and adds the corresponding ID.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best,&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 07:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069121#M945061</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-12T07:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script Help</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069122#M945062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;In Your Final Table,&lt;/P&gt;&lt;P&gt;Final Result:&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Load ID,&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(Sales) as MaxSales&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Resident TableA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;SPAN style="font-size: 13.33px;"&gt;group by ID, YearMonth;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; &lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;SPAN style="font-size: 13.33px;"&gt;Above load will give you aggregate table having below data&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; &lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;SPAN style="font-size: 13.33px;"&gt;ID | YearMonth | MaxSales&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt; &lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;SPAN style="font-size: 13.33px;"&gt;If you need the data monthwise, then you should have month filed to do so. In existing data itself you can get month from you YearMonth column and follow the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 08:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Help/m-p/1069122#M945062</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2016-01-12T08:03:00Z</dc:date>
    </item>
  </channel>
</rss>

