<?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: Straight table data filtering in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410512#M152768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I need is to display it for the past 3 yrs (2011, 2010, 2009 in this case) for 31/12/YYYY (31/12/2011). In this case I would have 31/12/2011, 31/12/2010 and 31/12/2009 left only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense and it will be easier to understand what I would like to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 11:16:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-13T11:16:50Z</dc:date>
    <item>
      <title>Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410506#M152762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am making a P&amp;amp;L table but I only need to show data for the past 3 yrs which means 3 rows of data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the database contains data for more years and for different dates, i.e. there are entries for each quarter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the data for 31/12/YYYY for the last three years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this in straight table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 16:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410506#M152762</guid>
      <dc:creator />
      <dc:date>2012-12-05T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410507#M152763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for example by set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Date={'31/12/2010'}&amp;gt;}value)&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Date={'31/12/2011'}&amp;gt;}value)&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;Date={'31/12/2012'}&amp;gt;}value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to be more specific and write more info about the result you want to achieve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 17:04:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410507#M152763</guid>
      <dc:creator />
      <dc:date>2012-12-05T17:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410508#M152764</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; Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={'$(=AddYears(YearEnd(max(Date)),-3))','$(=AddYears(YearEnd(max(Date)),-2))','$(=AddYears(YearEnd(max(Date)),-1))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all last three years data&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=AddYears(YearEnd(max(Date)),-3))&amp;lt;=$(=AddYears(YearEnd(max(Date)),-1))"}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 17:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410508#M152764</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-05T17:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410509#M152765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where would I put this? Why would I need to use Sum? Sorry for excessive questions but I'm a newbie, any help is appreciated, thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have fields like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total_revenue, total_costs, tax, date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date field is the one that i want to filter by&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 14:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410509#M152765</guid>
      <dc:creator />
      <dc:date>2012-12-10T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410510#M152766</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;if you want to sum all the total revenue for three year end date, you can use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={'$(=AddYears(YearEnd(max(Date)),-3))','$(=AddYears(YearEnd(max(Date)),-2))','$(=AddYears(YearEnd(max(Date)),-1))'}&amp;gt;}total_revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for all last three years data&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={"&amp;gt;=$(=AddYears(YearEnd(max(Date)),-3))&amp;lt;=$(=AddYears(YearEnd(max(Date)),-1))"}&amp;gt;}total_revenue)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 17:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410510#M152766</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-10T17:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410511#M152767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont need to do any calculations, I have all the values in the database. All I need to do is only show the values where date is 31/12/YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last 3 years would be a bonus. I tried using your statement but it said error in calculation. Of course I replaced the field names with database ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using it in a different table and no data is being diplayed, just the table title. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 10:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410511#M152767</guid>
      <dc:creator />
      <dc:date>2012-12-11T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410512#M152768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All I need is to display it for the past 3 yrs (2011, 2010, 2009 in this case) for 31/12/YYYY (31/12/2011). In this case I would have 31/12/2011, 31/12/2010 and 31/12/2009 left only. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense and it will be easier to understand what I would like to do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 11:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410512#M152768</guid>
      <dc:creator />
      <dc:date>2012-12-13T11:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410513#M152769</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; Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date = {"=Date(floor(YearEnd(Date))) = Date"},Year={'&amp;gt;=$(=Max(Year)-3)&amp;lt;=$(=Max(Year)-1)'}&amp;gt;}total_revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a doubt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={'$(=AddYears(YearEnd(max(Date)),-3))','$(=AddYears(YearEnd(max(Date)),-2))','$(=AddYears(YearEnd(max(Date)),-1))'}&amp;gt;}total_revenue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this, you can't get the result? can you post a sample?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410513#M152769</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-13T21:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410514#M152770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not need to sum anything so thats what i would have in my case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;={&amp;lt;statement_Date={'$(=AddYears(YearEnd(max(statement_Date)),-3))','$(=AddYears(YearEnd(max(statement_Date)),-2))','$(=AddYears(YearEnd(max(statement_Date)),-1))'}&amp;gt;}PROFIT_LOSS_BEFORE_TAX-TAX_RECLAIMED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROFIT AFTER TAX (PROFIT_LOSS_BEFORE_TAX-TAX_RECLAIMED) is the only expression in the table, others are dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date field is called statement_date in the database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would your set analysis statement have to be adapted to match this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 10:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410514#M152770</guid>
      <dc:creator />
      <dc:date>2012-12-14T10:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410515#M152771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this statement works which means one part of my task is completed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Day(STATEMENT_DATE) = 31 AND Month(STATEMENT_DATE) = 12, date(STATEMENT_DATE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This only leaves the data values for dates ending in 31/12/YYYY. Now I just need to figure out how to limit it to the last 3 years. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Limited the values by going on Presentation tab and clicking on Max box and choosing 3. Table displays the data that I wanted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 12:01:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410515#M152771</guid>
      <dc:creator />
      <dc:date>2012-12-14T12:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410516#M152772</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 that, you can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Match(STATEMENT_DATE,YearEnd(STATEMENT_DATE)),STATEMENT_DATE) as dimension &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(STATEMENT_DATE = YearEnd(STATEMENT_DATE),STATEMENT_DATE) as dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 18:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410516#M152772</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-12-14T18:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Straight table data filtering</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410517#M152773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure whether it helps to your application but the best practice is not to use if() in dimensions or expressions due to big impact to performance. The best practice is to use set analysis and in your case it's possible to create flag in calendar for each december 31th, also you can have such flags for periods you need to analyse (previous year, last 3 year, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Believe me since I managed with performance degradation only after rewriting all if()'s with set analysis expressions in an application with 300 millions transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 23:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-table-data-filtering/m-p/410517#M152773</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2013-02-05T23:25:19Z</dc:date>
    </item>
  </channel>
</rss>

