<?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 convert - to null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426086#M799506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;may be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15124684365459140 jive_text_macro" jivemacro_uid="_15124684365459140"&gt;
&lt;P&gt;Fact:&lt;/P&gt;
&lt;P&gt;load *,if(len([AD Target])&amp;lt;=0 or [AD Target]='-' or isnull([AD Target]),'Null',[AD Target]) as [AD Target Revised],&lt;/P&gt;
&lt;P&gt;if(len([CD Target])&amp;lt;=0 or [CD Target]='-' or isnull([CD Target]),'Null',[CD Target]) as [CD Target Revised];&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, AD Target, CD Target&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 67, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 0, 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, -, -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, -, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 55, -&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185728_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2017 10:09:42 GMT</pubDate>
    <dc:creator>devarasu07</dc:creator>
    <dc:date>2017-12-05T10:09:42Z</dc:date>
    <item>
      <title>How to convert - to null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426084#M799504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me on this.&lt;/P&gt;&lt;P&gt;I have the exported output file from qlikscript like below. Here I need to convert&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;- ) to Null.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have tried like this in the script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;if(IsNull(trim([AB Targe])),Null(),trim([AB Targe)) as AB Targe&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;But getting the dash(-) in the result still now. Please help me how to convert to null.Please find the sample source file.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="185711" alt="Output screenshot.png" class="jive-image image-1" src="/legacyfs/online/185711_Output screenshot.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426084#M799504</guid>
      <dc:creator>bhavvibudagam</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert - to null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426085#M799505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are you getting when you use this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;if(IsNull([AB Targe]),'Null',trim([AB Targe)) as AB Targe&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #000000;"&gt;&lt;SPAN style="color: #000000;"&gt;if(Len([AB Targe]) = 0,'Null',trim([AB Targe)) as AB Targe&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426085#M799505</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-05T08:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert - to null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426086#M799506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;may be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15124684365459140 jive_text_macro" jivemacro_uid="_15124684365459140"&gt;
&lt;P&gt;Fact:&lt;/P&gt;
&lt;P&gt;load *,if(len([AD Target])&amp;lt;=0 or [AD Target]='-' or isnull([AD Target]),'Null',[AD Target]) as [AD Target Revised],&lt;/P&gt;
&lt;P&gt;if(len([CD Target])&amp;lt;=0 or [CD Target]='-' or isnull([CD Target]),'Null',[CD Target]) as [CD Target Revised];&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, AD Target, CD Target&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 67, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 0, 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, -, -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, -, 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, 55, -&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185728_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 10:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426086#M799506</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-05T10:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert - to null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426087#M799507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If your issue still not resolved, try to share the expected output and then check article as well,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3155"&gt;NULL handling in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u wish to handle "-" as "Null" in qlik front end then easily u can do it by enable check box in your pivot/table chart object--&amp;gt; presentation tabl&amp;nbsp; misisng symbol "-" into Null or NA like that&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/185751_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 10:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426087#M799507</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-05T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert - to null</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426088#M799508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many threads on Qlik Community with the help of this you can get the knowledge about how to handle null values in the Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3155" title="https://community.qlik.com/docs/DOC-3155"&gt;https://community.qlik.com/docs/DOC-3155&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/null-value-handling.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/null-value-handling.htm"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/null-value-handling.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/90825"&gt;how to handle null values in qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 15:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-to-null/m-p/1426088#M799508</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-12-05T15:26:50Z</dc:date>
    </item>
  </channel>
</rss>

