<?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: YTD vs Prvious YTD -1 avoiding Date selected list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-vs-Prvious-YTD-1-avoiding-Date-selected-list/m-p/1201713#M386875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The max date in the set analysis is the max Date with the current selections. If you want the max date regardless of selections use&lt;/P&gt;&lt;P&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;max({1} 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;or when you only want to disregard the selections in YYYY and MMMYYYY use&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;max({&amp;lt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YYYY&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MMMYYYY&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;/SPAN&gt;&amp;gt;} Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2016 16:30:08 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2016-10-31T16:30:08Z</dc:date>
    <item>
      <title>YTD vs Prvious YTD -1 avoiding Date selected list</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-vs-Prvious-YTD-1-avoiding-Date-selected-list/m-p/1201712#M386874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;I managed to set up the set analysis &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;expression&amp;nbsp; &lt;/SPAN&gt;that generates the sum of the &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="color: #0000ff;"&gt;YTD&lt;/SPAN&gt; and the YTD-1&lt;/STRONG&gt; from &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;MAX&amp;nbsp; &lt;/SPAN&gt;the month loaded data and I founf my solution of the YTD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;For the &lt;STRONG&gt;Previous YTD&lt;/STRONG&gt; ( YTD -1 ) , I found the expression &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;But&lt;/SPAN&gt; the problem is that by selecting many months(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;MMMYYYY&lt;/SPAN&gt;) in the list, it takes &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;All &lt;/SPAN&gt;months slected&amp;nbsp; !!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set analysis expression :&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=&lt;STRONG&gt;$&lt;/STRONG&gt;(=Yearstart(addyears(max(Date),-1)))&amp;lt;=&lt;STRONG&gt;$&lt;/STRONG&gt;(=addyears(max(Date),-1))"},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YYYY&lt;/SPAN&gt;=,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;MMMYYYY&lt;/SPAN&gt;=,&lt;/P&gt;&lt;P&gt;[PPW]={'PUDY','PTD452'}&amp;gt;}(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Sales&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 16:12:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-vs-Prvious-YTD-1-avoiding-Date-selected-list/m-p/1201712#M386874</guid>
      <dc:creator />
      <dc:date>2016-10-31T16:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: YTD vs Prvious YTD -1 avoiding Date selected list</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-vs-Prvious-YTD-1-avoiding-Date-selected-list/m-p/1201713#M386875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The max date in the set analysis is the max Date with the current selections. If you want the max date regardless of selections use&lt;/P&gt;&lt;P&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;max({1} 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;or when you only want to disregard the selections in YYYY and MMMYYYY use&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;max({&amp;lt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;YYYY&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MMMYYYY&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;/SPAN&gt;&amp;gt;} Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 16:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-vs-Prvious-YTD-1-avoiding-Date-selected-list/m-p/1201713#M386875</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2016-10-31T16:30:08Z</dc:date>
    </item>
  </channel>
</rss>

