<?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 End dates based on next start date for a dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483685#M101073</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try something like :&amp;nbsp;Test :&lt;BR /&gt;Load Patient,&lt;BR /&gt;[Order Type],&lt;BR /&gt;[Start Date],&lt;BR /&gt;if(Previous(Patient) = Patient and len([End date]) =0 , date(peek([Start Date],-1)-1),[End date]) as [End date]&lt;BR /&gt;Resident TMP&lt;BR /&gt;Order by Patient asc, [Start Date] desc;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValentinBld_1-1727337670544.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172170iD82FABEA6693EC2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValentinBld_1-1727337670544.png" alt="ValentinBld_1-1727337670544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 08:01:16 GMT</pubDate>
    <dc:creator>VBD</dc:creator>
    <dc:date>2024-09-26T08:01:16Z</dc:date>
    <item>
      <title>Create End dates based on next start date for a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483674#M101071</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a requirement where I need to create end dates based on start dates.&lt;/P&gt;
&lt;P&gt;I have explained the scenario below :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iwin_0-1727335641056.png" style="width: 525px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172168i6CACBCC132DC57A2/image-dimensions/525x122?v=v2" width="525" height="122" role="button" title="Iwin_0-1727335641056.png" alt="Iwin_0-1727335641056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here for Patient A ,the end date of Free Use is null but as Commercial Order Type started on&amp;nbsp; 07 /07/2024 ,the End Date for Free Use should display date 1 day before the start date of Commercial Order Type i.e - 06/07/2024&lt;/P&gt;
&lt;P&gt;For Patient B, there are 3 Order Types ,and there can be any number of Order Types for a Patient.&lt;/P&gt;
&lt;P&gt;How to create the end dates in this scenario?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 07:31:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483674#M101071</guid>
      <dc:creator>Iwin</dc:creator>
      <dc:date>2024-09-26T07:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create End dates based on next start date for a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483685#M101073</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try something like :&amp;nbsp;Test :&lt;BR /&gt;Load Patient,&lt;BR /&gt;[Order Type],&lt;BR /&gt;[Start Date],&lt;BR /&gt;if(Previous(Patient) = Patient and len([End date]) =0 , date(peek([Start Date],-1)-1),[End date]) as [End date]&lt;BR /&gt;Resident TMP&lt;BR /&gt;Order by Patient asc, [Start Date] desc;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ValentinBld_1-1727337670544.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172170iD82FABEA6693EC2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ValentinBld_1-1727337670544.png" alt="ValentinBld_1-1727337670544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483685#M101073</guid>
      <dc:creator>VBD</dc:creator>
      <dc:date>2024-09-26T08:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create End dates based on next start date for a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483691#M101074</link>
      <description>&lt;P&gt;Thank you for the quick reply and fix.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 08:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-End-dates-based-on-next-start-date-for-a-dimension/m-p/2483691#M101074</guid>
      <dc:creator>Iwin</dc:creator>
      <dc:date>2024-09-26T08:21:22Z</dc:date>
    </item>
  </channel>
</rss>

