<?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 Replacing null value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978247#M965893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I want to replace Brandname&amp;nbsp; as OtherBrand where Brandname is null .&lt;/P&gt;&lt;P&gt;I want to do&amp;nbsp; this&amp;nbsp; in the script.&lt;/P&gt;&lt;P&gt; for exemple:&lt;/P&gt;&lt;P&gt;Brandname&amp;nbsp; ,Sales&lt;/P&gt;&lt;P&gt;abc,1000&lt;/P&gt;&lt;P&gt;pqr,2000&lt;/P&gt;&lt;P&gt;-,2500&lt;/P&gt;&lt;P&gt;xyz,1500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the scrpt will load my Brandname dimension should be like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandname&lt;/P&gt;&lt;P&gt;abc,&lt;/P&gt;&lt;P&gt;pqr,&lt;/P&gt;&lt;P&gt;OtherBrand,&lt;/P&gt;&lt;P&gt;xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 11:10:37 GMT</pubDate>
    <dc:creator>tripatirao</dc:creator>
    <dc:date>2015-10-01T11:10:37Z</dc:date>
    <item>
      <title>Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978247#M965893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I want to replace Brandname&amp;nbsp; as OtherBrand where Brandname is null .&lt;/P&gt;&lt;P&gt;I want to do&amp;nbsp; this&amp;nbsp; in the script.&lt;/P&gt;&lt;P&gt; for exemple:&lt;/P&gt;&lt;P&gt;Brandname&amp;nbsp; ,Sales&lt;/P&gt;&lt;P&gt;abc,1000&lt;/P&gt;&lt;P&gt;pqr,2000&lt;/P&gt;&lt;P&gt;-,2500&lt;/P&gt;&lt;P&gt;xyz,1500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the scrpt will load my Brandname dimension should be like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brandname&lt;/P&gt;&lt;P&gt;abc,&lt;/P&gt;&lt;P&gt;pqr,&lt;/P&gt;&lt;P&gt;OtherBrand,&lt;/P&gt;&lt;P&gt;xyz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978247#M965893</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2015-10-01T11:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978248#M965897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(isnull(Brandname),'OtherBrand',Brandname) as Brandname,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(Brandname)&amp;gt;0,Brandname,'OtherBrand') as Brandname,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978248#M965897</guid>
      <dc:creator>ManuelRühl</dc:creator>
      <dc:date>2015-10-01T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978249#M965901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I tried this but it is not working for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978249#M965901</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2015-10-01T11:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978250#M965904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it really null() or is there anything in the field ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978250#M965904</guid>
      <dc:creator>ManuelRühl</dc:creator>
      <dc:date>2015-10-01T11:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978251#M965907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(IsNull( Brand ),'OtherBrand',Brand)&lt;/P&gt;&lt;P&gt;this syntax is working fine for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978251#M965907</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-10-01T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978252#M965909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have there a null value or an empty string or '-' ?&lt;BR /&gt;It is depending on it....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978252#M965909</guid>
      <dc:creator>pamaxeed</dc:creator>
      <dc:date>2015-10-01T11:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978253#M965911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this.&lt;/P&gt;&lt;P&gt;ABC:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;if(Brandname ='-','OtherBrand',Brandname)as Brandname1;&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Brandname&amp;nbsp; ,Sales&lt;/P&gt;&lt;P&gt;abc,1000&lt;/P&gt;&lt;P&gt;pqr,2000&lt;/P&gt;&lt;P&gt;-,2500&lt;/P&gt;&lt;P&gt;xyz,1500&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978253#M965911</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2015-10-01T11:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978254#M965912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;A href="https://community.qlik.com/qlik-users/178975"&gt;qlikview7799&lt;/A&gt; suggestion it will work for sure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978254#M965912</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-10-01T11:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978255#M965914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where do you get null for BrandName?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a table? Brandname and Sales are fields of the same table?&lt;/P&gt;&lt;P&gt;in a chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978255#M965914</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-01T11:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978256#M965916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; in straight table&amp;nbsp; the null value is replaced by OtherBrand in following way by taking &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;calculated dimesion :if(len(trim(BrandName))=0,'OtherBrand',BrandName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;expression:sum(Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;But when i am doing in script&amp;nbsp; blank space is showing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978256#M965916</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2015-10-01T11:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978257#M965917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(len(trim(BrandName)) = 0, 'OtherBrand', BrandName) as BrandName1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should do the job. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isNull() is not always working as you might think, because a "empty" field is not always NULL. I could be space, tab or whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trim() will eliminate all space, tabs etc. an len gives you the lengths afterwards, if this is 0, then you can say for sure, its a null value in there (i thinks there is no brandname which is callde "space" --&amp;gt; " "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978257#M965917</guid>
      <dc:creator />
      <dc:date>2015-10-01T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978258#M965920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please share some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978258#M965920</guid>
      <dc:creator>prma7799</dc:creator>
      <dc:date>2015-10-01T11:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978259#M965922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working for a pharmaceutical data.&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have loaded&amp;nbsp; data from excel file.&lt;/P&gt;&lt;P&gt;there are so many field are present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;brandname,unitprice,shipquantity, prodctiontype.&lt;/P&gt;&lt;P&gt;abc,1000,20,tablet&lt;/P&gt;&lt;P&gt;xyz,2000,10,suspension&lt;/P&gt;&lt;P&gt;pqr,3000,30,capsule&lt;/P&gt;&lt;P&gt;blankspace,2000,40,injection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In excel file only for brandname some values are empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978259#M965922</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2015-10-01T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978260#M965924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;values are null or '-'??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 11:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978260#M965924</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-10-01T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing null value</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978261#M965926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gautam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.Actually that is a empty field in excel.&lt;/P&gt;&lt;P&gt;The problem is solved.&lt;/P&gt;&lt;P&gt;I forget to use the second expression&amp;nbsp; what manual ruhi suggested.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(len(Brandname)&amp;gt;0,Brandname,'OtherBrand') as Brandname,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 13:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-null-value/m-p/978261#M965926</guid>
      <dc:creator>tripatirao</dc:creator>
      <dc:date>2015-10-01T13:51:18Z</dc:date>
    </item>
  </channel>
</rss>

