<?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: Key Field for CrossTable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820242#M1045229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax I was talking about is Autonumber(field1&amp;amp;field2&amp;amp;field3&amp;amp;field4). Try that and tell me what happened.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 01:13:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-26T01:13:43Z</dc:date>
    <item>
      <title>Key Field for CrossTable</title>
      <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820239#M1045226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I did a crosstable load for maintenance plans info.&amp;nbsp; After making it a crosstable, the %plansid key field duplicates over records to cover, so the data is all out of whack ( it took me adding several other dimensions to the 'plans' before figuring this out).&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;As you can see in the attached screenshots, I have played around a bit with autonumber to no avail.&amp;nbsp; Is there a way to create a unique key to cover all possibilities of CompanyID, Plan Type, EXP date? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Note that I will also have to apply a map for the plan type names and then add other dimensions like company info and plan details -- I don't forsee this being an issue as long as I have this key field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks! &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 22:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820239#M1045226</guid>
      <dc:creator />
      <dc:date>2014-11-25T22:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Key Field for CrossTable</title>
      <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820240#M1045227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed you used the Autonumber function in the first image. Have you tried adding CompanyID, PlanType and ExpDate? I believe if you do so it will create a number for every different combination these 3 have (which is what I suppose you want when you talk about covering all possibilities of these 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else you could concatenate them, that'll create a unique key for each possible combination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 23:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820240#M1045227</guid>
      <dc:creator />
      <dc:date>2014-11-25T23:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Key Field for CrossTable</title>
      <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820241#M1045228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried -- autonumber(%CompanyID) + autonumber() + autonumber() as %PlansKey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As well as a couple variations and no luck.  What syntax would you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give a bit more detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Currently if I do a count(companyId) count(plantype) count(expdate) all three give me the same value.  Expdate has the largest number of rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          Even when I click on one company, the count(company) is based on how many plans that company has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-          There was a key, but after doing a crosstable, it is no longer applicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am thinking that I can’t just concatenate them, as in theory, the new plansID key would need to be reused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a simpler or better answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 00:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820241#M1045228</guid>
      <dc:creator />
      <dc:date>2014-11-26T00:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Key Field for CrossTable</title>
      <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820242#M1045229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax I was talking about is Autonumber(field1&amp;amp;field2&amp;amp;field3&amp;amp;field4). Try that and tell me what happened.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 01:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820242#M1045229</guid>
      <dc:creator />
      <dc:date>2014-11-26T01:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Key Field for CrossTable</title>
      <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820243#M1045230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Eduardo -- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's exactly what i needed to jog my memory.&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wound up being:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;autonumber(companyid&amp;amp;'-'&amp;amp;plantype) &amp;lt;-- realized that combo gives me the unique plans. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 01:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820243#M1045230</guid>
      <dc:creator />
      <dc:date>2014-11-26T01:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Key Field for CrossTable</title>
      <link>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820244#M1045231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anytime! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 02:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Key-Field-for-CrossTable/m-p/820244#M1045231</guid>
      <dc:creator />
      <dc:date>2014-11-26T02:12:39Z</dc:date>
    </item>
  </channel>
</rss>

