<?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 Compare two value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709002#M591845</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to affect the value "type" of the maximum sum by invoice.&lt;/P&gt;&lt;P&gt;To illustrate this idea, below an example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice num | Type | Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INV123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0&lt;/P&gt;&lt;P&gt;INV123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 3 500&lt;/P&gt;&lt;P&gt;INV567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 1 500&lt;/P&gt;&lt;P&gt;INV567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 500&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&amp;gt; Result expected:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice num | Type | Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INV123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 3 500&lt;/P&gt;&lt;P&gt;INV567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 2 000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please could you help me to resolve this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:31:21 GMT</pubDate>
    <dc:creator>Black_Hole</dc:creator>
    <dc:date>2024-11-16T00:31:21Z</dc:date>
    <item>
      <title>Compare two value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709002#M591845</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to affect the value "type" of the maximum sum by invoice.&lt;/P&gt;&lt;P&gt;To illustrate this idea, below an example:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice num | Type | Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INV123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 0&lt;/P&gt;&lt;P&gt;INV123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 3 500&lt;/P&gt;&lt;P&gt;INV567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 1 500&lt;/P&gt;&lt;P&gt;INV567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 500&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&amp;gt; Result expected:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Invoice num | Type | Amount&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INV123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 3 500&lt;/P&gt;&lt;P&gt;INV567&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 2 000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please could you help me to resolve this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709002#M591845</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2024-11-16T00:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709010#M591846</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/66319"&gt;@Black_Hole&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:

load * inline [
Invoice num | Type | Amount

INV123            | S         | 0

INV123            | F         | 3500

INV567            | S         | 1500

INV567            | F         | 500
](delimiter is '|');

output:
noconcatenate

load [Invoice num], FirstSortedValue(Type,-Amount) as Type,sum(Amount) as Amount resident Data group by [Invoice num];

drop table Data;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 506px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35136iE0DA2E537AF8792E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attached qvw file&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 12:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709010#M591846</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-08T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare two value</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709282#M591847</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Excellent !! Your solution works as expected.&lt;/P&gt;&lt;P&gt;Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 06:59:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-two-value/m-p/1709282#M591847</guid>
      <dc:creator>Black_Hole</dc:creator>
      <dc:date>2020-06-09T06:59:13Z</dc:date>
    </item>
  </channel>
</rss>

