<?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 Comparison of difference between two filters. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparison-of-difference-between-two-filters/m-p/2450945#M97976</link>
    <description>&lt;P&gt;Good afternoon, I'm trying to make a comparison between the current period - past period / past period * 100. The goal is to obtain the variation in sales in %. For example, in my filter, I'm comparing the same period in different years: February 2023 and February 2024.&lt;/P&gt;
&lt;P&gt;THE EXPRESSION I'M USING IS:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;( ( Sum({&amp;lt;Ano_DC={"$(VAnoAtual_DC)"}, Mes_DC={"$(VMesAtual_DC)"}&amp;gt;} TOTAL_ITEM_DC) - Sum({&amp;lt;Ano_DC={" $(VAnoAnterior)"}, Mes_DC={"$(VMesAtual_DC)"}&amp;gt;} TOTAL_ITEM_DC) ) ) / Soma({&amp;lt;Ano_DC= {"$(VAnoAtual_DC)"}, Mes_DC={"$(VMesAtual_DC)"}&amp;gt; } TOTAL_ITEM_DC)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;VARs&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;VAnoAtual_DC:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;=MAX(Ano_DC)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;VAnoAnterior:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;=MAX(Ano_DC) -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;VMesAtual_DC:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;=MAX(Mes_DC)&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2024 20:33:09 GMT</pubDate>
    <dc:creator>kaikpizzi</dc:creator>
    <dc:date>2024-05-09T20:33:09Z</dc:date>
    <item>
      <title>Comparison of difference between two filters.</title>
      <link>https://community.qlik.com/t5/App-Development/Comparison-of-difference-between-two-filters/m-p/2450945#M97976</link>
      <description>&lt;P&gt;Good afternoon, I'm trying to make a comparison between the current period - past period / past period * 100. The goal is to obtain the variation in sales in %. For example, in my filter, I'm comparing the same period in different years: February 2023 and February 2024.&lt;/P&gt;
&lt;P&gt;THE EXPRESSION I'M USING IS:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;( ( Sum({&amp;lt;Ano_DC={"$(VAnoAtual_DC)"}, Mes_DC={"$(VMesAtual_DC)"}&amp;gt;} TOTAL_ITEM_DC) - Sum({&amp;lt;Ano_DC={" $(VAnoAnterior)"}, Mes_DC={"$(VMesAtual_DC)"}&amp;gt;} TOTAL_ITEM_DC) ) ) / Soma({&amp;lt;Ano_DC= {"$(VAnoAtual_DC)"}, Mes_DC={"$(VMesAtual_DC)"}&amp;gt; } TOTAL_ITEM_DC)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT&gt;VARs&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;VAnoAtual_DC:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;=MAX(Ano_DC)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;VAnoAnterior:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;=MAX(Ano_DC) -1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;VMesAtual_DC:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT&gt;=MAX(Mes_DC)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 20:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparison-of-difference-between-two-filters/m-p/2450945#M97976</guid>
      <dc:creator>kaikpizzi</dc:creator>
      <dc:date>2024-05-09T20:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison of difference between two filters.</title>
      <link>https://community.qlik.com/t5/App-Development/Comparison-of-difference-between-two-filters/m-p/2451005#M97986</link>
      <description>&lt;P&gt;instead of using set analysis, i would suggest using inter record function like above/before like below&lt;/P&gt;
&lt;P&gt;1- before( sum(Mes_DC={"$(VMesAtual_DC)"}&amp;gt; TOTAL_ITEM_DC),1)/sum(Mes_DC={"$(VMesAtual_DC)"}&amp;gt; TOTAL_ITEM_DC)&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 03:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparison-of-difference-between-two-filters/m-p/2451005#M97986</guid>
      <dc:creator>WangKun</dc:creator>
      <dc:date>2024-05-10T03:20:18Z</dc:date>
    </item>
  </channel>
</rss>

