<?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: Exclude a field if it is equal to itself in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138297#M904877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct they are actual on different lines when I look at the straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be a way of excluding them if they are on different lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 08:36:47 GMT</pubDate>
    <dc:creator>shonarach</dc:creator>
    <dc:date>2016-06-30T08:36:47Z</dc:date>
    <item>
      <title>Exclude a field if it is equal to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138295#M904875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a dashboard to report of HR issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have it linked to a database that has a lot of historical data. It can be updated at any time and saves all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my dashboard I have already overcome the problem of dates by telling my code to count the max date ...using the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=max(MonthEnd(CommonDateMonth))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I am counting everything. If an employee is employed they have a flag and if they have resigned they have a flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my code to be able to read where a 'uniquefield' (Made up of FirstName, LastName, ID_Number) is in both fields .. ie they have been employed and have now resigned then flag it as resigned otherwise they are a current employee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;PreceedingLoad::&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[uniquefield]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[uniquefield]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CurrentEmployee&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Resigned' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 'Employee', 'NoLongerEmployed', 'Okay') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Emp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;//*****************Normal Load **************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;* &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[End Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), 'Resigned', 'Employee') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CurrentEmployee &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;//********************* SQL DB**********************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM `.......................................`; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not calculating the second part it is just telling me they are all 'Okay'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is clear. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&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/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138295#M904875</guid>
      <dc:creator>shonarach</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a field if it is equal to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138296#M904876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can CurrentEmployee be Resigned and Employee at the same time in a single row?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,If([uniquefield] = [uniquefield]&amp;nbsp; and &lt;SPAN style="color: #ff0000;"&gt;CurrentEmployee = 'Resigned' and 'Employee',&lt;/SPAN&gt; 'NoLongerEmployed', 'Okay') as Emp&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138296#M904876</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-29T16:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a field if it is equal to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138297#M904877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct they are actual on different lines when I look at the straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would there be a way of excluding them if they are on different lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 08:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138297#M904877</guid>
      <dc:creator>shonarach</dc:creator>
      <dc:date>2016-06-30T08:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude a field if it is equal to itself</title>
      <link>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138298#M904878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible to share few rows of dummy data to show how your data looks? I am not sure I understand your first condition where you are checking UniqueField = UniqueField. I might be missing something here and would be able to provide a better solution if I have a look at the dummy data with the expected output here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 00:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exclude-a-field-if-it-is-equal-to-itself/m-p/1138298#M904878</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-01T00:48:40Z</dc:date>
    </item>
  </channel>
</rss>

