<?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: show Unknown if IsNull(@48) or @48=' ' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423600#M157896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[DebtorType] or [Debtor Type]? Did you correct the field name typo in Gysbert's suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2012 07:54:21 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-11-12T07:54:21Z</dc:date>
    <item>
      <title>show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423596#M157892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(isnull(@48)='','Unknown',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@48='','Unknown',@48))) AS [Debtor Type],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it's not picking up all the blank DebtorType.&lt;/P&gt;&lt;P&gt;aka I'm still getting values coming in as blank. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas why it's not picking up all the blanks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 07:43:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423596#M157892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T07:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423597#M157893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try: if(len(trim(@48))=0,'Unknown',@48) as [Debtor Type]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;edit: fixed typo in Debtor Typ&lt;SPAN style="text-decoration: underline;"&gt;e&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 07:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423597#M157893</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-11-12T07:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423598#M157894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that, but it didn't work out. Nothing came back at all for DebtorType.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 07:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423598#M157894</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T07:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423599#M157895</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;Its not working because IsNull() returns a true (-1) or false (0) value. Gysbert's suggestion should work as the length (len) of a null or an empty string is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 07:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423599#M157895</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-11-12T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423600#M157896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[DebtorType] or [Debtor Type]? Did you correct the field name typo in Gysbert's suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 07:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423600#M157896</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-11-12T07:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423601#M157897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I use &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Gysbert's &lt;/SPAN&gt;script this is the result I get. &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="24962" class="jive-image" alt="Debtor Type.PNG" src="/legacyfs/online/24962_Debtor Type.PNG" /&gt;&lt;/P&gt;&lt;P&gt;this is the result when I use the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;(if(isnull(@48)=' ','Unknown',&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@48= ' ','Unknown',@48))) AS [Debtor Type],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;IMG __jive_id="24963" class="jive-image" alt="DebtorType2.PNG" src="https://community.qlik.com/legacyfs/online/24963_DebtorType2.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 08:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423601#M157897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T08:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423602#M157898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, &lt;/P&gt;&lt;P&gt;thanks for noticing the that &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;[DebtorType] need to be changed to [Debtor Type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;when I made that change it is giving the same result as the second table above. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 08:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423602#M157898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T08:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423603#M157899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can u provide an app? it wud b easy to rectify...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 09:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423603#M157899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: show Unknown if IsNull(@48) or @48=' '</title>
      <link>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423604#M157900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I think you can't use isnull function the way you used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(isnull(@48&lt;SPAN style="text-decoration: line-through;"&gt;)=''&lt;/SPAN&gt;,'Unknown',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@48='','Unknown',@48))) AS [Debtor Type],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct format of isnull is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(&lt;STRONG&gt;isnull(@48)&lt;/STRONG&gt;,'Unknown',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@48='','Unknown',@48))) AS [Debtor Type],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use this format :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(if(&lt;STRONG&gt;@48=null()&lt;/STRONG&gt;,'Unknown',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@48='','Unknown',@48))) AS [Debtor Type],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MultiView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 09:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/show-Unknown-if-IsNull-48-or-48/m-p/423604#M157900</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-12T09:36:35Z</dc:date>
    </item>
  </channel>
</rss>

