<?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 And Sum Discarding Un-needed data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1350000#M840507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try that or you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Ord No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; [Ord Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue(Item, OrderLine) as Item, &lt;/STRONG&gt;-&amp;gt; Assuming the OrderLine will be smallest for item being sold&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Sum(Sell) as Sell&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Group By [Ord No], [Ord Date];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;FirstSortedValue(Item, -OrderLine) as Item &lt;/STRONG&gt;-&amp;gt; Assuming the OrderLine will be highest for item being sold&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2017 16:24:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-02T16:24:55Z</dc:date>
    <item>
      <title>Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349994#M840501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets say I have a data file that contains multiple lines for each sales order.&amp;nbsp; I want to take the line with the highest value, keep that line, but have its total value a sum of all the lines value.&amp;nbsp; Then when this is figured out, dispose of all the lines leaving me with one line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a simple excel file attached showing what I am trying to achieve, and a simple inline QV loaded file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end I only need a data file with OrderNo, OrdDate, Most Expensive Item, and Total Sell from order.&amp;nbsp; Hopefully I have explained myself well enough to get across what I am trying to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349994#M840501</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349995#M840502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ord No, Ord Date, Item, Desc, Sell&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50001, 01/01/2017, Car 1, Car, 10500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50001, 01/01/2017, Option 1.1, Metalic Paint, 1500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50001, 01/01/2017, Option 1.2, Sunroof, 1200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50001, 01/01/2017, Option 1.3, Audio System, 875&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50001, 01/01/2017, Option 1.4, Run Flat Tyres, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50002, 05/01/2017, Car 2, Car, 10500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50002, 05/01/2017, Option 2.1, Metalic Paint, 1500&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50002, 05/01/2017, Option 2.2, Sunroof, 1200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50002, 05/01/2017, Option 2.3, Audio System, 875&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50002, 05/01/2017, Option 2.4, Run Flat Tyres, 200&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50002, 05/01/2017, Option 2.5, Sports Trim, 400&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Ord No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Ord Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; FirstValue(Item) as Item,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(Sell) as Sell&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Ord No], [Ord Date];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 15:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349995#M840502</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-02T15:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349996#M840503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, thanks for fast reply, much appreciated.&amp;nbsp; The data will need to be sorted by value first of all, the example file already has this done though, but real file hasn't?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 15:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349996#M840503</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2017-05-02T15:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349997#M840504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how will you know which Item to pick? Is there some logic behind picking Car? Or will it always start with Car?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 15:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349997#M840504</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-02T15:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349998#M840505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each order has unique Order No, each order no is made up of 5 to 10 lines.&amp;nbsp; One line is the item being sold, this will always be the highest value line.&amp;nbsp; Ideal output at the end will be one line of data for each order, with the Order No, the highest value item from the initial data load, and the total value of all of the lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 15:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349998#M840505</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2017-05-02T15:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349999#M840506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume I load the data and order by the orderno, and then the orderline value.&amp;nbsp; Then reload as you have shown in example above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 15:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1349999#M840506</guid>
      <dc:creator>dmac1971</dc:creator>
      <dc:date>2017-05-02T15:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Group And Sum Discarding Un-needed data</title>
      <link>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1350000#M840507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try that or you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FinalTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD [Ord No],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; [Ord Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; FirstSortedValue(Item, OrderLine) as Item, &lt;/STRONG&gt;-&amp;gt; Assuming the OrderLine will be smallest for item being sold&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; Sum(Sell) as Sell&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Group By [Ord No], [Ord Date];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;FirstSortedValue(Item, -OrderLine) as Item &lt;/STRONG&gt;-&amp;gt; Assuming the OrderLine will be highest for item being sold&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 16:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-And-Sum-Discarding-Un-needed-data/m-p/1350000#M840507</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-02T16:24:55Z</dc:date>
    </item>
  </channel>
</rss>

