<?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: Create unique id with the master calendar in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151013#M20629</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;&lt;/P&gt;&lt;P&gt;I had already tried this expression, but unfortunately I duplicate keys.&lt;/P&gt;&lt;P&gt;The expression in fact creates an id for each day of the month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;January 1, 2016 -&amp;gt; ID = 201601&lt;/P&gt;&lt;P&gt;January 2, 2016 -&amp;gt; ID = 201601&lt;/P&gt;&lt;P&gt;January 3, 2016 -&amp;gt; ID = 201601&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repeated 31 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I make a distinct count on the id I find 19 keys. (From January 2015 to July 2016).&lt;/P&gt;&lt;P&gt;if I make a normal count, I find 578 id, one for each day of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an expression that I produce only 19 distinct keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 10:12:55 GMT</pubDate>
    <dc:creator>marcobe13</dc:creator>
    <dc:date>2016-07-14T10:12:55Z</dc:date>
    <item>
      <title>Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151011#M20627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone! I'm here with another question ...&lt;/P&gt;&lt;P&gt;I've looked everywhere on the forum but have not found a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my goal is to create a unique id connected to the master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need:&lt;/P&gt;&lt;P&gt;- A self-generated based on calendar month and year (no day)&lt;/P&gt;&lt;P&gt;- Or: a complete calendar that you are creating, creates an id for each month + years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;auto generated id: (date starting on 01/01/2015 and ends 31/07/2016)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-201501&lt;/P&gt;&lt;P&gt;-201502&lt;/P&gt;&lt;P&gt;-201503&lt;/P&gt;&lt;P&gt;-201504&lt;/P&gt;&lt;P&gt;-201505&lt;/P&gt;&lt;P&gt;-201506&lt;/P&gt;&lt;P&gt;-201507&lt;/P&gt;&lt;P&gt;-201508&lt;/P&gt;&lt;P&gt;-201509&lt;/P&gt;&lt;P&gt;-201510&lt;/P&gt;&lt;P&gt;-201511&lt;/P&gt;&lt;P&gt;-201512&lt;/P&gt;&lt;P&gt;-201601&lt;/P&gt;&lt;P&gt;-201602&lt;/P&gt;&lt;P&gt;-201603&lt;/P&gt;&lt;P&gt;-201604&lt;/P&gt;&lt;P&gt;-201605&lt;/P&gt;&lt;P&gt;-201606&lt;/P&gt;&lt;P&gt;-201607&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The id should not be repeated during creation, so if January 2015 was 31 days, I would not repeat the id 201 501 31 times, but only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can not tie this id to the calendar, you just can generate this id automatically from a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can someone help me? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use to create the id is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(year(TempDate),'0000') &amp;amp; Num(month(TempDate),'00') as UNIQUEID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks to those who can help me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 16:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151011#M20627</guid>
      <dc:creator>marcobe13</dc:creator>
      <dc:date>2016-07-13T16:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151012#M20628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Autonumber(MonthStart(TempDate)) as ID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 09:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151012#M20628</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T09:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151013#M20629</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;&lt;/P&gt;&lt;P&gt;I had already tried this expression, but unfortunately I duplicate keys.&lt;/P&gt;&lt;P&gt;The expression in fact creates an id for each day of the month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;January 1, 2016 -&amp;gt; ID = 201601&lt;/P&gt;&lt;P&gt;January 2, 2016 -&amp;gt; ID = 201601&lt;/P&gt;&lt;P&gt;January 3, 2016 -&amp;gt; ID = 201601&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;repeated 31 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I make a distinct count on the id I find 19 keys. (From January 2015 to July 2016).&lt;/P&gt;&lt;P&gt;if I make a normal count, I find 578 id, one for each day of the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an expression that I produce only 19 distinct keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 10:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151013#M20629</guid>
      <dc:creator>marcobe13</dc:creator>
      <dc:date>2016-07-14T10:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151014#M20630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The keys aren't duplicated. Every record of the month gets the same key. I guess I don't understand what you're trying to do. Are you trying to create a table that has no relationship at all to any other data in your document? If so, what on earth for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151014#M20630</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151015#M20631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a unique id, based on the union of the year and month, using the master calendar.&lt;/P&gt;&lt;P&gt;This is because I would like to create it based on the reference date used in the master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can not, simply create this field in a new table, based on the date that I use for the calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The id that I create is the unique union between the year and month, in a progressive manner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry if I have not explained well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; I hope I have explained better what I would get ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used and tested your expression (when creating the master table calendar), but if I do a count on the id does not return 19 unique fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151015#M20631</guid>
      <dc:creator>marcobe13</dc:creator>
      <dc:date>2016-07-14T12:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151016#M20632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you want a master calendar that only contains months and not dates?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151016#M20632</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T12:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151017#M20633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe, I do not know if it's the solution cher try.&lt;/P&gt;&lt;P&gt;The priority is to create this id automatically and dynamically, based on the reference date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use the days for analysis, then, perhaps create a master calendar days may not be the solution, but only if I can compose this unique ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 12:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151017#M20633</guid>
      <dc:creator>marcobe13</dc:creator>
      <dc:date>2016-07-14T12:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151018#M20634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;TableWIthUniqueID:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;LOAD DISTINCT&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autonumber(MonthStart(TempDate)) as ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RESIDENT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableThatContainsTempDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 14:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151018#M20634</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-07-14T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create unique id with the master calendar</title>
      <link>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151019#M20635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed a little formula to get the id that I wanted, I added extracting a distinct month and year, the process is just that. So I have the calendar I wanted ... Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 12:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-unique-id-with-the-master-calendar/m-p/1151019#M20635</guid>
      <dc:creator>marcobe13</dc:creator>
      <dc:date>2016-07-15T12:17:22Z</dc:date>
    </item>
  </channel>
</rss>

