<?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: Display second record (max-1) based on selected end date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106095#M16662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, thanks. Your feedback is accurate based on the question. However, realized I didnot communicate the requirement in its entirety.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Scenario (corrected):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Based on selected end date (Always one selected), display 'Limit' value for 2nd Max Analysis Date (Max [Analysis Date] -1) &lt;SPAN style="text-decoration: underline;"&gt;for every record&lt;/SPAN&gt; in rolling 12 month period. Re-attaching qvw and sample date.&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;&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;Expected Output (Column 'Previous Value' needs to be calculated):&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;&lt;IMG __jive_id="217586" alt="Expected Output.JPG" class="jive-image image-1" src="/legacyfs/online/217586_Expected Output.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 03:25:44 GMT</pubDate>
    <dc:creator>siddharth_kulka</dc:creator>
    <dc:date>2018-11-06T03:25:44Z</dc:date>
    <item>
      <title>Display second record (max-1) based on selected end date</title>
      <link>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106093#M16660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sample app and dummy data attached. App Data model is very much on similar lines (UI_EndDate is an island and not Joined/Linked to the fact table).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario:&lt;/STRONG&gt; Based on selected end date (Always one selected), display 'Limit' value for 2nd Max Analysis Date (Max [Analysis Date] -1) for rolling 12 month period in fact data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;3 examples to clarify:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. If selected UI_EndDate is 11/4/2018, straight table should display below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217492_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;2. If selected UI_EndDate is 10/10/2018, straight table should display below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/217493_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;3. If selected UI_EndDate is 10/1/2018, straight table should display below:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help, much appreciated.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Cheers!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 03:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106093#M16660</guid>
      <dc:creator>siddharth_kulka</dc:creator>
      <dc:date>2018-11-05T03:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display second record (max-1) based on selected end date</title>
      <link>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106094#M16661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Analysis Date]={"=Rank(If([Analysis Date]&amp;lt;=UI_EndDate,[Analysis Date]))=2"}&amp;gt;} Limit)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 04:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106094#M16661</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-11-05T04:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Display second record (max-1) based on selected end date</title>
      <link>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106095#M16662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, thanks. Your feedback is accurate based on the question. However, realized I didnot communicate the requirement in its entirety.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Scenario (corrected):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Based on selected end date (Always one selected), display 'Limit' value for 2nd Max Analysis Date (Max [Analysis Date] -1) &lt;SPAN style="text-decoration: underline;"&gt;for every record&lt;/SPAN&gt; in rolling 12 month period. Re-attaching qvw and sample date.&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;&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;Expected Output (Column 'Previous Value' needs to be calculated):&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;&lt;IMG __jive_id="217586" alt="Expected Output.JPG" class="jive-image image-1" src="/legacyfs/online/217586_Expected Output.JPG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 03:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-second-record-max-1-based-on-selected-end-date/m-p/106095#M16662</guid>
      <dc:creator>siddharth_kulka</dc:creator>
      <dc:date>2018-11-06T03:25:44Z</dc:date>
    </item>
  </channel>
</rss>

