<?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 Unique id instances across multiple fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unique-id-instances-across-multiple-fields/m-p/873727#M305215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;currently I am using the following set analysis to count the number of unique occurrences of a party_id in a date range. I'm needing to count the number of unique id's that occur across a combination &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFundTypeReal&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = '1' &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFundTypeReleased&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = '1' &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFundTypePlayable&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; ='1',&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; (&lt;BR /&gt; {$&lt;BR /&gt; &amp;lt;&lt;/SPAN&gt;SUMMARY_DATE&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"&lt;SPAN style="color: #000000;"&gt;}, &lt;/SPAN&gt;PARTY_ID&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"=sum(PNL_REAL+PNL_RELEASED_BONUS+PNL_PLAYABLE_BONUS)&amp;lt;&amp;gt;0"&lt;SPAN style="color: #000000;"&gt;} &amp;gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;/SPAN&gt;[PARTY_ID]&lt;SPAN style="color: #000000;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works (mostly), however there are instances where the sum is zero'd out because there are positive and negative values that cancel each other out. Does anyone have any suggestions using set analysis to count distinct ID's in a date range, where occurrences in any of the three fields -= 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2015 14:29:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-02T14:29:41Z</dc:date>
    <item>
      <title>Unique id instances across multiple fields</title>
      <link>https://community.qlik.com/t5/QlikView/Unique-id-instances-across-multiple-fields/m-p/873727#M305215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;currently I am using the following set analysis to count the number of unique occurrences of a party_id in a date range. I'm needing to count the number of unique id's that occur across a combination &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFundTypeReal&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = '1' &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFundTypeReleased&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = '1' &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #929292;"&gt;&lt;STRONG&gt;&lt;EM&gt;vFundTypePlayable&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; ='1',&lt;BR /&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;COUNT&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; (&lt;BR /&gt; {$&lt;BR /&gt; &amp;lt;&lt;/SPAN&gt;SUMMARY_DATE&lt;SPAN style="color: #000000;"&gt; = {&lt;/SPAN&gt;"&amp;gt;=$(vStartDate)&amp;lt;=$(vEndDate)"&lt;SPAN style="color: #000000;"&gt;}, &lt;/SPAN&gt;PARTY_ID&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"=sum(PNL_REAL+PNL_RELEASED_BONUS+PNL_PLAYABLE_BONUS)&amp;lt;&amp;gt;0"&lt;SPAN style="color: #000000;"&gt;} &amp;gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;/SPAN&gt;[PARTY_ID]&lt;SPAN style="color: #000000;"&gt;)&lt;BR /&gt; )&lt;BR /&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works (mostly), however there are instances where the sum is zero'd out because there are positive and negative values that cancel each other out. Does anyone have any suggestions using set analysis to count distinct ID's in a date range, where occurrences in any of the three fields -= 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2015 14:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unique-id-instances-across-multiple-fields/m-p/873727#M305215</guid>
      <dc:creator />
      <dc:date>2015-07-02T14:29:41Z</dc:date>
    </item>
  </channel>
</rss>

