<?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 How to convert null() to 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128139#M752580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello..&lt;/P&gt;&lt;P&gt;I have data in my LOAD statements, where one Employee have a value while another has not any records about it.&lt;/P&gt;&lt;P&gt;How can I convert null() values to 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the LOAD statement bollow, but it doesn't help.. one employee still has "-" value instead of 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Employee,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Coffee_Rent = null(),0, Coffee_Rent) AS Coffee_Rent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Another_Table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>sculptorlv</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128139#M752580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello..&lt;/P&gt;&lt;P&gt;I have data in my LOAD statements, where one Employee have a value while another has not any records about it.&lt;/P&gt;&lt;P&gt;How can I convert null() values to 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the LOAD statement bollow, but it doesn't help.. one employee still has "-" value instead of 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Employee,&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(Coffee_Rent = null(),0, Coffee_Rent) AS Coffee_Rent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Another_Table.&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-null-to-0/m-p/128139#M752580</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128140#M752581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is That Real Null Value? May be Use IsNull function like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; IF(Coffee_Rent = null(), If(IsNull(Coffee_Rent),0, Coffee_Rent)) AS Coffee_Rent&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:05:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128140#M752581</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-23T08:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128141#M752582</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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Employee,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; IF(len(trim(Coffee_Rent))=0,0, Coffee_Rent) AS Coffee_Rent&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Another_Table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128141#M752582</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-10-23T08:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128142#M752583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try like this also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Employee,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF(len(trim(Coffee_Rent)) = 0,0, Coffee_Rent) AS Coffee_Rent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Another_Table.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Br,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128142#M752583</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-10-23T08:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128143#M752584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlick says to me that TRIM is not recognized built-in funcion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128143#M752584</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2018-10-23T08:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128144#M752585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got incorrect syntax erro, need to show 2 parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128144#M752585</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2018-10-23T08:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128145#M752586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Not IsNull(Coffee_Rent), Coffee_Rent, 0) AS Coffee_Rent&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Coffee_Rent)&amp;gt;0, &lt;STRONG&gt;Coffee_Rent&lt;/STRONG&gt;, 0) as &lt;STRONG&gt;Coffee_Rent&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128145#M752586</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-23T08:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128146#M752587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it is because you are using a sql statement;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this if that is the case.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Employee,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF(len(trim(Coffee_Rent)) = 0,0, Coffee_Rent) AS Coffee_Rent;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&amp;nbsp; select&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from table;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Br,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 08:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128146#M752587</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2018-10-23T08:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128147#M752588</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 could look at the null as value function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularStatements/NullAsValue.htm" title="https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularStatements/NullAsValue.htm"&gt;https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptRegularStatements/NullAsValu…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:39:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128147#M752588</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2018-10-23T10:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128148#M752589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatelly, both cases are not working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216616_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/216632_2.jpg" style="height: 232px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 05:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128148#M752589</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2018-10-24T05:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128149#M752590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure how to use it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216633_3.jpg" style="height: 296px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the result is the same:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/216634_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 05:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128149#M752590</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2018-10-24T05:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null() to 0</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128150#M752591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found my problem!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used two parameters for Employees with the help of JOIN. As the result, for some Employees were not presented in the first LOAD statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my needs I started with the full list of empoyees and then&amp;nbsp; sed rangesum function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 05:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-null-to-0/m-p/128150#M752591</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2018-10-24T05:49:53Z</dc:date>
    </item>
  </channel>
</rss>

