<?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: Merge duplicate rows with same values across two columns in my mysql table  and add the values in third column [duplicate] in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-duplicate-rows-with-same-values-across-two-columns-in-my/m-p/1769471#M454512</link>
    <description>&lt;P&gt;This is my solution :&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT LEAST(Item1, Item2) AS Item1, GREATEST(Item1, Item2) AS Item2, SUM(Value) AS Value FROM yourTable GROUP BY 1, 2;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 13:50:15 GMT</pubDate>
    <dc:creator>emyemyemy</dc:creator>
    <dc:date>2020-12-18T13:50:15Z</dc:date>
    <item>
      <title>Merge duplicate rows with same values across two columns in my mysql table  and add the values in third column [duplicate]</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-duplicate-rows-with-same-values-across-two-columns-in-my/m-p/1769303#M454499</link>
      <description>&lt;P&gt;I have a data&amp;nbsp; table with 3 columns like below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Item1&amp;nbsp; Item2&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;Apple&amp;nbsp; &amp;nbsp;Orange&amp;nbsp;&amp;nbsp;&lt;SPAN class="hljs-number"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Apple&amp;nbsp; Banana&amp;nbsp;&amp;nbsp;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mango&amp;nbsp; Apple&amp;nbsp;&amp;nbsp;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Banana&amp;nbsp; Apple&amp;nbsp;&amp;nbsp;&lt;SPAN class="hljs-number"&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Apple&amp;nbsp; &amp;nbsp;Mango&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Orange&amp;nbsp; Banana&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Orange&amp;nbsp; &amp;nbsp;Apple&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to remove the duplicate rows based on the combinations of two columns Item1 &amp;amp; Item2 and show only one in any order and want to add their values as a result, so as the final output in my table box&amp;nbsp; can be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Item1&amp;nbsp; &amp;nbsp;Item2&amp;nbsp; &amp;nbsp;Value&lt;/P&gt;&lt;P&gt;Apple&amp;nbsp; &amp;nbsp;Orange&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Apple&amp;nbsp; &amp;nbsp;Banana&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Mango&amp;nbsp; &amp;nbsp;Apple&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Orange&amp;nbsp; &amp;nbsp;Banana&amp;nbsp; &amp;nbsp;&lt;SPAN class="hljs-number"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-number"&gt;Thank you for any help or attention !&amp;nbsp; or at least&amp;nbsp; can any one&amp;nbsp; answer me if its even possible to do that !!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-duplicate-rows-with-same-values-across-two-columns-in-my/m-p/1769303#M454499</guid>
      <dc:creator>emyemyemy</dc:creator>
      <dc:date>2024-11-16T17:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merge duplicate rows with same values across two columns in my mysql table  and add the values in third column [duplicate]</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-duplicate-rows-with-same-values-across-two-columns-in-my/m-p/1769471#M454512</link>
      <description>&lt;P&gt;This is my solution :&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT LEAST(Item1, Item2) AS Item1, GREATEST(Item1, Item2) AS Item2, SUM(Value) AS Value FROM yourTable GROUP BY 1, 2;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 13:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-duplicate-rows-with-same-values-across-two-columns-in-my/m-p/1769471#M454512</guid>
      <dc:creator>emyemyemy</dc:creator>
      <dc:date>2020-12-18T13:50:15Z</dc:date>
    </item>
  </channel>
</rss>

