<?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: How can we identify &amp;quot;first time&amp;quot; data in Qlik? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82093#M5470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you work with incremental loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) load previously available data (containing all previously existing combinations User-Attribute)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) load data from the new week that not existed before using a where not exists(User-Attribute, New-User-Attribute) condition.&lt;/P&gt;&lt;P&gt;ensure to use a certain flag&amp;nbsp; or a field "first loaded in week" containing the week in which the value first appeared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) load data from the new week that existed before (if needed)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2018 19:30:46 GMT</pubDate>
    <dc:creator>mikaelsc</dc:creator>
    <dc:date>2018-05-23T19:30:46Z</dc:date>
    <item>
      <title>How can we identify "first time" data in Qlik?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82092#M5469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have an interesting challenge, in that we are looking thru a dataset that uploads each week, and we want to identify what is new this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, let's say that our people are named A, B, C, thru ZZ.&lt;/P&gt;&lt;P&gt;They have attributes, that we'll call 1, 2, 3, ...n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we want to know, is when a person first has an attribute.&amp;nbsp; The data would look like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Week 1:&amp;nbsp; A1, A4, C1, C29, F2, F100.&lt;/P&gt;&lt;P&gt;Week 2:&amp;nbsp; B1, A4, C1, C29, F2, F100.&lt;/P&gt;&lt;P&gt;Week 3:&amp;nbsp; B1, B4, C2, C29, F2, F100, G5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our analysis would yield&lt;/P&gt;&lt;P&gt;A1, A4, C1, C29, F2, F100 in Week 1&lt;/P&gt;&lt;P&gt;B1 in Week 2&lt;/P&gt;&lt;P&gt;B4, G5 in Week 3&lt;/P&gt;&lt;P&gt;since those are the first times those combinations were added. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our list of People and Attributes is not of a fixed length, new ones are added all the time.&amp;nbsp; They are, however, uniquely identified.&amp;nbsp; The only thing we care about, for this challenge, is finding the first time that there is a new Person-Attribute combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideas on whether this is a good use case within Qlik, or would this be better handled at the database level, before bringing into Qlik?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 18:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82092#M5469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T18:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify "first time" data in Qlik?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82093#M5470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you work with incremental loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) load previously available data (containing all previously existing combinations User-Attribute)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) load data from the new week that not existed before using a where not exists(User-Attribute, New-User-Attribute) condition.&lt;/P&gt;&lt;P&gt;ensure to use a certain flag&amp;nbsp; or a field "first loaded in week" containing the week in which the value first appeared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) load data from the new week that existed before (if needed)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 19:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82093#M5470</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-23T19:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify "first time" data in Qlik?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82094#M5471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mikael, if I understand correctly, we would need to set a "first loaded" flag outside of Qlik.&amp;nbsp; Then Qlik could easily display that data.&amp;nbsp; It wouldn't be a good use case within Qlik to point-out which records are appearing for the 1st time.&amp;nbsp; Is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 20:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82094#M5471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-23T20:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify "first time" data in Qlik?</title>
      <link>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82095#M5472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, everything in Qlik of Course &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe with some more scripting hints: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Load previously available data: &lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;from OldData&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will give you the table: &lt;/P&gt;&lt;P&gt;Week, User, Attribute, &lt;EM&gt;UserAttribute&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;1,A,1,A1&lt;/P&gt;&lt;P&gt;1,A,4,A4&lt;/P&gt;&lt;P&gt;1,C,1,C1&lt;/P&gt;&lt;P&gt;1,C,29,C29&lt;/P&gt;&lt;P&gt;1,F,2,F2&lt;/P&gt;&lt;P&gt;1,F,100,F100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Load only New data from week 2&lt;/P&gt;&lt;P&gt;concatenate(Data)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;from Week2&lt;/P&gt;&lt;P&gt;where not exists (&lt;EM&gt;UserAttribute,&lt;STRONG&gt;UserAttribute&lt;/STRONG&gt;&lt;/EM&gt;); --&amp;gt; the loaded &lt;STRONG&gt;&lt;EM&gt;UserAttribute&lt;/EM&gt;&lt;/STRONG&gt; is compared to previously loaded values of &lt;EM&gt;UserAttribute&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Which will give you the table: &lt;/P&gt;&lt;P&gt;Week, User, Attribute, UserAttribute,&lt;STRONG&gt;FirstAppearedWeek&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1,A,1,A1&lt;/P&gt;&lt;P&gt;1,A,4,A4&lt;/P&gt;&lt;P&gt;1,C,1,C1&lt;/P&gt;&lt;P&gt;1,C,29,C29&lt;/P&gt;&lt;P&gt;1,F,2,F2&lt;/P&gt;&lt;P&gt;1,F,100,F100&lt;/P&gt;&lt;P&gt;2,B,1,B1,&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) eventually add the other recortds of week 2 as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2018 20:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-can-we-identify-quot-first-time-quot-data-in-Qlik/m-p/82095#M5472</guid>
      <dc:creator>mikaelsc</dc:creator>
      <dc:date>2018-05-23T20:28:30Z</dc:date>
    </item>
  </channel>
</rss>

