<?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 User date selection + YTD calc + fixed max date how? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-date-selection-YTD-calc-fixed-max-date-how/m-p/1447377#M800028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a situation where I need to generate pivot table see pic below. When user select any period I need to calc YTD in the Set Analysis I have to have max of SEPN date. I dont know how to write this statement. when I say SEPN ={$(=max(Rpt Yr))} I get 2017 only because Rpt Yr 2016 has no 2017 in SEPN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Requirement:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186138" alt="yr2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186138_yr2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Sample Data: xlsx attached&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186139" alt="yr1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/186139_yr1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>rmuhammad</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>User date selection + YTD calc + fixed max date how?</title>
      <link>https://community.qlik.com/t5/QlikView/User-date-selection-YTD-calc-fixed-max-date-how/m-p/1447377#M800028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have a situation where I need to generate pivot table see pic below. When user select any period I need to calc YTD in the Set Analysis I have to have max of SEPN date. I dont know how to write this statement. when I say SEPN ={$(=max(Rpt Yr))} I get 2017 only because Rpt Yr 2016 has no 2017 in SEPN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Requirement:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186138" alt="yr2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186138_yr2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Sample Data: xlsx attached&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="186139" alt="yr1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/186139_yr1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-date-selection-YTD-calc-fixed-max-date-how/m-p/1447377#M800028</guid>
      <dc:creator>rmuhammad</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: User date selection + YTD calc + fixed max date how?</title>
      <link>https://community.qlik.com/t5/QlikView/User-date-selection-YTD-calc-fixed-max-date-how/m-p/1447378#M800029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rashid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the following QVW for reference.&lt;/P&gt;&lt;P&gt;I just transformed the date into numeral because it's easier to handle in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if the user gets any date of the month for a specific year, lets say February 2nd, it will get the sum of count field for the year of 2017 and where the month is YTD based on selection.&lt;/P&gt;&lt;P&gt;In this case, it will sum up all the values for January and February 2017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left most table is the generated calendar, mid table is the excel data and right most table is the expression used to calculate with set analysis,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186135_Sample.png" style="height: 349px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 18:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-date-selection-YTD-calc-fixed-max-date-how/m-p/1447378#M800029</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-12-07T18:27:52Z</dc:date>
    </item>
  </channel>
</rss>

