<?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: IsNull function not working in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166479#M893282</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 you are trying to display 1 if a value is selected in the Dates field and 0 if there's no value selected you can add a text object with the following formula:&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount("Dates")&amp;gt;0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to apply that logic in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know ir this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 15:16:43 GMT</pubDate>
    <dc:creator>santiago_respane</dc:creator>
    <dc:date>2016-08-10T15:16:43Z</dc:date>
    <item>
      <title>IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166475#M893278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a Issue with Isnulll function. Some of expert can please help me to resolve this Issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having field called Date.I want to show 0 when there is no Date got selected.&lt;/P&gt;&lt;P&gt;In front end side I am using formula in Text Object&lt;STRONG&gt; if(Isnull(Dates) = -1,0,1) &lt;/STRONG&gt;we expected output 0. It's getting as expected.&lt;/P&gt;&lt;P&gt;I have written Same formula in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Dates,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(IsNull(Dates)=-1,0,1) as [Date Info]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;xyz.qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but [Date Info] is displaying only 1. Not even 0. Just like in below Screen shot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Isnull.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134212_Isnull.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some can plz help on this. I am attaching sample data and sample qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Swarupaaa&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/IsNull-function-not-working-in-script/m-p/1166475#M893278</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166476#M893279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attached sample, there are no places where date is null. Have you tried adding a row where date is actually null?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166476#M893279</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T15:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166477#M893280</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;i mean the correct code will be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(IsNull(Dates),0,1) as [Date Info]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166477#M893280</guid>
      <dc:creator>kruppas78</dc:creator>
      <dc:date>2016-08-10T15:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166478#M893281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with: &lt;STRONG&gt;if(len(trim(Dates))=0,0,1) as [Date Info]&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166478#M893281</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-08-10T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166479#M893282</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 you are trying to display 1 if a value is selected in the Dates field and 0 if there's no value selected you can add a text object with the following formula:&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount("Dates")&amp;gt;0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to apply that logic in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know ir this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166479#M893282</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-10T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166480#M893283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I added few nulls in your attached Excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="134222" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134222_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="134223" alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/134223_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your actual application, you might have white spaces and that's why IsNull isn't working. Try with Len(Trim()) function&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(Dates)) &amp;gt; 0, 1, 0) as [Date Info]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:17:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166480#M893283</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T15:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166481#M893284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Is it possible by using len function?. why because my requirement is&lt;/P&gt;&lt;P&gt;if(Dates = "",0,1) so I thought it can be done by using Isnull. Is there any alternate method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Swarupaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166481#M893284</guid>
      <dc:creator />
      <dc:date>2016-08-10T15:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166482#M893285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Reply. I have tried this but it's not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166482#M893285</guid>
      <dc:creator />
      <dc:date>2016-08-10T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166483#M893286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for Answer. But in my data there is null values. only if we select only it have to show 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166483#M893286</guid>
      <dc:creator />
      <dc:date>2016-08-10T15:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166484#M893287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this : &lt;A href="https://community.qlik.com/thread/228204"&gt;Show date Dates with 0 value if data not available&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166484#M893287</guid>
      <dc:creator>beck_bakytbek</dc:creator>
      <dc:date>2016-08-10T15:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166485#M893288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;Thank you for your reply. I have Tried this but it's not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166485#M893288</guid>
      <dc:creator />
      <dc:date>2016-08-10T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166486#M893289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is that you only read 1 column.&lt;/P&gt;&lt;P&gt;on which date should QlikView set the value 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD RowNo()+1 as Row,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dates,&lt;/P&gt;&lt;P&gt; if(IsNull(Dates),0,1) as [Date Info]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Row will Show you the Excel file Row when there is an empty date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166486#M893289</guid>
      <dc:creator>kruppas78</dc:creator>
      <dc:date>2016-08-10T15:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: IsNull function not working in script</title>
      <link>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166487#M893290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 16:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IsNull-function-not-working-in-script/m-p/1166487#M893290</guid>
      <dc:creator />
      <dc:date>2016-08-10T16:40:20Z</dc:date>
    </item>
  </channel>
</rss>

