<?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 a string field with () designating negative into a num type? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385024#M491377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry can you show me the correct code.&amp;nbsp; I don't see an extra ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2012 15:43:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-06T15:43:30Z</dc:date>
    <item>
      <title>How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385015#M491368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simple way or does anyone have anyway to turn negative strings with () into -.&lt;/P&gt;&lt;P&gt;example of field data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9056&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11209&lt;/P&gt;&lt;P&gt;(495)&lt;/P&gt;&lt;P&gt;(44245)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 49300&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 13:34:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385015#M491368</guid>
      <dc:creator />
      <dc:date>2012-09-06T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385016#M491369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to change the Format Pattern on the Number tab:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="21428" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/21428_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, change ###########,### to ###########,###;-###########,### for a -&lt;/P&gt;&lt;P&gt;or change ###########,### to ###########,###;(###########,###) for ()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 13:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385016#M491369</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2012-09-06T13:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385017#M491370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can use:&lt;/P&gt;&lt;P&gt;Num#(replace(replace('(14)', '(', '-'), ')', ''))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your field instead of '(14)' in the formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385017#M491370</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-09-06T14:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385018#M491371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is exactly what I had done but it still gives me text data type.&amp;nbsp; I go from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4302)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5069&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7869&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-4302&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5069&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 7869&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385018#M491371</guid>
      <dc:creator />
      <dc:date>2012-09-06T14:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385019#M491372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say "text data" you mean the display in a chart is the display used for text ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385019#M491372</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-09-06T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385020#M491373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my test it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find below&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385020#M491373</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-09-06T15:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385021#M491374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what type the data is, but in a list box it aligns the way text data is supposed to. Other numbers align to the right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385021#M491374</guid>
      <dc:creator />
      <dc:date>2012-09-06T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385022#M491375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my document&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385022#M491375</guid>
      <dc:creator />
      <dc:date>2012-09-06T15:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385023#M491376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok got it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the "," too when you replace the "( )".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385023#M491376</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-09-06T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385024#M491377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry can you show me the correct code.&amp;nbsp; I don't see an extra ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385024#M491377</guid>
      <dc:creator />
      <dc:date>2012-09-06T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385025#M491378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't refresh your application, but I think that the issue comes from "," like in "-3,412".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"-3,412" is -3412 or -3.412 for you ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try Num#(replace(replace(replace(value, '(', '-'), ')', ''), ' ',''))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385025#M491378</guid>
      <dc:creator>nstefaniuk</dc:creator>
      <dc:date>2012-09-06T15:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385026#M491379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look to this thread for the eventually answer to this stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/256279#256279"&gt;http://community.qlik.com/message/256279#256279&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 16:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385026#M491379</guid>
      <dc:creator />
      <dc:date>2012-09-06T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385027#M491380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The replace() thing looks too complex to me. I would do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;num(num#(value, '#;(#)'), '#;-#')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2012 20:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385027#M491380</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-09-06T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385028#M491381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rob, the solutions works fine for me....but my problem is that I am having character - also in my fields for ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;(0.1)&lt;/P&gt;&lt;P&gt;50&lt;/P&gt;&lt;P&gt;40&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;(0.23)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such case the values (0.23)&amp;nbsp; gets converted to -0.23 but - values remains as it is..Ideally it should be converted to 0 to work with operators.&lt;/P&gt;&lt;P&gt;I am putting my query into the same thread as my query is an extension to the samequery&lt;/P&gt;&lt;P&gt;. Do suggest If i need to put up this into a new thread.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2013 05:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385028#M491381</guid>
      <dc:creator />
      <dc:date>2013-03-19T05:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to a string field with () designating negative into a num type?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385029#M491382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can replace the - values with either an if() or a map. For example, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(myfield='-',0,myfield) as myfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Mar 2013 17:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-a-string-field-with-designating-negative-into-a-num-type/m-p/385029#M491382</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-03-23T17:37:45Z</dc:date>
    </item>
  </channel>
</rss>

