<?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: Why calculated fields shows minus (-) and not a value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637316#M595994</link>
    <description>&lt;P&gt;I believe that means that there is more than one possible value for that expression. If you use a listbox and select only one value for Field 2 or Field 3, it should show some value. You may need to use set analysis or other logic to get it to display what you want.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 16:56:05 GMT</pubDate>
    <dc:creator>lockematthewp</dc:creator>
    <dc:date>2019-10-18T16:56:05Z</dc:date>
    <item>
      <title>Why calculated fields shows minus (-) and not a value?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637304#M595992</link>
      <description>&lt;P&gt;Hi QV users,&lt;/P&gt;&lt;P&gt;i have a problem with calculated fields.&lt;/P&gt;&lt;P&gt;I've imported some txt files and i create a table with some fields and calculated ones.&lt;/P&gt;&lt;P&gt;I don't know why the column "LABEL4" ([LABEL1]-[LABEL2]-[LABEL3]) don't show me any value but only a minus (-).&lt;/P&gt;&lt;P&gt;If&amp;nbsp; correct, the total of "LABEL4" should be the same of the total of "LABEL1".&lt;/P&gt;&lt;P&gt;I think that the problem is in the expression "LABEL2":&lt;/P&gt;&lt;P&gt;Num(If([FIELD4]=1,&lt;BR /&gt;Num(Left([FIELD2],5)&lt;BR /&gt;&amp;amp; ',' &amp;amp;&lt;BR /&gt;Num(Right([FIELD2],2)&lt;BR /&gt;,0))))&lt;/P&gt;&lt;P&gt;and "LABEL3":&lt;/P&gt;&lt;P&gt;Num(If([FIELD4]=1,&lt;BR /&gt;Num(Left([FIELD3],2)&lt;BR /&gt;&amp;amp; ',' &amp;amp;&lt;BR /&gt;Num(Right([FIELD3],2)&lt;BR /&gt;,0))))&lt;/P&gt;&lt;P&gt;Please, can someone help me?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637304#M595992</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2024-11-16T19:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why calculated fields shows minus (-) and not a value?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637315#M595993</link>
      <description>&lt;P&gt;Hello Mattia,&lt;/P&gt;&lt;P&gt;I believe your if statements have to be reworked a bit.&amp;nbsp; Without sample data is hard to say but it seems they are returning nulls therefore the operation&amp;nbsp;&lt;SPAN&gt;[LABEL1] - [LABEL2] - [LABEL3] result is null which is represented by a -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My suggestion is to evaluate each LABEL on it's own before calculating LABEL4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this for LABEL2 (and same idea of the LABEL3). I just moved the closing parenthesis....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;num(If([FIELD4]=1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,num(Left([FIELD2],5)&amp;amp; ',' &amp;amp;Num(Right([FIELD2],2)))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 16:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637315#M595993</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2019-10-18T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why calculated fields shows minus (-) and not a value?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637316#M595994</link>
      <description>&lt;P&gt;I believe that means that there is more than one possible value for that expression. If you use a listbox and select only one value for Field 2 or Field 3, it should show some value. You may need to use set analysis or other logic to get it to display what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 16:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637316#M595994</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-10-18T16:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why calculated fields shows minus (-) and not a value?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637360#M595995</link>
      <description>&lt;P&gt;Thanks guys for the message.&lt;/P&gt;&lt;P&gt;I'll try and i'll let you know!&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 18:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637360#M595995</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-18T18:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why calculated fields shows minus (-) and not a value?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637615#M595996</link>
      <description>&lt;P&gt;Thank you so much, Alberto!&lt;/P&gt;&lt;P&gt;Now, it works!!!&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Mattia&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 06:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-calculated-fields-shows-minus-and-not-a-value/m-p/1637615#M595996</guid>
      <dc:creator>Mattia</dc:creator>
      <dc:date>2019-10-21T06:45:12Z</dc:date>
    </item>
  </channel>
</rss>

