<?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: Show result as a negative value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114053#M519718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe this is a possible solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(match(MeasureID,'CDC2_HBAPOOR','PartD_HRM','PCR2'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(match(Aggr($(vStarWeight),Star,MeasureID,Region_DESC),1),&lt;STRONG&gt;$(vStar2) * -1&lt;/STRONG&gt;,null()),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(match(Aggr($(vStarWeight),Star,MeasureID,Region_DESC),1),&lt;STRONG&gt;$(vStar2)&lt;/STRONG&gt;,null())&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 20:27:32 GMT</pubDate>
    <dc:creator>santiago_respane</dc:creator>
    <dc:date>2016-08-30T20:27:32Z</dc:date>
    <item>
      <title>Show result as a negative value</title>
      <link>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114052#M519717</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;I have this expression which (technically) gives me the correct value I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vStarWeight)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Star&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MeasureID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region_DESC&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),1),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vStar2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, there are certain instances where I would need this value to show as negative. Or even simply with a '-' in front of the number. For example, &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MeasureID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'CDC2_HBAPOOR','PartD_HRM','PCR2') &lt;/SPAN&gt; is when I would need the expression to show as negative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I modify this expression to show either a '-' or a negative number value for those MeasureIDs ('CDC2_HBAPOOR','PartD_HRM','PCR2')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 19:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114052#M519717</guid>
      <dc:creator>byrnel0586</dc:creator>
      <dc:date>2016-08-30T19:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show result as a negative value</title>
      <link>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114053#M519718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe this is a possible solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(match(MeasureID,'CDC2_HBAPOOR','PartD_HRM','PCR2'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(match(Aggr($(vStarWeight),Star,MeasureID,Region_DESC),1),&lt;STRONG&gt;$(vStar2) * -1&lt;/STRONG&gt;,null()),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(match(Aggr($(vStarWeight),Star,MeasureID,Region_DESC),1),&lt;STRONG&gt;$(vStar2)&lt;/STRONG&gt;,null())&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 20:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114053#M519718</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-30T20:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Show result as a negative value</title>
      <link>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114054#M519719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try:&lt;/P&gt;&lt;P&gt;if(match(Aggr($(vStarWeight),Star,MeasureID,Region_DESC),1),&lt;/P&gt;&lt;P&gt; if ([MeasureID] = 'CDC2_HBAPOOR' or 'PartD_HRM' or 'PCR2', $(vStar2)*-1, $(vStar2) ),&lt;/P&gt;&lt;P&gt; null()&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 22:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-result-as-a-negative-value/m-p/1114054#M519719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T22:51:11Z</dc:date>
    </item>
  </channel>
</rss>

