<?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: Reversing Sign visually Only and only on certain rows. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339033#M572794</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add a "=0" check to the IF statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;num(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #000080;"&gt;sum(DollarAmount)&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;, IF(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #008000;"&gt;Your_Chart_Dimension = 'Income' OR sum(DollarAmount) = 0&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #008000;"&gt;'#,##0.00;(#,##0.00)'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #800000;"&gt;'(#,##0.00);#,##0.00'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this, just guessing it might work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Oct 2012 17:13:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-26T17:13:21Z</dc:date>
    <item>
      <title>Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339027#M572788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok the problem I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a pivot table that contains positive and negative accounting journal entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add up the amounts I get the correct amount:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCOME: 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (50)&lt;/P&gt;&lt;P&gt;Total Inc:&amp;nbsp; 50&lt;/P&gt;&lt;P&gt;COSTS:&amp;nbsp; (200)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 45&lt;/P&gt;&lt;P&gt;Total Costs: -165&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTAL -125&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pivot table totals are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would however like to reverse the costs so that they display as positive when negative and vice versa but still remain negative in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I set the format of the column at a row level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Income: Don't do anything. or set the format to be #,##0.00;(#,##0.00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Row = Costs Then Display (200) as 200 and display 45 as (45)&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;(#,##0.00);#,##0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one think of a way of doing this so the pivot chart still calculates correctly but displays COSTS as a positive value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing it in the textformat fields of the expression but didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 08:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339027#M572788</guid>
      <dc:creator />
      <dc:date>2012-08-06T08:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339028#M572789</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;you can try using "IF" condition in the expression to show the same.&amp;nbsp; I have tried to put a sample below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Particulars='Income', num(Sum(Income),'#.##0'), num(Sum(Income)*-1,'#.##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 09:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339028#M572789</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2012-08-06T09:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339029#M572790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #ffffff;"&gt;Raghav&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's close but then the values would become positive and therefore the calcuation in the pivot chart would be wrong. (I think)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just the number Format I conditionally want to change not its value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression has a text format but I couldn't get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="19453" class="jive-image-thumbnail jive-image" onclick="" alt="textformat.png" src="https://community.qlik.com/legacyfs/online/19453_textformat.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 09:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339029#M572790</guid>
      <dc:creator />
      <dc:date>2012-08-06T09:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339030#M572791</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;The calculation in the Pivot will still pick the value which you have loaded.&amp;nbsp; The example I have given will only diplay the values in the column the way you want and does not change the value when you do Revenue - Cost in another expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 09:49:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339030#M572791</guid>
      <dc:creator>raghavsurya</dc:creator>
      <dc:date>2012-08-06T09:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339031#M572792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you use the above method, then the pivot table will add the rows together incorrectly since you are multiplying the actual result of the expression by -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the num() function, and putting the IF check in the format expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;num(&lt;SPAN style="color: #000080;"&gt;sum(DollarAmount)&lt;/SPAN&gt;, IF(&lt;SPAN style="color: #008000;"&gt;Your_Chart_Dimension = 'Income'&lt;/SPAN&gt;, &lt;SPAN style="color: #008000;"&gt;'#,##0.00;(#,##0.00)'&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;'(#,##0.00);#,##0.00'&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the same answer no matter what, but will just change the formatting when the number is displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 16:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339031#M572792</guid>
      <dc:creator />
      <dc:date>2012-08-06T16:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339032#M572793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just put this into effect. Many thanks.&lt;/P&gt;&lt;P&gt;One issue I have is that for those expressions that I am flipping the sign on, zeros show up as (0) or -0, instead of just as 0. I assume this is because the 0 point, which previously was treated as positive for the sign assignment is now treated as negative instead.&lt;/P&gt;&lt;P&gt;Any thoughts on how this might be addressed. I might resolve by changing the text colour to the same as the background colour to hide it, but this won't help when exporting to excel.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 10:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339032#M572793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-25T10:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339033#M572794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add a "=0" check to the IF statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;num(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #000080;"&gt;sum(DollarAmount)&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;, IF(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #008000;"&gt;Your_Chart_Dimension = 'Income' OR sum(DollarAmount) = 0&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #008000;"&gt;'#,##0.00;(#,##0.00)'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 12px; font-family: 'courier new', courier; color: #800000;"&gt;'(#,##0.00);#,##0.00'&lt;/SPAN&gt;&lt;SPAN style="color: #636363; font-family: 'courier new', courier; font-size: 12px; background-color: #ffffff;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this, just guessing it might work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 17:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339033#M572794</guid>
      <dc:creator />
      <dc:date>2012-10-26T17:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reversing Sign visually Only and only on certain rows.</title>
      <link>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339034#M572795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;With some pretty complex set analysis and exception testing in my expressions I think instead that I will try multiplying by an expected sign, which would be 1 or -1. Granted I would then have to take into account the changed sign when working out comparisons against that column.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 07:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reversing-Sign-visually-Only-and-only-on-certain-rows/m-p/339034#M572795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-30T07:00:13Z</dc:date>
    </item>
  </channel>
</rss>

