<?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: Valuelist unexpected behaviour in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107176#M366610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see attached file&lt;/P&gt;&lt;P&gt;hope you find a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jun 2016 20:26:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-01T20:26:41Z</dc:date>
    <item>
      <title>Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107167#M366601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;I defined a Pivot table with a calculated Dimension (a valuelist) and the behaviour is rather curious.&lt;/P&gt;&lt;P&gt;A short example:&lt;/P&gt;&lt;P&gt;2 Dimensions (Region and Product), 1 calculated Dimension (Valuelist('Week','Year')&lt;/P&gt;&lt;P&gt;one Expression: sum Sales&lt;/P&gt;&lt;P&gt;What I want to Display is Region vertical, Valuelist in upper horizontal and Product in lower horizontal&lt;/P&gt;&lt;P&gt;Expression is defined as: if Valuelist('Week','Year')='Week', sum(Sales), sum ({&amp;lt;Week={'&amp;lt;=$(=max(Week))'}Sales)&lt;/P&gt;&lt;P&gt;I want to Display sales of selected week and cumulative sales (from start of year to selected week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 1Region&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 4&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 5&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Week&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Week&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Year&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product 1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Product 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Region1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Region 2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;75&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what is curious: &lt;BR /&gt;Whenever a Region has no sales, the expression does not calculate the first condition (Week) but the second one&lt;/P&gt;&lt;P&gt;So by simply defining if Valuelist('Week','Year')='Week',1,2 I do see 2 when there is no sales for this product&lt;/P&gt;&lt;P&gt;In the above table Product1 is not sold in Region 2, so Week contains the same value as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot upload a small sample as upload is forbidden at customer site&lt;/P&gt;&lt;P&gt;the formulas (just an example) above are working (as all data is correct for regions with sales)&lt;/P&gt;&lt;P&gt;Any idea???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107167#M366601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T14:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107168#M366602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you also tried the same with a data island dimension created in the data model instead of ValueList()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107168#M366602</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T14:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107169#M366603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not yet, should it be a better approach than valuelist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107169#M366603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107170#M366604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try pick and match&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick( match(Valuelist('Week','Year'),'Week','Year'),&lt;/P&gt;&lt;P&gt;sum(Sales), sum ({&amp;lt;Week={'&amp;lt;=$(=max(Week))'}Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107170#M366604</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-01T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107171#M366605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now week data seems to be okay (Shows "-" when there is no data)&lt;/P&gt;&lt;P&gt;but year data is not correct, total shows correct value, but only 1 product shows&lt;/P&gt;&lt;P&gt;correct data while other products Show "-"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 14:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107171#M366605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T14:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107172#M366606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 16:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107172#M366606</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-01T16:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107173#M366607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will prepare a sample and upload it.&lt;/P&gt;&lt;P&gt;it may take a while&lt;/P&gt;&lt;P&gt;what i noticed with your pick method is&amp;nbsp; that i got Detail values for year onlyvfor&lt;/P&gt;&lt;P&gt;the product which alslo had sales in the week.&lt;/P&gt;&lt;P&gt;the total was correct in both cases&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 19:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107173#M366607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T19:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107174#M366608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already tried the data island? I think it may help with your issue:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2016-06-01 21_50_01-QlikView x64 - [C__Users_Stefan_Downloads_comm219156.qvw_].png" class="jive-image image-1" src="/legacyfs/online/126561_2016-06-01 21_50_01-QlikView x64 - [C__Users_Stefan_Downloads_comm219156.qvw_].png" style="height: 175px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 19:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107174#M366608</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T19:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107175#M366609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I attach example with both ways (Valuelist and Data Island).Please have a look to PROD3. In week 11 there is no sales for REG2. In the Pivot table we see the value for the year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107175#M366609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T20:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107176#M366610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please see attached file&lt;/P&gt;&lt;P&gt;hope you find a solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107176#M366610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T20:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107177#M366611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see attached file with both qays (valielist and data Island - Suggestion from swuehl)&lt;/P&gt;&lt;P&gt;PROD2 does not have a value in week 11 for REG2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107177#M366611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T20:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107178#M366612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Valuelist('Week','Year')='Week' &lt;SPAN style="color: #ff0000;"&gt;or Len(Trim(Valuelist('Week','Year'))) = 0,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sum(Sales),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sum({&amp;lt;Week={'&amp;lt;=$(=max(Week))'}&amp;gt;}Sales))&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/126570_Capture.PNG" style="height: 246px; width: 620px;" /&gt;&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;UPDATE:&lt;BR /&gt;&lt;/STRONG&gt;I think the issue is that ValueList() becomes null for some reasons and the if goes directly to the false statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107178#M366612</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T20:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107179#M366613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107179#M366613</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-01T20:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107180#M366614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;amazing, with Expression len(... )=0&amp;nbsp; I get only table with PROD2&lt;/P&gt;&lt;P&gt;( I have QV 12, my custo´mer have QV 11.20 SR 12)&lt;/P&gt;&lt;P&gt;In your upper table I miss the cumulated values (year) for PROD1 and PROD3 as they had been sold in Week 5 and 10; only for PROD2 the calculation works &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/126575_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/126577_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107180#M366614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T20:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107181#M366615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your solution with &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;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)='WeekA', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;works (at least with the small example).&lt;/P&gt;&lt;P&gt;I will test it next monday at my customer site&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 20:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107181#M366615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-01T20:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Valuelist unexpected behaviour</title>
      <link>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107182#M366616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another try &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Valuelist('Week','Year')='Week' or (Len(Trim(Valuelist('Week','Year'))) = 0 and (ColumnNo(TOTAL) * Avg({1} 1)) &amp;lt;= Count({&amp;lt;Week&amp;gt;}DISTINCT TOTAL Week)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sum(Sales),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; sum({&amp;lt;Week={'&amp;lt;=$(=max(Week))'}&amp;gt;}Sales))&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/126579_Capture.PNG" style="height: 105px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Valuelist-unexpected-behaviour/m-p/1107182#M366616</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-01T21:01:28Z</dc:date>
    </item>
  </channel>
</rss>

