<?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 Filter question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327548#M120602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The values change when I click on a particular month. Since this is a YTD calculation, I don't want it to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question - HOw do you guys deal with this situation. Let's say you have a several charts in the report and one table chart that shows sales ytd current yera and sales ytd previous year in two separate columns. Should we have the values not change when user clicks on a year/month or should we have the values in this chart static?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 14:12:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-07T14:12:21Z</dc:date>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327546#M120600</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;&lt;/P&gt;&lt;P&gt;I created an app and is working fine. In the app, I want to add a table chart that shows &lt;SPAN style="text-decoration: underline;"&gt;sales this year&lt;/SPAN&gt; in one column and &lt;SPAN style="text-decoration: underline;"&gt;sales prior year&lt;/SPAN&gt; in second column.&amp;nbsp; But here is the problem- I have a list box with all the years and if I select a particular year as filter, it gets applied to this chart as well screwing it up. Any idea how to deal with htis situation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 00:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327546#M120600</guid>
      <dc:creator />
      <dc:date>2011-09-07T00:27:37Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327547#M120601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; in the expression in the chart use set analysis&lt;/P&gt;&lt;P&gt;something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YEAR={"&amp;gt;=$(=max(YEAR)-1)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope its helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 05:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327547#M120601</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-09-07T05:35:38Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327548#M120602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The values change when I click on a particular month. Since this is a YTD calculation, I don't want it to change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question - HOw do you guys deal with this situation. Let's say you have a several charts in the report and one table chart that shows sales ytd current yera and sales ytd previous year in two separate columns. Should we have the values not change when user clicks on a year/month or should we have the values in this chart static?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 14:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327548#M120602</guid>
      <dc:creator />
      <dc:date>2011-09-07T14:12:21Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327549#M120603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; one possibility is to create a new table calendar with this columns&lt;/P&gt;&lt;P&gt;Actual year , month, Previous Year, Mark actual, Date (this is the field to be linked with the fact table)&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-01&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010-01&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011-02&lt;/P&gt;&lt;P&gt;2011&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010-02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user have to select the field Actual Year and Actual Month&lt;/P&gt;&lt;P&gt;In&amp;nbsp; the chart it is very important the usage of the MARK ACTUAL by using IFs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you need diferent combination of dates you can create more field and more marks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you could sove your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this table is very small and the performance of the application is not going to be worst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 14:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327549#M120603</guid>
      <dc:creator />
      <dc:date>2011-09-07T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327550#M120604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Is there a way to modify the folrmula &lt;STRONG&gt;SUM({&amp;lt;YEAR={"&amp;gt;=$(=max(YEAR)-1)"}&amp;gt;} Sales)&lt;/STRONG&gt; so that it doesn't affect when users click on a month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327550#M120604</guid>
      <dc:creator />
      <dc:date>2011-09-07T15:14:52Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327551#M120605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;use this formula &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({1&amp;lt;YEAR={"&amp;gt;=$(=max(YEAR)-1)"}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327551#M120605</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-07T15:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327552#M120606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand well what happens in your case when user clicks on a month, but usually this approach (as below) helps to ignore selection in a certain field (here - Month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;&lt;/STRONG&gt;&lt;STRONG&gt; Month=, &lt;/STRONG&gt;&lt;STRONG&gt;YEAR={"&amp;gt;=$(=max(YEAR)-1)"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil Chauhan correctly suggests to use {1} for calculation of a previous period, not included into current selection. So final formula should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({1 &amp;lt; Month=, YEAR={"&amp;gt;=$(=max(YEAR)-1)"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327552#M120606</guid>
      <dc:creator />
      <dc:date>2011-09-07T15:26:31Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327553#M120607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; you'll need to also put your Month field in that set analysis or it will still be effect it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({1&amp;lt;YEAR={"&amp;gt;=$(=max(YEAR)-1)"},[your month field]= &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so now it will limit to your year and will also ignore your month selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327553#M120607</guid>
      <dc:creator />
      <dc:date>2011-09-07T15:32:07Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327554#M120608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM({1&amp;lt;YEAR={"&amp;gt;=$(=max(YEAR)-1)"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no otheer extra code is required &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327554#M120608</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-07T15:36:59Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327555#M120609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh that's interesting so the '1' there is basically a catch all for disregarding everything else apart from the Year field? good to know cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 15:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327555#M120609</guid>
      <dc:creator />
      <dc:date>2011-09-07T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327556#M120610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For YTD and LYTD we Below Expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current Year : Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;Previous Year : Sum({&amp;lt;Year={$(=Max(Year)-1)},Month={"&amp;gt;$(=Min({&amp;lt;Year={$(=Max(Year))}&amp;gt;} Month-1))&amp;lt;$(=Max({&amp;lt;Year={$(=Max(Year))}&amp;gt;} Month+1))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is at Day level then we add another condition in the Previous Year Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 17:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327556#M120610</guid>
      <dc:creator />
      <dc:date>2011-09-07T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Filter question</title>
      <link>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327557#M120611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the initial request, you said that you want to create a column for "prior year sales". Did you actually need a full prior year sum, or "Prior YTD" sum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For YTD calculations, to avoid complex Set Analysis expression, I usually create flags in the master calendar table. For each date, I set a flag to 1 if it belongs to YTD (Prior YTD, QTD, etc...). then the Set Analysis condition is very simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YTD_Flag={1}&amp;gt;}&amp;nbsp; Sales) - for current YTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;PYTD_Flag={1}&amp;gt;}&amp;nbsp; Sales) - for Prior YTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 17:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filter-question/m-p/327557#M120611</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-09-07T17:45:13Z</dc:date>
    </item>
  </channel>
</rss>

