<?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: Using Autonumber on a key field that is already linking tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455945#M794933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you need a different number for each month a policy is in effect? And - just like Sunny was wondering - is it working now without the AutoNumber() modification? Then it should work with the AutoNumber() modification just like it did before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine I have a bar chart with a single dimension IFDate (as a substitute for a MonthYear value), and count(InFPolicyNumber) as an expression. Whether InFPolicyNumber is ABC123 or 1, the count will produce the same result and the bar chart will look the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, maybe we're running ahead of ourselves and creating problems in the link between the table on the left and the table on the right. But not really, since you seem to be creating the InForceIF table from the InforceCounts table. That means that if you AutoNumber() whatever key value you have in the table on the left, it will get copied to the table on the right as-is. The link field would stay functional. And that's ok, because you're not using the key field for anything else than linking the two tables. Even if you change the Bar chart to use InFMoYr as a dimension, the display would still be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just that in the latter case and using AutoNumber() to change the content of the key field to a sequence number, I would add an original Policy number in a new field in the table on the left. Thereby separating keys from fields that are used in aggregation expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2017 16:50:30 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-12-28T16:50:30Z</dc:date>
    <item>
      <title>Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455928#M794910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The document analyzer is saying I could free up about 1MB of space by using Autonumber() on one of my field InFPolicyNumber. Would I need to Autonumber both? Would they still join correctly? I tried reading a bunch of material on the subject but nothing gave a clear answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188312_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;InforceCounts:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BillSysCd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFClientName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFFarmFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[~InFFarmFlag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFELSFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[~InFELSFlag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MCDInF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// PolEffDt,&lt;BR /&gt; // Month(PolEffDt) as PolEffDtMonth,&lt;BR /&gt; // PolExpDt&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vQVDPath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;InforceCounts.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(InforceCounts)&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vQVDPath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;IFReferenceTable.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; InForceIF:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// IFDate as InFDate,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFMoYr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Month(IFDate) as InFMonth,&lt;BR /&gt; // Year(IFDate) as InFYear,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-13)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFRoll13Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; InforceCounts &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455928#M794910</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455929#M794911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;InforceCounts:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD BillSysCd,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;InFClientName,&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;AutoNumber(InFPolicyNumber, 'Key') as InFPolicyNumber,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;InFFarmFlag as [~InFFarmFlag],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;InFELSFlag as [~InFELSFlag],&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MCD as MCDInF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// PolEffDt,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Month(PolEffDt) as PolEffDtMonth,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// PolExpDt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM $(vQVDPath)InforceCounts.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join(InforceCounts)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load InFPolicyNumber,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;IFDate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;From $(vQVDPath)IFReferenceTable.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;InForceIF:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;&lt;STRONG&gt;AutoNumber(InFPolicyNumber, 'Key') as InFPolicyNumber,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// IFDate as InFDate,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; MakeDate(Year(IFDate), Month(IFDate)) as InFMoYr,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Month(IFDate) as InFMonth,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Year(IFDate) as InFYear,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; If((IFDate&amp;gt;=AddMonths(Monthstart(Today()),-13)) and (IFDate&amp;lt;=MonthEnd(Today())),1,0) as InFRoll13Flag&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident InforceCounts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: Added a missing single quote above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 22:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455929#M794911</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-27T22:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455930#M794912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, what is that &lt;STRONG&gt;'Key&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 23:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455930#M794912</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-27T23:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455931#M794913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Key is just an ID used to make sure that if there are more than one AutoNumber used in the script, this one is starts from 1 and not a continuation of the other AutoNumber. Always a good idea to specify a new id to make sure that the AutoNumber do not become unnecessarily high.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 23:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455931#M794913</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-27T23:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455932#M794916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks, that way you're ensuring that each distinct value of &lt;STRONG style="color: #ff0000; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;InFPolicyNumber&lt;/STRONG&gt;&lt;/STRONG&gt; will get the same autonumber regardless of doing it more than once on different tables.&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;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 23:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455932#M794916</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-27T23:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455933#M794918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not the reason. Even &lt;STRONG style="color: #ff0000; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;AutoNumber(InFPolicyNumber) &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;will assign a distinct value to InFPolicyNumber. I will try to create a sample for you to show what I mean.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 00:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455933#M794918</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T00:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455934#M794919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this script where I have two unlinked tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AutoNumber(Field1) as FirstAutoNumber,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dsh&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;efsl&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AutoNumber(Field2) as SecondAutoNumber,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(Field2, 'Key') as ThirdAutoNumber,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,ka&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ehd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;skd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and there Output is as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188320_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Note how SecondAutoNumber is continuing from where it left for the FirstAutoNumber, but the ThirdAutoNumber restarted from 1 because it has a unique key which tells it to restart and only continue when the same Key is used elsewhere&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 00:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455934#M794919</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T00:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455935#M794920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the idea of restarting the autonumber using like a different seed or reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I didn't know and sort of impresses me is that I never thought that SecondAutoNumber for DEF was going to be 3 as it's a different field than Field1.... but it seems Qlik keeps that value in memory and assigns the same autonumber -assuming no or same reference- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 01:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455935#M794920</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-28T01:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455936#M794921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't seem to work in my scenario. Each Policy number is repeated multiple times in the data. You helped me get it so if policy ABC123 is effective 1/1/17-1/1/18 the data would show an in effect month. So I have ABC123 for 1/31/17, 2/28/17, 3/31/17, 4/30/17, etc. It seems autonumber just takes all instances of ABC123 and gives it a 1. Is there a way for Qlikview to number these 1,2,3,4, etc? Could the key field be used for that? If not, it is not a big deal. I just figured I would build in memory savings as I go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 13:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455936#M794921</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-28T13:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455937#M794922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add Effective to the AutoNumberFields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoNumber(InFPolicyNumber&lt;SPAN style="color: #ff0000;"&gt;&amp;amp;Effective&lt;/SPAN&gt;, 'Key') as InFPolicyNumber,&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 13:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455937#M794922</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455938#M794925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used IFDate since that is the field that has the end of month date for each effective month. The issue looks like when I do that IFDate is only in the second table so the data will never join because InFPolicy number in table one would be ABC123 and InFpolicy Number from table two would be ABC123&amp;amp;1/31/17&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 14:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455938#M794925</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-28T14:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455939#M794927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So why do you want to add IFDate to one of the tables? What is wrong with repeating number for a single InFPolicy? I don't think I fully understand your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 14:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455939#M794927</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455940#M794928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IFDate is end of each month that a policy is effective that way I can get a count of effective policies for each month. Without that I only have effective and expiration dates and no way to get a count for the months in between. Adding the IFDate makes the data look like this (along with various other fields):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Policy ABC123 effective 1/1/17-1/1/18 and DEF456 effective 5/1/17-5/1/18.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Policy, IFDate&lt;/P&gt;&lt;P&gt;ABC123 , 1/31/17&lt;/P&gt;&lt;P&gt;ABC123, 2/28/17&lt;/P&gt;&lt;P&gt;ABC123, 3/31/17(all the way to 12/31/17)&lt;/P&gt;&lt;P&gt;DEF456, 5/31/17&lt;/P&gt;&lt;P&gt;DEF456, 6/30/17&lt;/P&gt;&lt;P&gt;DEF456, 7/31/17 (all the way to 4/30/18)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 14:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455940#M794928</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-28T14:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455941#M794929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to take a step back and ask you this... Your initial data model was working, right?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/188375_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only think you really wanted to do was to free up some space using AutoNumber, right again hopefully? So, where did the effective date came in from? If you wish to keep all things like previous (the model which worked), you don't want to include IFDate in the AutoNumber.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 14:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455941#M794929</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-28T14:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455942#M794930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIK you're trying to use one field for two purposes, creating sort of a split personality. That will not work. For example, if you let AutoNumber() number all occurrences of PolicyID differently, you'll get into trouble again when adding a table of policy details without repeating each entry for all months a policy is effective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keys serve a single purpose: stitching your data model together. Aggregation should be done on other fields, so as to prevent any side-effects of key values occurring multiple times in different table columns carrying the same field name. Of course, you can avoid those using other techniques, but as a general practice, better separate keys from data fields. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 14:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455942#M794930</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-12-28T14:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455943#M794931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct. The effective date was used to calculate the IFDate. The IFDate lets me know if the policy is In Force in a given month. If I only do as your first comment suggests then my pivot table is blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 16:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455943#M794931</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-28T16:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455944#M794932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So then what I am trying to do is not possible? I would need the InFPolicyNumber to have a different AutoNumber for each IFDate. For example, every row here is actually the same policy number. Autonumber seems to condense all these to one number. Because of the different IFDate I need a number for each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" class="jive-image image-1" height="350" src="https://community.qlik.com/legacyfs/online/188386_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" width="705" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 16:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455944#M794932</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-28T16:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455945#M794933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you need a different number for each month a policy is in effect? And - just like Sunny was wondering - is it working now without the AutoNumber() modification? Then it should work with the AutoNumber() modification just like it did before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine I have a bar chart with a single dimension IFDate (as a substitute for a MonthYear value), and count(InFPolicyNumber) as an expression. Whether InFPolicyNumber is ABC123 or 1, the count will produce the same result and the bar chart will look the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, maybe we're running ahead of ourselves and creating problems in the link between the table on the left and the table on the right. But not really, since you seem to be creating the InForceIF table from the InforceCounts table. That means that if you AutoNumber() whatever key value you have in the table on the left, it will get copied to the table on the right as-is. The link field would stay functional. And that's ok, because you're not using the key field for anything else than linking the two tables. Even if you change the Bar chart to use InFMoYr as a dimension, the display would still be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's just that in the latter case and using AutoNumber() to change the content of the key field to a sequence number, I would add an original Policy number in a new field in the table on the left. Thereby separating keys from fields that are used in aggregation expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 16:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455945#M794933</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-12-28T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455946#M794934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, everything works fine without the autonumber modification but there is some lag. It was my understanding that using autonumber could free up some RAM and maybe reduce lag. Adding autonumber shows a blank pivot and actually shows null values for the IFDate in the table viewer, so each number is shown once. If IFDate didn't change to null it would probably be fine. I would think this is because the left join doesn't find matching InFPolicyNumbers in the second table since table one would shoud 1 but table two would show ABC123?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have an original policy number field doesn't that defeat the purpose of using autonumber because all the policy numbers are still in the table, therefore not saving any memory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 18:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455946#M794934</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-28T18:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Autonumber on a key field that is already linking tables</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455947#M794935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This works but according to document analyzer and the compare tool it made no difference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; InforceCounts:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BillSysCd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFClientName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Autonumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'InFPolicyNumber') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFFarmFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[~InFFarmFlag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFELSFlag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[~InFELSFlag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MCD&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MCDInF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// PolEffDt,&lt;BR /&gt; // Month(PolEffDt) as PolEffDtMonth,&lt;BR /&gt; // PolExpDt&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vQVDPath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;InforceCounts.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(InforceCounts)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Autonumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'InFPolicyNumber') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vQVDPath)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;IFReferenceTable.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; InForceIF:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFPolicyNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// IFDate as InFDate,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFMoYr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Month(IFDate) as InFMonth,&lt;BR /&gt; // Year(IFDate) as InFYear,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Monthstart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),-13)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;IFDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InFRoll13Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; InforceCounts &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2017 19:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Autonumber-on-a-key-field-that-is-already-linking-tables/m-p/1455947#M794935</guid>
      <dc:creator>greend21</dc:creator>
      <dc:date>2017-12-29T19:39:14Z</dc:date>
    </item>
  </channel>
</rss>

