<?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 Handling null variable values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440566#M164218</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;Im working with with several inputboxes, and each of one has a variable assigned to it. These inputboxes are made to insert numerical values but when the user delete the value in it I need to write a 0 value instead.&amp;nbsp;&amp;nbsp; I have tried to use the functions inNull(myVariable) or myVariable=null() to use some trigger but any of these work. If the variable is empty I can not make any thing with it (for example if I need the variable in some if expression, its not working).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about how can I handle these "empty" variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 10:15:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-05T10:15:45Z</dc:date>
    <item>
      <title>Handling null variable values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440566#M164218</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;Im working with with several inputboxes, and each of one has a variable assigned to it. These inputboxes are made to insert numerical values but when the user delete the value in it I need to write a 0 value instead.&amp;nbsp;&amp;nbsp; I have tried to use the functions inNull(myVariable) or myVariable=null() to use some trigger but any of these work. If the variable is empty I can not make any thing with it (for example if I need the variable in some if expression, its not working).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas about how can I handle these "empty" variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 10:15:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440566#M164218</guid>
      <dc:creator />
      <dc:date>2013-06-05T10:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Handling null variable values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440567#M164219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you not&amp;nbsp; use in your expression smething like if(MyVariable = '' ...&amp;nbsp;&amp;nbsp; to handle the empty case ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 10:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440567#M164219</guid>
      <dc:creator />
      <dc:date>2013-06-05T10:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Handling null variable values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440568#M164220</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 use if ()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;myVariable)=null()&lt;/SPAN&gt;,0,$(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;myVariable)&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ariel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 10:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440568#M164220</guid>
      <dc:creator>ariel_klien</dc:creator>
      <dc:date>2013-06-05T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handling null variable values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440569#M164221</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;Try this expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (len(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;myVariable&lt;/SPAN&gt;)=0,0,&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;myVariable&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 10:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440569#M164221</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-06-05T10:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handling null variable values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440570#M164222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! Thank you very much for the quick answers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact these expressions are the ones I have been using all the morning without success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just tried this in the trigger, and it´s finally working!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(vVar)'='', 0, &lt;/SPAN&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vVar)) &lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 10:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-null-variable-values/m-p/440570#M164222</guid>
      <dc:creator />
      <dc:date>2013-06-05T10:31:08Z</dc:date>
    </item>
  </channel>
</rss>

