<?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 Create a field/selection based on expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351553#M130363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which is extracted from qlikview to excel export like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="190"&gt;Email ID of Notice Recipient&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="127"&gt;Matters Involved&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="68"&gt;0 - No Response&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Compliance Rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;xyz.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;0.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;pqr.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My coding for compliance rate is&amp;nbsp; &lt;STRONG&gt;=count( {$&amp;lt;Type = {[3 - Response with full compliance]}&amp;gt;} Type ) / Count(distinct [Matter ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Now my requirement is, i need a listbox like this in my application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 82px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="82"&gt;&lt;STRONG&gt;Levels&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;0.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select 100.00% i should get a my result like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="190"&gt;Email ID of Notice Recipient&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="127"&gt;Matters Involved&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="68"&gt;0 - No Response&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;Compliance Rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: medium none;"&gt;abc.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: medium none; border-left: medium none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: medium none;"&gt;pqr.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: medium none; border-left: medium none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw one example in one of qlikive sample application (online Sales) - here they created "Age" as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" height="131" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" width="411" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply back if you need more clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 14:12:59 GMT</pubDate>
    <dc:creator>renjithpl</dc:creator>
    <dc:date>2012-06-13T14:12:59Z</dc:date>
    <item>
      <title>Create a field/selection based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351553#M130363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which is extracted from qlikview to excel export like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="190"&gt;Email ID of Notice Recipient&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="127"&gt;Matters Involved&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="68"&gt;0 - No Response&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="98"&gt;Compliance Rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;abc.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;xyz.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;0.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: none;"&gt;pqr.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My coding for compliance rate is&amp;nbsp; &lt;STRONG&gt;=count( {$&amp;lt;Type = {[3 - Response with full compliance]}&amp;gt;} Type ) / Count(distinct [Matter ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Now my requirement is, i need a listbox like this in my application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 82px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="82"&gt;&lt;STRONG&gt;Levels&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;0.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i select 100.00% i should get a my result like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 483px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="190"&gt;Email ID of Notice Recipient&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="127"&gt;Matters Involved&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="68"&gt;0 - No Response&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="98"&gt;Compliance Rate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: medium none; border-left: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: medium none; border-left: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: medium none;"&gt;abc.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: medium none; border-left: medium none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17" style="border-top: medium none;"&gt;pqr.yahoo.com&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: medium none; border-left: medium none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: medium none; border-left: medium none;"&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw one example in one of qlikive sample application (online Sales) - here they created "Age" as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" height="131" src="https://community.qlik.com/" style="max-width: 1200px; max-height: 900px;" width="411" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply back if you need more clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351553#M130363</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2012-06-13T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field/selection based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351554#M130364</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;In the app you saw, they use class() function as a dimension. In your case with your expression, you can try this :&lt;/P&gt;&lt;P&gt;aggr(&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px; background-color: #eef4f9;"&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;count( {$&amp;lt;Type = {[3 - Response with full compliance]}&amp;gt;} Type ) / Count(distinct [Matter ID])&lt;/STRONG&gt;,[&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Email ID of Notice Recipient&lt;/SPAN&gt;])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-family: 'Courier New'; font-size: 12px; background-color: #eef4f9;"&gt;Use this expression as an expression in list box.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351554#M130364</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-06-13T14:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field/selection based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351555#M130365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Chrisopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to give something like, less than 50%, greater than 50%, so when i select less than 50% it gives all the values below 50% and above should give all values more than 50%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 05:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351555#M130365</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2012-06-14T05:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field/selection based on expression</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351556#M130366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried something like below, it worked. &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;if(aggr(count( {$&amp;lt;Type = {[3 - Response with full compliance]}&amp;gt;} Type ) / Count(distinct [Matter ID]),[Email ID of Notice Recipient]) &amp;gt;50/100, 'above 50%', 'below 50%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 05:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-selection-based-on-expression/m-p/351556#M130366</guid>
      <dc:creator>renjithpl</dc:creator>
      <dc:date>2012-06-14T05:55:20Z</dc:date>
    </item>
  </channel>
</rss>

