<?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: How to show negative values in bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589423#M738618</link>
    <description>Maybe you could post a limited sample where the problem is still valid?</description>
    <pubDate>Fri, 07 Jun 2019 09:13:49 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-06-07T09:13:49Z</dc:date>
    <item>
      <title>How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589329#M738612</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have a bar chart and my requirement is i need to show all the values(positive and negative) in Y axis and on the same direction.&lt;/P&gt;&lt;P&gt;So i used these code in the expression to get the chart&amp;nbsp;&lt;/P&gt;&lt;P&gt;=fabs(sum ({$&amp;lt;dim={'abc'}&amp;gt;}xxx)) - converting negative values with absolute values. Please see the screen shot attached, and distinguishing negative values with red color and positive value with green color.&lt;/P&gt;&lt;P&gt;Now i need to show the '-' sign if the value is negative however the chart bar should be on the y axis same direction as it is .&lt;/P&gt;&lt;P&gt;so my requirement is to display the '-' if it is negative. Is there way to do it.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589329#M738612</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589333#M738613</link>
      <description>&lt;P&gt;To display a - sign for the negatives while keepin the absolue value, use a dual:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Dual(sum ({$&amp;lt;dim={'abc'}&amp;gt;}xxx), fabs(sum ({$&amp;lt;dim={'abc'}&amp;gt;}xxx)))&lt;/LI-CODE&gt;&lt;P&gt;To set the colours, exapnd the background property of the expressions (click the + next to the expression on the expressions tab). Use the expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(sum ({$&amp;lt;dim={'abc'}&amp;gt;}xxx) &amp;lt; 0, red(), green())&lt;/LI-CODE&gt;&lt;P&gt;(Adjust your colours to taste)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 05:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589333#M738613</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-06-07T05:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589334#M738614</link>
      <description>&lt;P&gt;Hi John, Thank you for the quick reply. I changed the formula as you suggested.&lt;/P&gt;&lt;P&gt;=Dual(sum ({$&amp;lt;dim={'abc'}&amp;gt;}xxx), fabs(sum ({$&amp;lt;dim={'abc'}&amp;gt;}xxx)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;Seems like it did not do anything. I also tried&amp;nbsp;#,##0#,-##0 in number tab .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did now work .&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 05:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589334#M738614</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-06-07T05:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589349#M738615</link>
      <description>&lt;P&gt;I also try this in expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;=num(Dual(sum ({$&amp;lt;&lt;SPAN&gt;dim&lt;/SPAN&gt;={'&lt;SPAN&gt;abc&lt;/SPAN&gt;'}&amp;gt;}&lt;SPAN&gt;xxx&lt;/SPAN&gt;), fabs(sum ({$&amp;lt;&lt;SPAN&gt;dim&lt;/SPAN&gt;={'&lt;SPAN&gt;abc&lt;/SPAN&gt;'}&amp;gt;}&lt;SPAN&gt;xxx&lt;/SPAN&gt;))),'#,##0','-#,##0') and then in number made it expression default. But did not workout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 06:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589349#M738615</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-06-07T06:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589358#M738616</link>
      <description>&lt;P&gt;The solution presented by &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14931"&gt;@jonathandienst&lt;/a&gt;&amp;nbsp; should work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13360i90635A1007993CB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please see my &lt;A href="https://community.qlik.com/cyjdu72974/attachments/cyjdu72974/new-to-qlikview/376039/1/How%20to%20show%20negative%20values%20in%20bar%20chart.qvw" target="_self"&gt;attached qvw&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 07:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589358#M738616</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-07T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589365#M738617</link>
      <description>&lt;P&gt;Hi Vegar,&lt;/P&gt;&lt;P&gt;Thank you for your reply. Yes i see your qvw is working fine. Some how mine is not. Not sure where is the problem though.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 07:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589365#M738617</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-06-07T07:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589423#M738618</link>
      <description>Maybe you could post a limited sample where the problem is still valid?</description>
      <pubDate>Fri, 07 Jun 2019 09:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589423#M738618</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-07T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589851#M738619</link>
      <description>&lt;P&gt;The expressions I posted explained the &lt;EM&gt;pattern&lt;/EM&gt; for the expression - they will not work like that, you need to fill out the expression details which you did not supply in your original post.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 05:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589851#M738619</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-06-10T05:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589912#M738622</link>
      <description>&lt;P&gt;Hi Jontydpki,&lt;/P&gt;&lt;P&gt;Thank you for your reply. My original expression is&lt;/P&gt;&lt;P&gt;=fabs(sum ({$&amp;lt;L3={'ATTRIB'}&amp;gt;}Sales))&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need more info. Thank you again.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ashis Sau&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 09:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589912#M738622</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-06-10T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589933#M738623</link>
      <description>&lt;P&gt;Please see attached new version of my demo app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13460iDD8DD5E00830A35C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 10:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589933#M738623</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-06-10T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show negative values in bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589935#M738624</link>
      <description>&lt;P&gt;Thank you Vegar, for your time. You also gave me one qvw file earlier that was working fine.&lt;/P&gt;&lt;P&gt;I believe something weird happening&amp;nbsp; at my end. I am unable to send my application due to some restriction of data.&lt;/P&gt;&lt;P&gt;I will look into it why it is causing the issue. The solution seems simple though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 10:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-negative-values-in-bar-chart/m-p/1589935#M738624</guid>
      <dc:creator>ashis</dc:creator>
      <dc:date>2019-06-10T10:51:03Z</dc:date>
    </item>
  </channel>
</rss>

