<?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: Calculate on Expression based on applied Filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-on-Expression-based-on-applied-Filter/m-p/1678630#M455987</link>
    <description>&lt;P&gt;Check the following Design Blog post, your syntax is not quite matching up to what is listed there, so hopefully tweaking things will get it working:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The only other thing of which I can think is to be sure your Year field is in fact numeric, that could be the other issue here in order to be able to subtract one, you may need an alias field where you convert it using Num()...&amp;nbsp; Hopefully one of these two works.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 16:15:36 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2020-02-24T16:15:36Z</dc:date>
    <item>
      <title>Calculate on Expression based on applied Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-on-Expression-based-on-applied-Filter/m-p/1670267#M455986</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a TextBox with a calculation that Represents the sum of events that happen on previous year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For not Filtering with a text and need to adjust this every year, I was thinking if there is a way to make this dynamic according to the filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: if I select Year=2019, my expression on the text box would be related to 2018. If select 2020, would be 2019.&lt;/P&gt;&lt;P&gt;The expression with Fixed values works:&lt;/P&gt;&lt;P&gt;=sum(TOTAL{$&amp;lt;[Year]=&lt;STRONG&gt;{'2018'}&lt;/STRONG&gt;,Month={'01 (Jan)','02 (Feb)','03 (Mar)','04 (Apr)','05 (May)','06 (Jun)','07 (Jul)','08 (Aug)','09 (Sep)','10 (Oct)','11 (Nov)','12 (Dec)'}&amp;gt;}[Event])&lt;/P&gt;&lt;P&gt;Currently I am trying this expression for making it dynamic, but without success.&lt;/P&gt;&lt;P&gt;=sum(TOTAL{$&amp;lt;[Year]=&lt;STRONG&gt;{"=[Year]-1"},&lt;/STRONG&gt;Month={'01 (Jan)','02 (Feb)','03 (Mar)','04 (Apr)','05 (May)','06 (Jun)','07 (Jul)','08 (Aug)','09 (Sep)','10 (Oct)','11 (Nov)','12 (Dec)'}&amp;gt;}[Event)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 02:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-on-Expression-based-on-applied-Filter/m-p/1670267#M455986</guid>
      <dc:creator>icaro_povoa</dc:creator>
      <dc:date>2020-01-29T02:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate on Expression based on applied Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-on-Expression-based-on-applied-Filter/m-p/1678630#M455987</link>
      <description>&lt;P&gt;Check the following Design Blog post, your syntax is not quite matching up to what is listed there, so hopefully tweaking things will get it working:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Quotes-in-Set-Analysis/ba-p/1471824&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The only other thing of which I can think is to be sure your Year field is in fact numeric, that could be the other issue here in order to be able to subtract one, you may need an alias field where you convert it using Num()...&amp;nbsp; Hopefully one of these two works.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 16:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-on-Expression-based-on-applied-Filter/m-p/1678630#M455987</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-02-24T16:15:36Z</dc:date>
    </item>
  </channel>
</rss>

