<?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 Dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates/m-p/1525307#M747507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have numerous tables with different dates, when i try to make a calendar from them the data is duplicated for every date in the tables.&amp;nbsp; My script looks like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateLink:&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([SDT],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([SDT]) as Month,&lt;BR /&gt;'Episode' as ServiceTable,&lt;BR /&gt;Year([SDT]) as Year&lt;BR /&gt;RESIDENT Episode;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vIntermediateCareLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([IntermediateCare.ContactDATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([IntermediateCare.ContactDATE]) as Month,&lt;BR /&gt;'IntermediateCare' as ServiceTable,&lt;BR /&gt;Year([IntermediateCare.ContactDATE]) as Year&lt;BR /&gt;RESIDENT IntermediateCare;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vIntermediateCareLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Community_Therapies.ContactDATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Community_Therapies.ContactDATE]) as Month,&lt;BR /&gt;Year([Community_Therapies.ContactDATE]) as Year,&lt;BR /&gt;'Community_Therapies' as ServiceTable&lt;BR /&gt;RESIDENT Community_Therapies;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vIntermediateCareLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Community_Nursing.ContactDATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Community_Nursing.ContactDATE]) as Month,&lt;BR /&gt;Year([Community_Nursing.ContactDATE]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Community_Nursing;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vSocialCareContractLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Social_Care_Dom_Care.START_DATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Social_Care_Dom_Care.START_DATE]) as Month,&lt;BR /&gt;Year([Social_Care_Dom_Care.START_DATE]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Social_Care_Dom_Care;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vSocialCareContractLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Social_Care_Carehome.START_DATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Social_Care_Carehome.START_DATE]) as Month,&lt;BR /&gt;Year([Social_Care_Carehome.START_DATE]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Social_Care_Carehome;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vPathologyLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date(Pathology.SIDate,'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Pathology.SIDate]) as Month,&lt;BR /&gt;Year([Pathology.SIDate]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Pathology;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vRadiologyLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;[NHSNo],&lt;BR /&gt;Date([Radiololgy.SIDate],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Radiololgy.SIDate]) as Month,&lt;BR /&gt;Year([Radiololgy.SIDate]) as Year,&lt;BR /&gt;'Radiololgy' as ServiceTable&lt;BR /&gt;RESIDENT Radiololgy;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vTherapiesLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;[NHSNo],&lt;BR /&gt;Date([Therapies.SIDate],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Therapies.SIDate]) as Month,&lt;BR /&gt;Year([Therapies.SIDate]) as Year,&lt;BR /&gt;'Therapies' as ServiceTable&lt;BR /&gt;RESIDENT Therapies;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do i need a further step for my calendar so I'm not getting duplicates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>kev6brown</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dates/m-p/1525307#M747507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have numerous tables with different dates, when i try to make a calendar from them the data is duplicated for every date in the tables.&amp;nbsp; My script looks like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateLink:&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([SDT],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([SDT]) as Month,&lt;BR /&gt;'Episode' as ServiceTable,&lt;BR /&gt;Year([SDT]) as Year&lt;BR /&gt;RESIDENT Episode;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vIntermediateCareLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([IntermediateCare.ContactDATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([IntermediateCare.ContactDATE]) as Month,&lt;BR /&gt;'IntermediateCare' as ServiceTable,&lt;BR /&gt;Year([IntermediateCare.ContactDATE]) as Year&lt;BR /&gt;RESIDENT IntermediateCare;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vIntermediateCareLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Community_Therapies.ContactDATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Community_Therapies.ContactDATE]) as Month,&lt;BR /&gt;Year([Community_Therapies.ContactDATE]) as Year,&lt;BR /&gt;'Community_Therapies' as ServiceTable&lt;BR /&gt;RESIDENT Community_Therapies;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vIntermediateCareLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Community_Nursing.ContactDATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Community_Nursing.ContactDATE]) as Month,&lt;BR /&gt;Year([Community_Nursing.ContactDATE]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Community_Nursing;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vSocialCareContractLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Social_Care_Dom_Care.START_DATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Social_Care_Dom_Care.START_DATE]) as Month,&lt;BR /&gt;Year([Social_Care_Dom_Care.START_DATE]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Social_Care_Dom_Care;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vSocialCareContractLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date([Social_Care_Carehome.START_DATE],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Social_Care_Carehome.START_DATE]) as Month,&lt;BR /&gt;Year([Social_Care_Carehome.START_DATE]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Social_Care_Carehome;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vPathologyLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;NHSNo,&lt;BR /&gt;Date(Pathology.SIDate,'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Pathology.SIDate]) as Month,&lt;BR /&gt;Year([Pathology.SIDate]) as Year,&lt;BR /&gt;'Pathology' as ServiceTable&lt;BR /&gt;RESIDENT Pathology;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vRadiologyLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;[NHSNo],&lt;BR /&gt;Date([Radiololgy.SIDate],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Radiololgy.SIDate]) as Month,&lt;BR /&gt;Year([Radiololgy.SIDate]) as Year,&lt;BR /&gt;'Radiololgy' as ServiceTable&lt;BR /&gt;RESIDENT Radiololgy;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;If vTherapiesLoadY1 = 'Yes' Then&lt;BR /&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;[NHSNo],&lt;BR /&gt;Date([Therapies.SIDate],'dd/MM/yyyy') as DATE,&lt;BR /&gt;Month([Therapies.SIDate]) as Month,&lt;BR /&gt;Year([Therapies.SIDate]) as Year,&lt;BR /&gt;'Therapies' as ServiceTable&lt;BR /&gt;RESIDENT Therapies;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do i need a further step for my calendar so I'm not getting duplicates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kev&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates/m-p/1525307#M747507</guid>
      <dc:creator>kev6brown</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dates/m-p/1525353#M747508</link>
      <description>If the NHSNo-field exist in all tables, there will already be a synthetic key without putting the calendar.&lt;BR /&gt;If the tables are similar, it makes sense to concatenate the tables first and then place a calendar on it.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2019 11:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates/m-p/1525353#M747508</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2019-01-02T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dates</title>
      <link>https://community.qlik.com/t5/QlikView/Dates/m-p/1526016#M747509</link>
      <description>&lt;P&gt;Hi Kev,&lt;/P&gt;&lt;P&gt;I see at least two problems:&lt;/P&gt;&lt;P&gt;1. ServiceTable field.&lt;/P&gt;&lt;P&gt;2. Concatenate keyword&lt;/P&gt;&lt;P&gt;Both cause duplicate dates in your DateLink table.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;Load distinct&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;Month,&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;Resident&lt;/P&gt;&lt;P&gt;DateLink;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop fields Month, Year from DateLink;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 19:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates/m-p/1526016#M747509</guid>
      <dc:creator>bgerchikov</dc:creator>
      <dc:date>2019-01-03T19:30:07Z</dc:date>
    </item>
  </channel>
</rss>

