<?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 Working with multiple records with the same key field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-with-multiple-records-with-the-same-key-field/m-p/448750#M1152554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, complete newb question here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure, I'm assuming key field is the same as primary key in databases?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've loaded the database in, and now I want to use two bits of data from two records with the same primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, say I'm creating a simple straight table and I want to calculate the difference in dates between when the primary key appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I need to use interval, but I don't know how to get the information for the two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval([PrimaryKeyFieldName].date - [PrimaryKeyFieldName].date, 'dd')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I literally don't have an idea at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 10:26:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-12T10:26:50Z</dc:date>
    <item>
      <title>Working with multiple records with the same key field</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-multiple-records-with-the-same-key-field/m-p/448750#M1152554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, complete newb question here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure, I'm assuming key field is the same as primary key in databases?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've loaded the database in, and now I want to use two bits of data from two records with the same primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, say I'm creating a simple straight table and I want to calculate the difference in dates between when the primary key appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I need to use interval, but I don't know how to get the information for the two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval([PrimaryKeyFieldName].date - [PrimaryKeyFieldName].date, 'dd')?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I literally don't have an idea at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 10:26:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-multiple-records-with-the-same-key-field/m-p/448750#M1152554</guid>
      <dc:creator />
      <dc:date>2013-04-12T10:26:50Z</dc:date>
    </item>
  </channel>
</rss>

