<?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 problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622400#M1265637</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;Your second sum statement is unclear:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;Année&lt;/SPAN&gt; a field name or variable?&lt;/LI&gt;&lt;LI&gt;What is the purpose of the {&amp;lt; .... {1}&amp;gt;}? I think this is causing QV to ignore the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Année field selection, so the two sum statements evaluate to the same value.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Do you mean &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Année]={"$(= &amp;amp;Année - 1)"}?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 08:33:21 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-03-26T08:33:21Z</dc:date>
    <item>
      <title>set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622399#M1265632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qlikview experts,&lt;/P&gt;&lt;P&gt;I'm using a pivot table with two dimensions custumers and years for statistics as shown in the attached picture&amp;nbsp; ,I got to have the differnce between the year and the previous year in money and quantity , and im using this expression:for diff an-1 ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({&amp;lt;[Ecriture_Article. Type]={1}&amp;gt;}[Ecriture_Article. Sales Amount (Actual)]+[Ecriture_Article. Sales Amount (Expected)])&lt;/P&gt;&lt;P&gt;-sum({&amp;lt;[Ecriture_Article. Type]={1},[Année]={"$(= &amp;amp;Année) "}-{1}&amp;gt;}[Ecriture_Article. Sales Amount (Actual)]+[Ecriture_Article. Sales Amount (Expected)]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it gives me 0 as result&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;thx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622399#M1265632</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622400#M1265637</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;Your second sum statement is unclear:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;amp;Année&lt;/SPAN&gt; a field name or variable?&lt;/LI&gt;&lt;LI&gt;What is the purpose of the {&amp;lt; .... {1}&amp;gt;}? I think this is causing QV to ignore the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Année field selection, so the two sum statements evaluate to the same value.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Do you mean &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Année]={"$(= &amp;amp;Année - 1)"}?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622400#M1265637</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-26T08:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622401#M1265641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jonathan ,&lt;/P&gt;&lt;P&gt;Année is a variable that takes the year of the field date and for the third remark, yes that's what i ment&amp;nbsp; i tried it and it gaved me 0 .&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 08:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622401#M1265641</guid>
      <dc:creator />
      <dc:date>2014-03-26T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622402#M1265642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try each Sum() expression on their own. Are they both returning zero, or are they returning the same value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:14:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622402#M1265642</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-26T09:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622403#M1265644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, and that syntax (...-{1}) was incorrect. My suggestion is valid syntax as far as I can see.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622403#M1265644</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-26T09:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622404#M1265648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Jonathan,&lt;/P&gt;&lt;P&gt;the first sum is correct but not the second &lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622404#M1265648</guid>
      <dc:creator />
      <dc:date>2014-03-26T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622405#M1265651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can explore the effect of the second expression by seeing how the first expression.reacts when you make selections in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Année (or other fields). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A set expression is basically a selection that takes place inside an expression, so you can see the effect of various selections and what you need to do to get the correct selections. Then you can write the set expression to mimic the manual selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more help, I suggest that you upload a sample qvw file that illustrates the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 14:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/622405#M1265651</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-03-26T14:46:54Z</dc:date>
    </item>
  </channel>
</rss>

