<?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 Several data set with date fields in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003208#M11597</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have been working in a app with several data sets, and the majority of then come with date fields. I have been working with some of then to build my measures, but when the time comes to combine different fields from different data sets and I tried to visualize in a table my measures by a date dimension, some of then don`t work. Someone could advice how to address this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 16:50:24 GMT</pubDate>
    <dc:creator>MaryanVegaC</dc:creator>
    <dc:date>2022-11-10T16:50:24Z</dc:date>
    <item>
      <title>Several data set with date fields</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003208#M11597</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have been working in a app with several data sets, and the majority of then come with date fields. I have been working with some of then to build my measures, but when the time comes to combine different fields from different data sets and I tried to visualize in a table my measures by a date dimension, some of then don`t work. Someone could advice how to address this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 16:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003208#M11597</guid>
      <dc:creator>MaryanVegaC</dc:creator>
      <dc:date>2022-11-10T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Several data set with date fields</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003244#M11598</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187613"&gt;@MaryanVegaC&lt;/a&gt;&amp;nbsp;, here some tips that i use to deal with dates from different sources and formats.&lt;/P&gt;
&lt;P&gt;1.- Check the initial variables in Main tab script, maybe you need 'MM-DD-YYYY' or 'DD/MM/YYYY'. Check against your date fields.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1668104849355.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93449i0366AFA1062C687C/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_0-1668104849355.png" alt="QFabian_0-1668104849355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.- Check every Date field, just puting them as filters on screen :&lt;/P&gt;
&lt;P&gt;Example :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_1-1668104968765.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93450i9CB088599A4EA6BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_1-1668104968765.png" alt="QFabian_1-1668104968765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, when the text of the date is at the right side of the filter, it means that is a number, otherwise, qlik couldnt interpretate as date, or as number.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_2-1668105039414.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93451iDAE1A8D4C273E1C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_2-1668105039414.png" alt="QFabian_2-1668105039414.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then you can make the neccesary changes to correct that, in this case, i change some dates by reposisionating parts, or replacing '-' by '/'. There are going to be different many cases in different escenarios, example script:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date1:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Date1&lt;BR /&gt;1/1/2021&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Date2:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Date2&lt;BR /&gt;30/12/2021&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Date3:&lt;BR /&gt;Load * INLINE [&lt;BR /&gt;Date3&lt;BR /&gt;5-25-2021&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Dates:&lt;BR /&gt;Load&lt;BR /&gt;'Date1' as Source,&lt;BR /&gt;Date1 as Date&lt;BR /&gt;Resident Date1;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;'Date2' as Source,&lt;BR /&gt;date(makedate(subfield(Date2, '/', 3), subfield(Date2, '/', 2), subfield(Date2, '/', 1))) as Date&lt;BR /&gt;Resident Date2;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;'Date3' as Source,&lt;BR /&gt;replace(Date3, '-', '/') as Date&lt;BR /&gt;Resident Date3;&lt;/P&gt;
&lt;P&gt;Result :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_3-1668106029600.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/93453i8B9ED7C1B88A2FC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_3-1668106029600.png" alt="QFabian_3-1668106029600.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003244#M11598</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2022-11-10T18:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Several data set with date fields</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003247#M11599</link>
      <description>&lt;P&gt;Thank you. Really good tips!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:58:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2003247#M11599</guid>
      <dc:creator>MaryanVegaC</dc:creator>
      <dc:date>2022-11-10T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Several data set with date fields</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2005541#M11633</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187613"&gt;@MaryanVegaC&lt;/a&gt;&amp;nbsp;in scenario such as this, I feel it's better to go ahead and unify date formats of all date fields.&lt;/P&gt;
&lt;P&gt;But before that you should definitely carry the steps mentioned by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/121051"&gt;@QFabian&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 20:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Several-data-set-with-date-fields/m-p/2005541#M11633</guid>
      <dc:creator>Vishal_Gupta</dc:creator>
      <dc:date>2022-11-16T20:21:30Z</dc:date>
    </item>
  </channel>
</rss>

