<?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: About ValueList in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863047#M998917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sample is attached. In the QV file, if nothing is selected, the bottom chart (i.e. the one using valuelist) looks fine except that all bars are 50%. If I choose "School 1" from the selection box, the bars drop below 50%. I know that School 1 did not have certain ratings (e.g. it didn't have "Strongly dissatisfied" in 2011). But given that I have used set analysis in the expression to ignore 'School' (in the case of 'Overall' bar) or keep it to 'School 3' (in the case of 'School 3' bar), why my selection still affects the bar chart? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 12:17:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-10T12:17:47Z</dc:date>
    <item>
      <title>About ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863045#M998914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a 5 point scale question (i.e. 1 = very dissatisfied, 3 = neutral, 5 = very satisfied) and this question is asked to students annually. All students have the following attributes: School, Academic Program and Gender. Now I got the response data and would like to make a bar chart to show the distribution of responses, breakdown by year. For easier comparison, I would like to create a chart like the pic 1 (see attachment).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pic 1.jpg" class="jive-image image-1" src="/legacyfs/online/88928_Pic 1.jpg" style="height: 243px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using ValueList so that I can compare two different dimensions. The expression I used in the chart is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=pick( match( ValueList('Overall', 'School'), 'Overall', 'School'),&lt;/P&gt;&lt;P&gt;count( {$&amp;lt;School=, Program=, Year&amp;gt;} Satisfaction) / count( Total &amp;lt;Year&amp;gt; {$&amp;lt;School=, Program=, Year&amp;gt;} Satisfaction) ,&lt;/P&gt;&lt;P&gt;count( {$&amp;lt;School={'School 3'}, Program=, Year&amp;gt;} Satisfaction) / count( Total &amp;lt;Year, School&amp;gt; {$&amp;lt;School={'School 3'}, Program=, Year&amp;gt;} Satisfaction) &lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the used dimensions I put:&lt;/P&gt;&lt;P&gt;1. Year&lt;/P&gt;&lt;P&gt;2. =ValueList('Overall', School')&lt;/P&gt;&lt;P&gt;3. Satisfaction (5 groups)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I find two problems:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The valuelist is always affected by the selection in the selection box, despite I explicitly include "School=" in the set analysis. Did I put something wrong in the expression? For example if I choose a certain year, the chart will show that year only (instead of all years). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If I use the above expression, the total % of the bar chart is 50% or less. (See Pic2).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pic 2.jpg" class="jive-image image-2" src="/legacyfs/online/88929_Pic 2.jpg" style="height: 241px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I change that (or I simply multiple the expression by 2)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863045#M998914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-10T09:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: About ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863046#M998915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload a small sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863046#M998915</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-10T09:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: About ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863047#M998917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sample is attached. In the QV file, if nothing is selected, the bottom chart (i.e. the one using valuelist) looks fine except that all bars are 50%. If I choose "School 1" from the selection box, the bars drop below 50%. I know that School 1 did not have certain ratings (e.g. it didn't have "Strongly dissatisfied" in 2011). But given that I have used set analysis in the expression to ignore 'School' (in the case of 'Overall' bar) or keep it to 'School 3' (in the case of 'School 3' bar), why my selection still affects the bar chart? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 12:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863047#M998917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-10T12:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: About ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863048#M998918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Horry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;very strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found some threads about synthetic dimensions breaking somehow the way we think set expressions influence the data shown in charts:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/133580"&gt;Valuelist Weirdness...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried replacing the synthetic dimension with a data island dimension, but without any more luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that somehow a not linked dimension breaks the set analysis in the aggregation functions.&lt;/P&gt;&lt;P&gt;Hm, maybe &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ can tell more about the root cause (or where we made a mistake).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I may have found a workaround:&lt;/P&gt;&lt;P&gt;Create an alternate state in document properties, like 'AS1', &lt;SPAN style="font-size: 13.3333330154419px;"&gt; and ensure you cleared selections for this alternate state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Inherit your chart from AS1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will still work as expected, because your set expressions reference default state &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this somehow cures the issue with your selections, see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added also a multiplication by factor 2, I think this is reasonable given the duplication of results with your synthetic dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 13:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863048#M998918</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-10T13:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: About ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863049#M998919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very strange indeed, i'd be interested if Henric has some thoughts about his. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the duplication of the base by loading an ID to the data and using a Distinct Count of this ID, instead of the count of satisfaction&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 14:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863049#M998919</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-10T14:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: About ValueList</title>
      <link>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863050#M998921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for suggestions from both of you and this workaround solve the problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 01:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/About-ValueList/m-p/863050#M998921</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-11T01:21:19Z</dc:date>
    </item>
  </channel>
</rss>

