<?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: Data Loading/Scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356215#M493044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a table with a key of user id and date with a login flag (0 means no login, 1 means one or more logins for that user on that date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a table (Data) containing user ids and actial login dates, you could use something like this to create a login flag table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LoginTable:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(date)) As date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 As login_flag&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you use depends on details of your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2012 17:54:19 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-06-17T17:54:19Z</dc:date>
    <item>
      <title>Data Loading/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356214#M493043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Message Log table which records the date and time for all the online members which login onto the online systems. Now I have to provide the count for the logins/incoming traffic for our member portal page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The login count rule is that if a member login on a particular date for eg 06/17/12 more than one time still it will be consider as a single login for that day. The login date count are based on the month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So should I load my table normally and join it with the calendar table that i have created or there is some catch during the loading in order to achieve the required count rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 17:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356214#M493043</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2012-06-17T17:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Loading/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356215#M493044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a table with a key of user id and date with a login flag (0 means no login, 1 means one or more logins for that user on that date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a table (Data) containing user ids and actial login dates, you could use something like this to create a login flag table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LoginTable:&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; userid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Floor(date)) As date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 As login_flag&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you use depends on details of your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 17:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356215#M493044</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-06-17T17:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data Loading/Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356216#M493045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an Example.qvw with the excel data file. Can you modify the qvw according to the scripting-logic you suggested?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2012 20:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Loading-Scripting/m-p/356216#M493045</guid>
      <dc:creator>hkg_qlik</dc:creator>
      <dc:date>2012-06-17T20:19:27Z</dc:date>
    </item>
  </channel>
</rss>

