<?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: Only show values until selected date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145452#M896584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, this did work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, don't understand how I can enter the needed years in my expression. Before your suggestion I mentioned: Year={2014,2015,2016}, and this worked fine. But now I am using your expression for my Year-part, I don't know how to slide this part in and it now shows me all the years possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do I solve this in my dimenions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, nearly there!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 10:31:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-27T10:31:33Z</dc:date>
    <item>
      <title>Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145446#M896578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The chart I am trying to create is part of a much bigger report with loads of charts. For the other tables to be correct, &lt;STRONG&gt;I have to select the desired month and year (usually the current month and year)&lt;/STRONG&gt;. The table I am having trouble with shows multiple years (2014, 2015, 2016 (out of 2012, 2013, 2014, 2015, 2016)) and all months. I am using the following expression to achieve this (so far, so good):&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;=(sum({$&amp;lt;Year={2014,2015,2016}, Month= &amp;gt;}Sales))&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue: I want to show all information for the previous years, but only the information up until the month I selected. E.g. If I select May and the Year 2016, I want everthing to be visible up until May 2016. Thus the red, crossed numbers should be gone ('-' or blank).&lt;/P&gt;&lt;P&gt;I made an example in Excel. I guess I need some kind of "Make date with &amp;lt;= selected month and selected year", but I just don't know how...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132422_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance guys!&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/Only-show-values-until-selected-date/m-p/1145446#M896578</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145447#M896579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you will need a Date field (or at least a year-month field) and this can be used:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DateField={'&amp;lt;=$(Max(DateField))'}, Year, Month&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see it working assigning values to Year and Month separatelly, in example if the selected year-month is 2016-July, the set analisys will ask for months &amp;lt;=7 in every year!, because of that you need a field that merges year and month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be done with only year and month fields but you'll need an addition of set analisys, using a date or a year-month field is easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145447#M896579</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-26T07:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145448#M896580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Idd, that's why I thought I had to use some sort of "make date"-combination with my selected Year and Month. And then tell QV to show me everything smaller or equal to that created date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: I do not have a MonthYear-field for that type of Date-field I am using.&lt;/P&gt;&lt;P&gt;How should I write the set analysis using only Month and Year (separately)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:40:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145448#M896580</guid>
      <dc:creator />
      <dc:date>2016-07-26T07:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145449#M896581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done in the same table where you load Year and month, you can create a date like:&lt;/P&gt;&lt;P&gt;LOAD Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;MakeDate(Year, Month) as Date&lt;/STRONG&gt;, // Default Day is '1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Other fields&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145449#M896581</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-26T07:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145450#M896582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible in Set Analysis/Expressions, without touching the script? (I am not allowed to change the script)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145450#M896582</guid>
      <dc:creator />
      <dc:date>2016-07-26T07:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145451#M896583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try if this works?:&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;Sum({&amp;lt;Year={'$(=Max(Year))'}, Month={'&amp;lt;=$(=Max(Month))'}&amp;gt; + &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;Year={'&amp;lt;$(=Max(Year))'}, Month=&amp;gt;&lt;/SPAN&gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145451#M896583</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-26T07:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145452#M896584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, this did work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, don't understand how I can enter the needed years in my expression. Before your suggestion I mentioned: Year={2014,2015,2016}, and this worked fine. But now I am using your expression for my Year-part, I don't know how to slide this part in and it now shows me all the years possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do I solve this in my dimenions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, nearly there!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 10:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145452#M896584</guid>
      <dc:creator />
      <dc:date>2016-07-27T10:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145453#M896585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will work dynamically based on selections, if the year selected is 2015, and the month is july it will show data until July-2015 (it still will show data of previous years as it's not filtered by a minium year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want fixed years:&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;Sum({&amp;lt;Year={2016}, Month={'&amp;lt;=$(=Max(Month))'}&amp;gt; + &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;lt;Year={2014, 2015}, Month=&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145453#M896585</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-27T11:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Only show values until selected date</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145454#M896586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're a legend &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works fine!! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-values-until-selected-date/m-p/1145454#M896586</guid>
      <dc:creator />
      <dc:date>2016-07-27T11:16:29Z</dc:date>
    </item>
  </channel>
</rss>

