<?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: Return positive values as negative values with conditional statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Return-positive-values-as-negative-values-with-conditional/m-p/1971998#M80187</link>
    <description>&lt;P&gt;Are you trying that in the script, Can you show the result in the table chart, how does it look, left aligned or right aligned? to identify if Field2 is a text field or not..&lt;/P&gt;
&lt;P&gt;If you are trying in the script, can you share the complete statement, is it like this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if([Field1] = 'A',Field2*-1,Field2) AS Field2Negative&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 14:19:00 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2022-08-23T14:19:00Z</dc:date>
    <item>
      <title>Return positive values as negative values with conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Return-positive-values-as-negative-values-with-conditional/m-p/1971959#M80184</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to convert field with positive values for the negative ones based on if condition in the load script.&lt;/P&gt;
&lt;P&gt;So far I have tried following options:&lt;/P&gt;
&lt;P&gt;if([Field1] = 'A',-([Field2]))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if([Field1] = 'A',([Field2]*-1))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunatelly none of them worked. Do you have any other suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Return-positive-values-as-negative-values-with-conditional/m-p/1971959#M80184</guid>
      <dc:creator>Mt3</dc:creator>
      <dc:date>2022-08-23T13:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Return positive values as negative values with conditional statement</title>
      <link>https://community.qlik.com/t5/App-Development/Return-positive-values-as-negative-values-with-conditional/m-p/1971998#M80187</link>
      <description>&lt;P&gt;Are you trying that in the script, Can you show the result in the table chart, how does it look, left aligned or right aligned? to identify if Field2 is a text field or not..&lt;/P&gt;
&lt;P&gt;If you are trying in the script, can you share the complete statement, is it like this?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if([Field1] = 'A',Field2*-1,Field2) AS Field2Negative&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 14:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Return-positive-values-as-negative-values-with-conditional/m-p/1971998#M80187</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-08-23T14:19:00Z</dc:date>
    </item>
  </channel>
</rss>

