<?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: Compare 2 dates in the same column based on dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923362#M76000</link>
    <description>&lt;P&gt;Sorry, I see the confusion here.&amp;nbsp; What we have is 2 project, on created from the other (ID) I want to see it T1 date in one project matches the T1 date in the second project for the same ID (aligned)&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 13:55:35 GMT</pubDate>
    <dc:creator>RogerG</dc:creator>
    <dc:date>2022-04-27T13:55:35Z</dc:date>
    <item>
      <title>Compare 2 dates in the same column based on dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923059#M75974</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I have a dataset like this&lt;/P&gt;
&lt;TABLE border="1" width="100.00000000000001%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;
&lt;P&gt;ID&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;Project&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="40px"&gt;Timepoint&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="40px"&gt;
&lt;P&gt;Date&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="40px"&gt;P1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="40px"&gt;T1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="40px"&gt;
&lt;P&gt;1/1/2022&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;P1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;T2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;2/1/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;2&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;P2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;T1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;5/1/2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;p3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;T1&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;1/1/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;p3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;T2&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;2/15/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;1&lt;/TD&gt;
&lt;TD width="16.666666666666668%" height="25px"&gt;p3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;T3&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;3/1/2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is create an output table that would show&lt;/P&gt;
&lt;P&gt;(I don't like tables anymore &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; &amp;nbsp;Project&amp;nbsp; &amp;nbsp;Timepoint Match&lt;/P&gt;
&lt;P&gt;Only thing that would show under this is the mismatches&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID Project T1&amp;nbsp; &amp;nbsp;T2&amp;nbsp; &amp;nbsp;T3 Aligned&lt;/P&gt;
&lt;P&gt;This would show blank for matches and the difference in duration for mismatches, per day, not minutes.&amp;nbsp; if all were aligned, it would show a True or False&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Credit for the date matches&lt;/P&gt;
&lt;P&gt;Extra credit for the table.&amp;nbsp; I am not sure if it would be better to do the cross table in the load script or work with it in a pivot table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thoughts?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 22:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923059#M75974</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2022-04-26T22:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 dates in the same column based on dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923185#M75977</link>
      <description>&lt;P&gt;It is unclear what you mean with "aligned", but the following structure could probably help you. Note that the dime difference is calculated in the last step, and this you can use for your definition of "aligned".&lt;/P&gt;&lt;P&gt;SourceData:&lt;BR /&gt;Load&lt;BR /&gt;ID,&lt;BR /&gt;Project,&lt;BR /&gt;Timepoint,&lt;BR /&gt;Date#(Date,'M/D/YYYY') as Date&lt;BR /&gt;Inline&lt;BR /&gt;[ID,Project,Timepoint,Date&lt;BR /&gt;1,P1,T1,1/1/2022&lt;BR /&gt;1,P1,T2,2/1/2022&lt;BR /&gt;2,P2,T1,5/1/2023&lt;BR /&gt;1,p3,T1,1/1/2022&lt;BR /&gt;1,p3,T2,2/15/2022&lt;BR /&gt;1,p3,T3,3/1/2022];&lt;/P&gt;&lt;P&gt;FlattenedTable1:&lt;BR /&gt;Load distinct ID, Project Resident SourceData;&lt;BR /&gt;Left Join (FlattenedTable1)&lt;BR /&gt;Load ID, Project, Date as T1 Resident SourceData Where Timepoint='T1';&lt;BR /&gt;Left Join (FlattenedTable1)&lt;BR /&gt;Load ID, Project, Date as T2 Resident SourceData Where Timepoint='T2';&lt;BR /&gt;Left Join (FlattenedTable1)&lt;BR /&gt;Load ID, Project, Date as T3 Resident SourceData Where Timepoint='T3';&lt;/P&gt;&lt;P&gt;Drop Table SourceData;&lt;/P&gt;&lt;P&gt;FlattenedTable2:&lt;BR /&gt;Load&lt;BR /&gt;T2-T1 as Diff_T1_T2,&lt;BR /&gt;T3-T1 as Diff_T1_T3,&lt;BR /&gt;*&lt;BR /&gt;Resident FlattenedTable1;&lt;/P&gt;&lt;P&gt;Drop Table FlattenedTable1;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 07:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923185#M75977</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-04-27T07:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare 2 dates in the same column based on dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923362#M76000</link>
      <description>&lt;P&gt;Sorry, I see the confusion here.&amp;nbsp; What we have is 2 project, on created from the other (ID) I want to see it T1 date in one project matches the T1 date in the second project for the same ID (aligned)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 13:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-2-dates-in-the-same-column-based-on-dimensions/m-p/1923362#M76000</guid>
      <dc:creator>RogerG</dc:creator>
      <dc:date>2022-04-27T13:55:35Z</dc:date>
    </item>
  </channel>
</rss>

