<?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: Set analysis calculate difference between years of Sales in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940252#M77501</link>
    <description>&lt;P&gt;Hi, have you tried something like this?:&lt;/P&gt;
&lt;P&gt;sum({$&amp;lt;Year='2013'&amp;gt;} Sales)&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jun 2022 09:51:51 GMT</pubDate>
    <dc:creator>justISO</dc:creator>
    <dc:date>2022-06-07T09:51:51Z</dc:date>
    <item>
      <title>Set analysis calculate difference between years of Sales</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940239#M77498</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;i have a table with: ProductID, sum(Sales). The field Year works of (2011,2012,2013 e 2014) and I use this field as filter.&lt;/P&gt;
&lt;P&gt;For example I would like to add 3 columns:&lt;/P&gt;
&lt;P&gt;sum(Sales) of 2013&lt;/P&gt;
&lt;P&gt;sum(Sales) of 2012&lt;/P&gt;
&lt;P&gt;sum(Sales of (2013-2012)&lt;/P&gt;
&lt;P&gt;I'm using the set analysis but I have some problems. S&lt;SPAN&gt;omeone can help me? Thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940239#M77498</guid>
      <dc:creator>Arianna-lab</dc:creator>
      <dc:date>2022-06-07T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis calculate difference between years of Sales</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940252#M77501</link>
      <description>&lt;P&gt;Hi, have you tried something like this?:&lt;/P&gt;
&lt;P&gt;sum({$&amp;lt;Year='2013'&amp;gt;} Sales)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940252#M77501</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-06-07T09:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis calculate difference between years of Sales</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940255#M77502</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/181806"&gt;@Arianna-lab&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;May be try like this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Year={$(=Max(Year))}&amp;gt;}Sales) - Sum({&amp;lt;Year={$(=Year(Max(Year)-1))}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940255#M77502</guid>
      <dc:creator>saranyadurai</dc:creator>
      <dc:date>2022-06-07T09:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis calculate difference between years of Sales</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940257#M77504</link>
      <description>&lt;P&gt;Hi, I try but that specific expression only that year=2013 and applying the filter of other year ( ex. 2012) has no impact.&amp;nbsp; I need a formula that doesn't specify the year but fits with (2012,2013,2014).&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940257#M77504</guid>
      <dc:creator>Arianna-lab</dc:creator>
      <dc:date>2022-06-07T09:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis calculate difference between years of Sales</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940263#M77505</link>
      <description>&lt;P&gt;You can find some examples&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Year 2021&lt;/P&gt;
&lt;TABLE class="TableStyle-tableGrid" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="BodyC--"&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;sum({$&amp;lt;Year={2012}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyA--"&gt;
&lt;P&gt;Returns the sales for the current selection, but with new selections in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="path" data-mc-conditions="Targets.NotToTranslate"&gt;Year&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Range of years&lt;/P&gt;
&lt;TABLE class="TableStyle-tableGrid" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="BodyC--"&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;sum( {$&amp;lt;Year = {“&amp;gt;1978&amp;lt;2004”}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyA--"&gt;Returns the sales for the current selections, but with a numeric search used to scope the range of years to sum the sales across.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selected Year -1&lt;/P&gt;
&lt;TABLE class="TableStyle-tableGrid" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="BodyC--"&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;sum( {$&amp;lt;Year = {$(#=Only(Year)-1)}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="BodyA--"&gt;
&lt;P&gt;Returns the sales for the previous year in relation to current selection. Here, a dollar-sign expansion is used to calculate previous year.&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max Year -1&lt;/P&gt;
&lt;TABLE class="TableStyle-tableGrid" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="BodyC--"&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;sum( {$&amp;lt;Year = {$(#=Max(Year)-1)}&amp;gt;} Sales )&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More details&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810?attachment-id=89393" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810?attachment-id=89393&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 10:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-calculate-difference-between-years-of-Sales/m-p/1940263#M77505</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2022-06-07T10:05:24Z</dc:date>
    </item>
  </channel>
</rss>

