<?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: Comparing 2 Numeric Fields in an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694380#M251111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The M5&amp;gt;=M2 is a comparison that must be made on the row level (not globally), so you cannot use Set Analysis for that. Instead, do a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({$&amp;lt;M2={"&amp;gt;0"}, M5={"&amp;gt;0"}&amp;gt;} If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;M5&amp;gt;=M2&lt;/SPAN&gt;, flagOfferOrder))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 08:56:03 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-07-17T08:56:03Z</dc:date>
    <item>
      <title>Comparing 2 Numeric Fields in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694379#M251110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we have one table in data model with columns M2 and M5 (both numeric).&lt;/P&gt;&lt;P&gt;We have a formula (with set analysis conditions) that filters the data set in the table. Formula goes something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;M2={"&amp;gt;0"}, M2={"&amp;gt;0"}&amp;gt;} flagOO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have veryfied that we get the correct subset from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following step we would like to make a following comparison:&lt;/P&gt;&lt;P&gt;M5={"&amp;gt;=M2"}&amp;gt;&lt;/P&gt;&lt;P&gt;and sum the resulting rows (flagOO can only have numerical value of 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our approach is (and it is not functioning as we expect):&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;M2={"&amp;gt;0"}, M2={"&amp;gt;0"}, M5={"&amp;gt;=M2"}&amp;gt;} flagOO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give us a suggestion on how we should adapt the formula? Thx!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 08:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694379#M251110</guid>
      <dc:creator />
      <dc:date>2014-07-17T08:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 Numeric Fields in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694380#M251111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The M5&amp;gt;=M2 is a comparison that must be made on the row level (not globally), so you cannot use Set Analysis for that. Instead, do a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({$&amp;lt;M2={"&amp;gt;0"}, M5={"&amp;gt;0"}&amp;gt;} If( &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;M5&amp;gt;=M2&lt;/SPAN&gt;, flagOfferOrder))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 08:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694380#M251111</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-07-17T08:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 Numeric Fields in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694381#M251112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnks Henric!&lt;BR /&gt;This is the correct answer!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 09:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-2-Numeric-Fields-in-an-Expression/m-p/694381#M251112</guid>
      <dc:creator />
      <dc:date>2014-07-17T09:38:41Z</dc:date>
    </item>
  </channel>
</rss>

