<?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: Comparative analysis trouble in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparative-analysis-trouble/m-p/936464#M323245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to tell what's wrong with the information given. Context matters, so more information about the expression context, the data model and data would be helpful. If possible, upload a small sample QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To start debugging your expression, try to put each aggregation function (Sum() ) in an expression on its own and check the returned values (also when changing the selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are not expecting the set analysis to somehow consider your current dimension lines, right? Set analysis is evaluated only once per chart, not per dimension line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 21:52:02 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-12-15T21:52:02Z</dc:date>
    <item>
      <title>Comparative analysis trouble</title>
      <link>https://community.qlik.com/t5/QlikView/Comparative-analysis-trouble/m-p/936463#M323244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have an issue where I am using set analysis for month-to-month comparative analysis; however, I can't seem to get it to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my equation below. &lt;/P&gt;&lt;P&gt;=if(&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;Period_Num = {"$(=max(Period_Num))"}, YearField = ,month_name =, DATE = &amp;gt;} Value1)/sum({$&amp;lt;Value2 = {'*'},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Period_Num&lt;/SPAN&gt;= {"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;Period_Num&lt;/SPAN&gt;))"}, &lt;SPAN style="font-size: 13.3333px;"&gt;YearField &lt;/SPAN&gt;= ,month_name =, DATE = &amp;gt;}Value3)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Period_Num&lt;/SPAN&gt;= {"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;Period_Num&lt;/SPAN&gt;)-1)"}, &lt;SPAN style="font-size: 13.3333px;"&gt;YearField &lt;/SPAN&gt; = ,month_name =, DATE = &amp;gt;} Value1)/sum({$&amp;lt;Value2 = {'*'},&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;Period_Num&lt;/SPAN&gt;= {"$(=max(&lt;SPAN style="font-size: 13.3333px;"&gt;Period_Num&lt;/SPAN&gt;)-1)"}, &lt;SPAN style="font-size: 13.3333px;"&gt;YearField&amp;nbsp; &lt;/SPAN&gt;= ,month_name =, DATE = &amp;gt;}Value3)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is equation returns 0 for each row and each month.&amp;nbsp; Am I missing something simple?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:29:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparative-analysis-trouble/m-p/936463#M323244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-15T21:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Comparative analysis trouble</title>
      <link>https://community.qlik.com/t5/QlikView/Comparative-analysis-trouble/m-p/936464#M323245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to tell what's wrong with the information given. Context matters, so more information about the expression context, the data model and data would be helpful. If possible, upload a small sample QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To start debugging your expression, try to put each aggregation function (Sum() ) in an expression on its own and check the returned values (also when changing the selection).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are not expecting the set analysis to somehow consider your current dimension lines, right? Set analysis is evaluated only once per chart, not per dimension line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:52:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparative-analysis-trouble/m-p/936464#M323245</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-15T21:52:02Z</dc:date>
    </item>
  </channel>
</rss>

