<?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 Where Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362397#M704149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing analysis on a web log. The fields I have are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserName,&lt;/P&gt;&lt;P&gt;TimeStamp,&lt;/P&gt;&lt;P&gt;Action,&lt;/P&gt;&lt;P&gt;SessionID (Identifier that tracks an active session)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before a user logs in, we track their UserName as 'NA' and when they log in their UserName switches to their actual login name. However, we also run scripts to test are servers that are also stored with the UserName 'NA'. Could you guys help me come up with the Where statement that would include the UserName 'NA' when there is another UserName within that SessionID and eliminate the UserNames 'NA' when it is the only UserName in that SessionID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 13:51:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-21T13:51:24Z</dc:date>
    <item>
      <title>Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362397#M704149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing analysis on a web log. The fields I have are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UserName,&lt;/P&gt;&lt;P&gt;TimeStamp,&lt;/P&gt;&lt;P&gt;Action,&lt;/P&gt;&lt;P&gt;SessionID (Identifier that tracks an active session)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before a user logs in, we track their UserName as 'NA' and when they log in their UserName switches to their actual login name. However, we also run scripts to test are servers that are also stored with the UserName 'NA'. Could you guys help me come up with the Where statement that would include the UserName 'NA' when there is another UserName within that SessionID and eliminate the UserNames 'NA' when it is the only UserName in that SessionID?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 13:51:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362397#M704149</guid>
      <dc:creator />
      <dc:date>2012-06-21T13:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362398#M704150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some sample data and required output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 23:49:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362398#M704150</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2012-06-21T23:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362399#M704151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best guess without sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;QualifiedSessions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD SessionId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;where UseridCount&amp;gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SessionId,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(UserName) as UseridCount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM weblogs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;GROUP by SessionId&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SessionLogs:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM weblogs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE exists(SessionId)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;DROP TABLE QualifiedSessions;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 07:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement/m-p/362399#M704151</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-06-22T07:06:52Z</dc:date>
    </item>
  </channel>
</rss>

