<?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: Problem with Sign function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545151#M439794</link>
    <description>May be try using fabs() and see if you encounter the problem or not.</description>
    <pubDate>Fri, 15 Feb 2019 15:49:09 GMT</pubDate>
    <dc:creator>pradosh_thakur</dc:creator>
    <dc:date>2019-02-15T15:49:09Z</dc:date>
    <item>
      <title>Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545139#M439792</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I create 2 calculated dimensions &lt;STRONG&gt;=Sign(Aggr(Sum(%PNV),[OrderPost_id]))&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;=if(Sign(Aggr(Sum(%RBC),[OrderPost_id]))&amp;lt;&amp;gt;1,'Negative RBC','Positive RBC')&lt;/STRONG&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The calculated dimension with RBC works for all the data except when the PNV is negative, it gives me this :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RBC-.png" style="width: 445px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6122iBE295F6E755E7619/image-size/large?v=v2&amp;amp;px=999" role="button" title="RBC-.png" alt="RBC-.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't understand why there's a '1' for negative numbers with PNV calculated dimension. Besides, as you can see, it shows 'Negative RBC' for only 2 rows but not for the others with RBC calculated dimension.&lt;/P&gt;&lt;P&gt;Do you have an idea of what could be the reason of it ?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loreen&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 15:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545139#M439792</guid>
      <dc:creator>Loreen</dc:creator>
      <dc:date>2019-02-15T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545150#M439793</link>
      <description>&lt;P&gt;&lt;STRONG&gt;=Sign(Aggr(Sum&lt;FONT color="#FF6600"&gt;(%PNV&lt;/FONT&gt;),[OrderPost_id]))&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;=if(Sign(Aggr(Sum(&lt;FONT color="#0000FF"&gt;%RBC&lt;/FONT&gt;),[OrderPost_id]))&amp;lt;&amp;gt;1,'Negative RBC','Positive RBC')&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I dont think %PNV and %RBC are same . Are they ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 15:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545150#M439793</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-15T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545151#M439794</link>
      <description>May be try using fabs() and see if you encounter the problem or not.</description>
      <pubDate>Fri, 15 Feb 2019 15:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545151#M439794</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2019-02-15T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545168#M439796</link>
      <description>&lt;P&gt;Maybe the context of your calculation is wrong - means you might need a different and/or further dimensions within the aggr().&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 15:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545168#M439796</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-02-15T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545180#M439797</link>
      <description>&lt;P&gt;What is PNV column here a calculated dimension? a dimension? or a measure? If it is not a straight field... can you share the expression behind it?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545180#M439797</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-15T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545920#M439848</link>
      <description>No, PNV and RBC are different measures</description>
      <pubDate>Mon, 18 Feb 2019 13:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545920#M439848</guid>
      <dc:creator>Loreen</dc:creator>
      <dc:date>2019-02-18T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sign function</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545960#M439851</link>
      <description>&lt;P&gt;Here are the data that I obtain with the calculated dimensions (last&amp;nbsp; 2 columns) :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RBC+-.png" style="width: 836px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/6265i9DE9F43FEB2C6B25/image-dimensions/836x269?v=v2" width="836" height="269" role="button" title="RBC+-.png" alt="RBC+-.png" /&gt;&lt;/span&gt;The result that I'm looking for is that the column RBC and the column with the calculated dimension&amp;nbsp;=Aggr(sum(%RBC),OrderPost_id) show the same number. It works for every positive number, but not with negative ones. I don't understand how these amounts are calculated. I tried to change the dimension in the aggr function but it doesn't seem to work.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 15:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Sign-function/m-p/1545960#M439851</guid>
      <dc:creator>Loreen</dc:creator>
      <dc:date>2019-02-18T15:40:01Z</dc:date>
    </item>
  </channel>
</rss>

