<?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: Value list in Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509236#M190285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ValueList is not linked to the fields in your model. You will have to create these links yourself. Let me show you by example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose that we have in our model, a fields called empID, empName, empGender; and that empGender contains either 'M' or 'F'. Now you create a table using dimension =ValueList('Male', 'Female') as you have done. Now create the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Distinct If(ValueList('Male', 'Female') = 'Male' And empGender = 'M', empID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(ValueList('Male', 'Female') = 'Female' And empGender = 'F', empID)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have the valuelist exactly as defined in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 07:12:51 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2013-10-23T07:12:51Z</dc:date>
    <item>
      <title>Value list in Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509235#M190284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have chart with dynamic dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ValueList&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Male','Female') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expression shows count of total employees.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Currently is independent of this dimension , showing count&amp;nbsp; of total employees in both row &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Want to show decomposition of count of employees by gender.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 06:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509235#M190284</guid>
      <dc:creator />
      <dc:date>2013-10-23T06:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Value list in Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509236#M190285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ValueList is not linked to the fields in your model. You will have to create these links yourself. Let me show you by example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose that we have in our model, a fields called empID, empName, empGender; and that empGender contains either 'M' or 'F'. Now you create a table using dimension =ValueList('Male', 'Female') as you have done. Now create the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Distinct If(ValueList('Male', 'Female') = 'Male' And empGender = 'M', empID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(ValueList('Male', 'Female') = 'Female' And empGender = 'F', empID)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to have the valuelist exactly as defined in the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 07:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509236#M190285</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-23T07:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Value list in Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509237#M190286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 07:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-list-in-Dimension/m-p/509237#M190286</guid>
      <dc:creator />
      <dc:date>2013-10-23T07:16:55Z</dc:date>
    </item>
  </channel>
</rss>

