<?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: WHERE NOT EXISTS - script assistance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906809#M1217947</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17306"&gt;@ashmitp869&lt;/a&gt;&amp;nbsp;, i cant see the month or date field in your script, but please try if something &lt;FONT color="#008000"&gt;&lt;STRONG&gt;like this&lt;/STRONG&gt;&lt;/FONT&gt; works for you :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SE_OOS_count:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"SE.Derived National Service Event Record Id",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE.count_se as SE.count_se_final,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;if(isnull(Month) or Month = '' or Month = 0,&amp;nbsp;peek(New_Month), Month) as New_Month,&amp;nbsp; //check if the date is null and then put the previous value from the same field.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SE.count_moh_se as SE.count_moh_se_final&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RESIDENT SE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 00:56:18 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2022-03-18T00:56:18Z</dc:date>
    <item>
      <title>WHERE NOT EXISTS - script assistance</title>
      <link>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906490#M1217938</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;Please kindly assist with my below script - I am not able to use not exists function properly -&lt;/P&gt;
&lt;P&gt;SE:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SE."Derived National Service Event Record Id",&lt;/P&gt;
&lt;P&gt;1 as count_se,&lt;BR /&gt;1 as count_moh_se&lt;/P&gt;
&lt;P&gt;from QVD;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NAP_MoH_SE_TMP:&lt;BR /&gt;LOAD DISTINCT &lt;BR /&gt;"OOS.Derived National Service Event Record Id" ,//as "SE.Derived National Service Event Record Id",&lt;BR /&gt;1 AS SE.count_se,&lt;BR /&gt;0 AS SE.count_moh_se &lt;BR /&gt;RESIDENT OOS;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concatenate (SE)&lt;BR /&gt;//TMP:&lt;BR /&gt;LOAD &lt;BR /&gt;"OOS.Derived National Service Event Record Id" as "SE.Derived National Service Event Record Id", &lt;BR /&gt;SE.count_se,&lt;BR /&gt;SE.count_moh_se &lt;BR /&gt;RESIDENT NAP_MoH_SE_TMP;&lt;/P&gt;
&lt;P&gt;//WHERE NOT EXISTS ("SE.Derived National Service Event Record Id","OOS.Derived National Service Event Record Id" );&lt;/P&gt;
&lt;P&gt;DROP TABLE NAP_MoH_SE_TMP;&lt;/P&gt;
&lt;P&gt;I am getting this output -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1647517921932.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74722iB2C5B4F72164597B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1647517921932.png" alt="ashmitp869_1-1647517921932.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where as I want this -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_0-1647517891707.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74721iEB8968E9C31FA1DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_0-1647517891707.png" alt="ashmitp869_0-1647517891707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 11:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906490#M1217938</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-03-17T11:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT EXISTS - script assistance</title>
      <link>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906807#M1217946</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have manage to write the script -&lt;/P&gt;
&lt;P&gt;SE:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;SE."Derived National Service Event Record Id",&lt;/P&gt;
&lt;P&gt;SE."Derived National Service Event Record Id" as SE.UniqueTestField,&lt;/P&gt;
&lt;P&gt;1 as count_se,&lt;BR /&gt;1 as count_moh_se&lt;/P&gt;
&lt;P&gt;from QVD;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concatenate(SE)&lt;BR /&gt;LOAD DISTINCT &lt;BR /&gt;"OOS.Derived National Service Event Record Id" as "SE.Derived National Service Event Record Id",&lt;BR /&gt;1 AS SE.count_se,&lt;BR /&gt;0 AS SE.count_moh_se &lt;BR /&gt;RESIDENT OOS&lt;BR /&gt;WHERE NOT EXISTS ("SE.UniqueTestField","OOS.Derived National Service Event Record Id");&lt;/P&gt;
&lt;P&gt;SE_OOS_count:&lt;BR /&gt;LOAD &lt;BR /&gt;"SE.Derived National Service Event Record Id",&lt;BR /&gt;SE.count_se as SE.count_se_final,&lt;BR /&gt;SE.count_moh_se as SE.count_moh_se_final&lt;BR /&gt;RESIDENT SE;&lt;/P&gt;
&lt;P&gt;I am using the expression below to get the result :&amp;nbsp; sum(SE.count_se_final)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ashmitp869_1-1647563369770.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/74803i317FC46E9991522E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ashmitp869_1-1647563369770.png" alt="ashmitp869_1-1647563369770.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But my requirement is to show SE.month - Jul and Service Events as 547. How to get that.&lt;/P&gt;
&lt;P&gt;I understand , why the 89 count is coming null as it taking from RESIDENT OOS table which is does not exists in SE.&lt;/P&gt;
&lt;P&gt;But is there any way to show - Jul with the number 547 ?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 00:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906807#M1217946</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2022-03-18T00:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE NOT EXISTS - script assistance</title>
      <link>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906809#M1217947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17306"&gt;@ashmitp869&lt;/a&gt;&amp;nbsp;, i cant see the month or date field in your script, but please try if something &lt;FONT color="#008000"&gt;&lt;STRONG&gt;like this&lt;/STRONG&gt;&lt;/FONT&gt; works for you :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SE_OOS_count:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"SE.Derived National Service Event Record Id",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SE.count_se as SE.count_se_final,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;if(isnull(Month) or Month = '' or Month = 0,&amp;nbsp;peek(New_Month), Month) as New_Month,&amp;nbsp; //check if the date is null and then put the previous value from the same field.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SE.count_moh_se as SE.count_moh_se_final&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RESIDENT SE;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 00:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/WHERE-NOT-EXISTS-script-assistance/m-p/1906809#M1217947</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2022-03-18T00:56:18Z</dc:date>
    </item>
  </channel>
</rss>

