<?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 Get second, third... best variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-second-third-best-variable/m-p/995713#M959313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;I have in my Qlikview Ptrojet a population and in this population a number of good people. I wanna to know which variable and which selected modality increase the most the percentage of my good people in the all population. Every one is identified with an ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;For exemple: if i have the variable : Hapiness with two modality 'high' 'low' so Hapiness= high or low&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;and a second variable Money= 'lot of' or 'few', the i would like to know which of the following percent is the highest :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Count( if [Person]='Good' and [Hapiness]='high', ID)) / Count (if ( [Hapiness]='high' , ID))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Count( if [Person]='Good' and [Hapiness]='low', ID)) / Count (if ( [Hapiness]='low' , ID))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Count( if [Person]='Good' and [Money]='lot of', ID)) / Count (if ( [Money]='lot of' , ID))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Count( if [Person]='Good' and [Money]='few', ID)) / Count (if ( [Money]='few' , ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Thank’s to dathu.qv i found this solution :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;1. Dual('HappinessHigh', Count( if [Person]='Good' and [Hapiness]='high', ID)) / Count (if ( [Hapiness]='high' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;2. Dual('HappinessLow', Count( if [Person]='Good' and [Hapiness]='low', ID)) / Count (if ( [Hapiness]='low' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;3. Dual('MoneyLot', Count( if [Person]='Good' and [Money]='lot of', ID)) / Count (if ( [Money]='lot of' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;4. Dual('MoneyFew', Count( if [Person]='Good' and [Money]='few', ID)) / Count (if ( [Money]='few' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt; Use RangeMaxString() function to get the respective variable name.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt; RangeMaxString( var1, var2, var3, var4 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Now, i would like to know how to get the second best % , the third one.. &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Pleaaase help me !!&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Thank’s&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Am’&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 22:19:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-29T22:19:04Z</dc:date>
    <item>
      <title>Get second, third... best variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-second-third-best-variable/m-p/995713#M959313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Hi everyone !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;I have in my Qlikview Ptrojet a population and in this population a number of good people. I wanna to know which variable and which selected modality increase the most the percentage of my good people in the all population. Every one is identified with an ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;For exemple: if i have the variable : Hapiness with two modality 'high' 'low' so Hapiness= high or low&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;and a second variable Money= 'lot of' or 'few', the i would like to know which of the following percent is the highest :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Count( if [Person]='Good' and [Hapiness]='high', ID)) / Count (if ( [Hapiness]='high' , ID))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Count( if [Person]='Good' and [Hapiness]='low', ID)) / Count (if ( [Hapiness]='low' , ID))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Count( if [Person]='Good' and [Money]='lot of', ID)) / Count (if ( [Money]='lot of' , ID))&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Count( if [Person]='Good' and [Money]='few', ID)) / Count (if ( [Money]='few' , ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;Thank’s to dathu.qv i found this solution :&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;1. Dual('HappinessHigh', Count( if [Person]='Good' and [Hapiness]='high', ID)) / Count (if ( [Hapiness]='high' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;2. Dual('HappinessLow', Count( if [Person]='Good' and [Hapiness]='low', ID)) / Count (if ( [Hapiness]='low' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;3. Dual('MoneyLot', Count( if [Person]='Good' and [Money]='lot of', ID)) / Count (if ( [Money]='lot of' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt;4. Dual('MoneyFew', Count( if [Person]='Good' and [Money]='few', ID)) / Count (if ( [Money]='few' , ID)) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt; Use RangeMaxString() function to get the respective variable name.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;STRONG&gt; RangeMaxString( var1, var2, var3, var4 )&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue'; color: #3c3c3c;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Now, i would like to know how to get the second best % , the third one.. &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Pleaaase help me !!&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Thank’s&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue'; color: #3c3c3c; background-color: #f2f2f2;"&gt;Am’&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 22:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-second-third-best-variable/m-p/995713#M959313</guid>
      <dc:creator />
      <dc:date>2015-10-29T22:19:04Z</dc:date>
    </item>
  </channel>
</rss>

