<?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 [ASK] why i cant include max function in edit script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210817#M65246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm kinda new in qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have a table in qvd, just say its name is TRY&lt;/P&gt;&lt;P&gt;it have 3 columns :&lt;/P&gt;&lt;P&gt;1. date_col&lt;/P&gt;&lt;P&gt;2. value_col&lt;/P&gt;&lt;P&gt;3. code_col&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in 1 day we can have many value_col&lt;/P&gt;&lt;P&gt;but i need only to load max value of it into qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've tried :&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;date_col, max(value_col), code_col&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;(qvd);&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, how to do that?&lt;/P&gt;&lt;P&gt;can qlikview do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 08:56:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-21T08:56:19Z</dc:date>
    <item>
      <title>[ASK] why i cant include max function in edit script?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210817#M65246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm kinda new in qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i have a table in qvd, just say its name is TRY&lt;/P&gt;&lt;P&gt;it have 3 columns :&lt;/P&gt;&lt;P&gt;1. date_col&lt;/P&gt;&lt;P&gt;2. value_col&lt;/P&gt;&lt;P&gt;3. code_col&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so in 1 day we can have many value_col&lt;/P&gt;&lt;P&gt;but i need only to load max value of it into qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've tried :&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;date_col, max(value_col), code_col&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;D&gt;(qvd);&lt;/D&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, how to do that?&lt;/P&gt;&lt;P&gt;can qlikview do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 08:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210817#M65246</guid>
      <dc:creator />
      <dc:date>2010-09-21T08:56:19Z</dc:date>
    </item>
    <item>
      <title>[ASK] why i cant include max function in edit script?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210818#M65247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Aggregation functions like Max normally need to have some grouping applied if you have other non-aggregated fields in your load sattement.&lt;/P&gt;&lt;P&gt;So this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD max(value_col)&lt;BR /&gt;FROM &lt;D&gt;(qvd);&lt;BR /&gt;&lt;/D&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;is a valid statement and would find the overall max of that field. In your case, you have two non-aggregated fields, so you may need something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD date_col, max(value_col), code_col&lt;BR /&gt;FROM &lt;D&gt;(qvd)&lt;BR /&gt;GROUP BY date_col, code_col;&lt;BR /&gt;&lt;/D&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 09:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210818#M65247</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-09-21T09:10:01Z</dc:date>
    </item>
    <item>
      <title>[ASK] why i cant include max function in edit script?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210819#M65248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Jon..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've tried ur solution&lt;/P&gt;&lt;P&gt;but the data keeps show detail data, not the maximum value data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 10:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210819#M65248</guid>
      <dc:creator />
      <dc:date>2010-09-21T10:00:18Z</dc:date>
    </item>
    <item>
      <title>[ASK] why i cant include max function in edit script?</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210820#M65249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RandyDeP&lt;/P&gt;&lt;P&gt;It will show the maximum value of value_col for each combination of date_col and code_col.&lt;/P&gt;&lt;P&gt;If there is only one value of value_col for each combination in your source data, then the max function has nothing to aggregate, so it will return every record.&lt;/P&gt;&lt;P&gt;Perhaps you could post a sample of your data for further investigation?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 12:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-why-i-cant-include-max-function-in-edit-script/m-p/210820#M65249</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2010-09-21T12:49:27Z</dc:date>
    </item>
  </channel>
</rss>

