<?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 Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299234#M405128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove the blanks between equal and field in your set analysis Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;{&amp;lt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DfPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fxPeriod&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;= &amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2017 05:08:45 GMT</pubDate>
    <dc:creator>zhadrakas</dc:creator>
    <dc:date>2017-07-27T05:08:45Z</dc:date>
    <item>
      <title>SET ANALYSIS Issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299233#M405127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expressions, which is not providing the correct result when used with SET ANALYSIS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; {&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DfPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fxPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PriorExposure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ReportingPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, Type) = 0,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(SUM(CurrExposure), Region, ReportingPeriod, Amount, Type), &lt;BR /&gt; IF((AGGR(SUM(CurrExposure), Region, ReportingPeriod, Amount, Type) / AGGR(SUM(PriorExposure), Region, ReportingPeriod, Amount, Type)) &amp;gt; 1.2, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (AGGR(SUM(CurrExposure), Region, ReportingPeriod, Amount, Type) - (1.2 * AGGR(SUM(PriorExposure), Region, ReportingPeriod, Amount, Type))),&lt;BR /&gt; 0)))&lt;BR /&gt; *&lt;BR /&gt; ONLY(OpsFactor), Region, ReportingPeriod, Amount, Type)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have included SET ANALYSIS, because regardless of what values a user selects for [DfPeriod] and [fxPeriod], I do not want the result of my expression to change. If I remove the set analysis, then the expressions works correctly, however, if a user selects filters for either [DfPeriod] or [fxPeriod], then the result is zero. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I think that this may have something to do with the AGGR() function, but would appreciate any help / suggestions as I do not know how to continue.&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 21:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299233#M405127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-26T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS Issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299234#M405128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove the blanks between equal and field in your set analysis Statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;{&amp;lt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DfPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;fxPeriod&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;= &amp;gt;}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 05:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299234#M405128</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2017-07-27T05:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS Issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299235#M405129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(AGGR(SUM({&amp;lt;DfPeriod =,fxPeriod = &amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(AGGR(SUM(PriorExposure), Region, ReportingPeriod, Amount, Type) = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AGGR(SUM(CurrExposure), Region, ReportingPeriod, Amount, Type), &lt;/P&gt;&lt;P&gt;IF((AGGR(SUM(CurrExposure), Region, ReportingPeriod, Amount, Type) / AGGR(SUM(PriorExposure), Region, ReportingPeriod, Amount, Type)) &amp;gt; 1.2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (AGGR(SUM(CurrExposure), Region, ReportingPeriod, Amount, Type) - (1.2 * AGGR(SUM(PriorExposure), Region, ReportingPeriod, Amount, Type))),&lt;/P&gt;&lt;P&gt;0)))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;ONLY(OpsFactor), Region, ReportingPeriod, Amount, Type))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 05:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299235#M405129</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-07-27T05:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: SET ANALYSIS Issue</title>
      <link>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299236#M405130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DfPeriod, fxPeriod&amp;gt;} Aggr(Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;PriorExposure) = 0, Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;CurrExposure), &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;If((Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;CurrExposure)/Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;PriorExposure)) &amp;gt; 1.2, (Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;CurrExposure) - (1.2 * Sum(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;PriorExposure))), 0)) * Only(&lt;SPAN style="font-size: 13.3333px;"&gt;{&amp;lt;DfPeriod, fxPeriod&amp;gt;}&lt;/SPAN&gt;OpsFactor)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Region, ReportingPeriod, Amount, Type))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 11:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-ANALYSIS-Issue/m-p/1299236#M405130</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-27T11:35:34Z</dc:date>
    </item>
  </channel>
</rss>

