<?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 Why is my chart treating negative values as positive values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584014#M1115204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression which give a positive or negative value depending on whether a field PURCHASE_SALE is 'P' or 'S'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(PURCHASE_SALE='P',SUM(PRICE*NOMINAL/-100),SUM(PRICE*NOMINAL/100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When displayed in a straight table and selecting the Total Mode and 'Sum of Rows' i get the expecting total displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when using the same expression in a bar chart (the only dimension is calendar week), it seems to ignore the fact half the values are negative and adds them all up as if they were positive. Wyy is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get my bar chart to treat the negative as negative vaules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 09:48:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-28T09:48:33Z</dc:date>
    <item>
      <title>Why is my chart treating negative values as positive values?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584014#M1115204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression which give a positive or negative value depending on whether a field PURCHASE_SALE is 'P' or 'S'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(PURCHASE_SALE='P',SUM(PRICE*NOMINAL/-100),SUM(PRICE*NOMINAL/100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When displayed in a straight table and selecting the Total Mode and 'Sum of Rows' i get the expecting total displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when using the same expression in a bar chart (the only dimension is calendar week), it seems to ignore the fact half the values are negative and adds them all up as if they were positive. Wyy is this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get my bar chart to treat the negative as negative vaules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 09:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584014#M1115204</guid>
      <dc:creator />
      <dc:date>2014-02-28T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my chart treating negative values as positive values?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584015#M1115205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If statement will work only when the specific field is available in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;IF(PURCHASE_SALE='P',SUM(PRICE*NOMINAL/-100),SUM(PRICE*NOMINAL/100)) as Measure&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;table name&amp;gt;&lt;/P&gt;&lt;P&gt;group by &amp;lt;field names&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact you can calculate this at script level and just use sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Measure&lt;/SPAN&gt;) as expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will solve your issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 09:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584015#M1115205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-28T09:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my chart treating negative values as positive values?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584016#M1115207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you upload your sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 09:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584016#M1115207</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-28T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my chart treating negative values as positive values?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584017#M1115209</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;Include over all sum. then you will get currect total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&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(IF(PURCHASE_SALE='P',SUM(PRICE*NOMINAL/-100),SUM(PRICE*NOMINAL/100)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 09:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584017#M1115209</guid>
      <dc:creator>kumarnatarajan</dc:creator>
      <dc:date>2014-02-28T09:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my chart treating negative values as positive values?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584018#M1115211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, Kumar that didn't work, but this did. I didn't need the SUMs within the IF statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM(IF(PURCHASE_SALE='P',PRICE*NOMINAL/-100,PRICE*NOMINAL/100))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 10:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-chart-treating-negative-values-as-positive-values/m-p/584018#M1115211</guid>
      <dc:creator />
      <dc:date>2014-02-28T10:05:38Z</dc:date>
    </item>
  </channel>
</rss>

