<?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: Exists/ not Exists using flags in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988884#M648041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The blank is probably an empty string or a value of on or more spaces. A listbox will not show real nulls. If you want to check for nulls and blanks you can use something like =if(len(trim( MyField )) &amp;lt;&amp;gt; 0, MyField, 'No Value') as MyField,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Oct 2015 07:36:45 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-10-16T07:36:45Z</dc:date>
    <item>
      <title>Exists/ not Exists using flags</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988881#M648037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I wondered if someone could give me some help here. I am struggling with something that I thought would be straight forward , but for whatever reason I don´t get what I need. I am trying to compare two lists of items from two files ( rev A and rev B files ) and detect which items from list A are missing in list B and viceversa ( basically I need to find items removed and items added in list B ) and create a field that I can use to select 'Added Items' or 'Removed Items'. I thought a very quick and simple way would be to add some flags to the script and use a rangesum function ( to "sum" the two columns, Flag_A + Flag_B ) and create the field I need ( what I called Flag_delta ).&lt;/P&gt;&lt;P&gt;This new field should have 3 values : -1,0,1 ( -1 for items existing only in list A , 0 for items existing in both lists , 1 for items existing only in list B )&lt;/P&gt;&lt;P&gt;See my script below : &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Flags.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102124_Flags.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;For whatever reason the RANGESUM function is not giving me the value 0 , only values -1 and 1 . Do you know what I am doing wrong here ?&lt;/P&gt;&lt;P&gt;Any help is appreciated&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 16:29:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988881#M648037</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2015-10-15T16:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exists/ not Exists using flags</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988882#M648039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;rangesum sums the values of the flags of the same record, not across records. What you want is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delta:&lt;/P&gt;&lt;P&gt;LOAD [Equipement TAG],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Flag_A),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Flag_B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(rangesum(Flag_A, Flag_B))&lt;/P&gt;&lt;P&gt;Resident Temp&lt;/P&gt;&lt;P&gt;Group By &lt;SPAN style="font-size: 13.3333px;"&gt;[Equipement TAG];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 16:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988882#M648039</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-15T16:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exists/ not Exists using flags</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988883#M648040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Gysbert ! it works great now. It also helps me to detect some problems with my source data files as it seems there are some duplications there ( you can see numbers lower than -1 or higher than 1 . There is something though I find strange and it happens to me as well in other Qview apps ( I am a beginner &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; , in the list box ( Equipment TAG ) the first value on the list is a blank value ( Null ? ) . Do you know why I have a blank value there ? Could it be a problem coming from my source file ( excel )?&lt;/P&gt;&lt;P&gt;Thanks again for the help&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Enrique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Flags_tables.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102153_Flags_tables.png" style="height: 393px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 21:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988883#M648040</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2015-10-15T21:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exists/ not Exists using flags</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988884#M648041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;The blank is probably an empty string or a value of on or more spaces. A listbox will not show real nulls. If you want to check for nulls and blanks you can use something like =if(len(trim( MyField )) &amp;lt;&amp;gt; 0, MyField, 'No Value') as MyField,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 07:36:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988884#M648041</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-16T07:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exists/ not Exists using flags</title>
      <link>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988885#M648042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right Gysbert, I was checking the source files in detail and I noticed these blank field values when doing a Table transformation when loading the script . I simply removed these empty cells on this step, and then get rid of the blank value in the list box.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&lt;IMG alt="BlankFieldValues.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102257_BlankFieldValues.png" style="height: 82px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exists-not-Exists-using-flags/m-p/988885#M648042</guid>
      <dc:creator>quiquehm</dc:creator>
      <dc:date>2015-10-16T14:56:52Z</dc:date>
    </item>
  </channel>
</rss>

