<?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 Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045697#M926117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but may be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Sum(Amount) = 0, RangeAvg(Above(Sum(Amount), 1, 3)), Sum(Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120414_Capture.PNG" style="height: 427px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 12:54:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-04T12:54:52Z</dc:date>
    <item>
      <title>Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045696#M926115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table fields Month Year and Amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE height="210" style="width: 178px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Month Yr&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Aug-15&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Sep-15&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;225&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et3" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;1-Oct&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;450&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et3" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;1-Nov&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;375&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Dec-15&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;275&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et3" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;1-Jan&lt;/TD&gt;&lt;TD class="et1" height="19" style="color: #000000; font-size: 11pt;" width="63"&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Feb-16&lt;/TD&gt;&lt;TD height="19"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Mar-16&lt;/TD&gt;&lt;TD height="19"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt;" width="115"&gt;Apr-16&lt;/TD&gt;&lt;TD height="19"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;My requirements are :&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE height="38" style="width: 680px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt; text-align: center;" width="680"&gt;1.Create a bar chart Month as Dimension and Sum(sales ) as Measures&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="et2" height="19" style="color: #000000; font-size: 11pt; text-align: center;" width="680"&gt;&lt;P&gt;2.So if there is no sales value then last 3 months average should come for upcoming months with respectively.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My Set Analysis Expression is =if(IsNull(month([Month Yr])),avg({&amp;lt;=(month([Month Yr]))={'Nov','Dec','Jan'}&amp;gt;}Amount),sum(Amount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Issue in this,&lt;SPAN style="font-size: 13.3333px;"&gt;Please any one help ? &lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045696#M926115</guid>
      <dc:creator>scotly-victor</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045697#M926117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but may be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Sum(Amount) = 0, RangeAvg(Above(Sum(Amount), 1, 3)), Sum(Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/120414_Capture.PNG" style="height: 427px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045697#M926117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-04T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045698#M926119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I think a first step in both approaches would be to create a proper Month Yr field with a numeric representation, that you can use as dimension&amp;nbsp; with correct order or in set analysis field modifier &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045698#M926119</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-04T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045699#M926121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then, with your first approach, you could try something like&lt;/P&gt;&lt;P&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;=if(Sum(Amount)=0 , avg({&amp;lt; &lt;STRONG&gt;YearMonth&lt;/STRONG&gt; = {'Nov 15','Dec 15','Jan 16'}&amp;gt;} &lt;STRONG&gt;TOTAL&lt;/STRONG&gt; Amount), sum(Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045699#M926121</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-04T13:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045700#M926123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your Reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was wrong when I gave your expression on Chart, In my Amount field last three values are null, What I want is &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; average of previous three value should be on first null field of chart or table&amp;nbsp; Likewise rest of two fields should be filled .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is a sort of rolling Average&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 04:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045700#M926123</guid>
      <dc:creator>scotly-victor</dc:creator>
      <dc:date>2016-04-05T04:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045701#M926125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thank you for you Instant reply&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;There is no error in Month Yr field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 04:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045701#M926125</guid>
      <dc:creator>scotly-victor</dc:creator>
      <dc:date>2016-04-05T04:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045702#M926126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean, can you share the expected output from the sample that you have shared with us?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 16:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Error/m-p/1045702#M926126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-05T16:21:23Z</dc:date>
    </item>
  </channel>
</rss>

