<?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 Mark first instance of Value during Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378603#M703007</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 am loading in a data file that contains a receipt number.&amp;nbsp; This number is duplicated against multiple lines.&amp;nbsp; To try to speed up calculations i am looking to populate a new column during the load with a 1 on the first instance of a new receipt number and a 0 on all duplicate lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can do this via count(distinct in expressions but want to leverage to speed of sum by utilising 1 and 0 's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2012 15:51:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-16T15:51:35Z</dc:date>
    <item>
      <title>Mark first instance of Value during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378603#M703007</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 am loading in a data file that contains a receipt number.&amp;nbsp; This number is duplicated against multiple lines.&amp;nbsp; To try to speed up calculations i am looking to populate a new column during the load with a 1 on the first instance of a new receipt number and a 0 on all duplicate lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can do this via count(distinct in expressions but want to leverage to speed of sum by utilising 1 and 0 's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 15:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378603#M703007</guid>
      <dc:creator />
      <dc:date>2012-08-16T15:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mark first instance of Value during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378604#M703008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ReceiptNr,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if( exists(ReceiptNr),0,1) as FirstOccurrence,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM ...;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 15:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378604#M703008</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-16T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Mark first instance of Value during Load</title>
      <link>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378605#M703009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your load script should look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable:&lt;/P&gt;&lt;P&gt;LOAD If(exists([Recept ID]),0,1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Recept ID], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Sample.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will hopefully produce a table as you desire&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 16:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mark-first-instance-of-Value-during-Load/m-p/378605#M703009</guid>
      <dc:creator />
      <dc:date>2012-08-16T16:20:28Z</dc:date>
    </item>
  </channel>
</rss>

