<?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 ValueList in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229579#M81472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help. I join an example. I hope it will be clear for you&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 12:07:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-22T12:07:19Z</dc:date>
    <item>
      <title>ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229575#M81468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody&lt;/P&gt;&lt;P&gt;I built a value list containing 5 text values (TO, MS, Growth, ...) to use in a pivot table.&lt;/P&gt;&lt;P&gt;On a selection I get a TO total = 1 000 . This is the right result I get when using a pivot table and an expression sum(TO).&lt;/P&gt;&lt;P&gt;When I add ValueList as a dimension and change my expression with If ($(ValueList)='TO', sum(TO)) the result is 5 000. Means I have 5 times the result because I've 5 values in my list.&lt;/P&gt;&lt;P&gt;Does someone has a clue to solve it?&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 14:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ValueList/m-p/229575#M81468</guid>
      <dc:creator />
      <dc:date>2010-12-21T14:59:50Z</dc:date>
    </item>
    <item>
      <title>ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229576#M81469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christian,&lt;/P&gt;&lt;P&gt;corrrect expression is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;sum( If ($(ValueList)='TO', TO, 0))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This means you sum up within your sum() only values passing the filter of the if(). In &lt;I&gt;your&lt;/I&gt; expression there will be a total sum (=5000) when if() is true. This is at least once and 5000 being your sum of all values is returned.&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 15:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ValueList/m-p/229576#M81469</guid>
      <dc:creator />
      <dc:date>2010-12-21T15:23:12Z</dc:date>
    </item>
    <item>
      <title>ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229577#M81470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland,&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;BR /&gt;It works better but only for 2 levels.&lt;BR /&gt;If I have to tell everything we use a pivot table with 4 geographic levels as dimensions + 1 ValueList dimension.&lt;BR /&gt;As expression we have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt; (&lt;B&gt;&lt;I&gt;$(ValueList)&lt;/I&gt;&lt;/B&gt; = 'TO', &lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;TO&lt;/B&gt;),&lt;BR /&gt; &lt;B&gt;if&lt;/B&gt; (&lt;B&gt;&lt;I&gt;$(ValueList)&lt;/I&gt;&lt;/B&gt; = 'MS', &lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;TO&lt;/B&gt;) / &lt;B&gt;sum&lt;/B&gt;( {&amp;lt;&lt;B&gt;Product&lt;/B&gt;&amp;gt;} &lt;B&gt;total&lt;/B&gt; &amp;lt;&lt;B&gt;Geo1&lt;/B&gt;, &lt;B&gt;Geo2&lt;/B&gt;, &lt;B&gt;Geo3&lt;/B&gt;&amp;gt; &lt;B&gt;TO,&lt;BR /&gt;&lt;/B&gt;&lt;STRONG&gt;.... for the 5 values&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So we switch for your solution only for 1 value in the list,&lt;BR /&gt;&lt;/STRONG&gt; sum (&lt;STRONG&gt;if&lt;/STRONG&gt; (&lt;I&gt;$(ValueList)&lt;/I&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; 'TO', TO),&lt;BR /&gt;&lt;STRONG&gt;and it gives a good result but only for last level and Geo3 level. Geo1 and Geo2 levels are wrong but not 5 times anymore just a bit more than twice the expected result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i'm not sure about something like this because we have to test the value and to divide one expression by another&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sum (&lt;BR /&gt; &lt;STRONG&gt;if&lt;/STRONG&gt; (&lt;I&gt;$(ValueList)&lt;/I&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; 'TO', TO,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if&lt;/STRONG&gt; (&lt;I&gt;$(ValueList)&lt;/I&gt; &lt;STRONG&gt;=&lt;/STRONG&gt; 'MS', TO) / {&amp;lt;Product&amp;gt;} total &amp;lt;Geo1, Geo2, Geo3&amp;gt; &lt;STRONG&gt;&lt;/STRONG&gt;TO,&lt;BR /&gt;&lt;STRONG&gt;...)))))&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;best regards&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;christian&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 16:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ValueList/m-p/229577#M81470</guid>
      <dc:creator />
      <dc:date>2010-12-21T16:14:32Z</dc:date>
    </item>
    <item>
      <title>ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229578#M81471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;to clearify some details: are you able to send a little example app? Perhaps with some sample data and the results you expect for one or two given cases. I am sure this will shorten our correspondence and helps me to help you.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 09:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ValueList/m-p/229578#M81471</guid>
      <dc:creator />
      <dc:date>2010-12-22T09:51:34Z</dc:date>
    </item>
    <item>
      <title>ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229579#M81472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help. I join an example. I hope it will be clear for you&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 12:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ValueList/m-p/229579#M81472</guid>
      <dc:creator />
      <dc:date>2010-12-22T12:07:19Z</dc:date>
    </item>
    <item>
      <title>ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/ValueList/m-p/229580#M81473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;had the time to take a glance at your app. I think I found what you want to achieve. Regardez in your first sum() of your nested if() "Tot Market":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;if($(ValueListIndic)='Pdm',&lt;BR /&gt; sum({&amp;lt;Prod_CommonAppellation,Prod_CompositionGroup&amp;gt;} total &amp;lt;Secto_Area, Secto_DistrictLib,Secto_TerritoryLib&amp;gt; If(Vte_AMJ01=Date_AMJ01 &lt;I&gt;and $(ValueListIndic)='Pdm'&lt;/I&gt; , Vte_UNC)),&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Note: The if() within the sum() is the filter of your sum() and I only added the part above in &lt;I&gt;italic&lt;/I&gt;. With other words, the outer nested if and the filter if() within the sum-function are independent.&lt;/P&gt;&lt;P&gt;RR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 15:41:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ValueList/m-p/229580#M81473</guid>
      <dc:creator />
      <dc:date>2010-12-22T15:41:27Z</dc:date>
    </item>
  </channel>
</rss>

