<?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: Re: Select different field values for 2 different fields with same values but different name from 2 listboxes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723646#M474372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kalpesh. I am now able to select different values for same field. However, my chart does not work. I have modified your sample file - added similar chart and more data. On selecting value BBB for AccountType in first list box and value CCC for Accountype in second list box, should display the chart with dimension ID. Please find attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 21:34:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-17T21:34:15Z</dc:date>
    <item>
      <title>Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723643#M474369</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;I have a chart with following expression formula. I want to set the value of vNumerator variable in the below formula with the value in the first list box and set the value of vDenominator with the value in the second list box. I want to be able to select different values for the same field or different values for 2 different fields (having same value but different field name) from 2 list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;ACCT_TYPE= {$(vNumerator)}&amp;gt;}INCOME)/Sum({$&amp;lt;ACCT_TYPE= {$(vDenominator)}&amp;gt;}INCOME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Alternate state works but then my chart does not work since it has to be driven with the same states as the 2 list boxes.&lt;/P&gt;&lt;P&gt;2. Duplicated column ACCT_TYPE and named it as ACCT_TYPE_2. Assigned first list box to ACCT_TYPE and second list box to ACCT_TYPE_2. However, if I select value from first list box having ACCT_TYPE field, the value in second list box gets selected automatically even though the field it holds is ACCT_TYPE_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any work around to get the chart working by selecting 2 different values for same field or 2 different fields with same values but different field name ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 18:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723643#M474369</guid>
      <dc:creator />
      <dc:date>2014-09-17T18:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723644#M474370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vNumerator = GetFieldSelections(field you use for numerator)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;It allows to use more than one field selected in the set analysis&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723644#M474370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-17T20:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723645#M474371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It is possible through alternate state. Check the attached application.&lt;/P&gt;&lt;P&gt;In my solution, I created on alternate state-GroupA&lt;/P&gt;&lt;P&gt;and then used this expression:&lt;/P&gt;&lt;P&gt;Sum(Income)/ Sum({$&amp;lt; AccountType = GroupA::AccountType &amp;gt;} Income)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Numerator part of expression takes listbox from default state. Hence no identifiers.&lt;/P&gt;&lt;P&gt;For Denominator part, we used GroupA::AccountType&amp;nbsp; to read from GroupA listbox. That does the magic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. The chart has default state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;P&gt;Kalpesh Jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 20:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723645#M474371</guid>
      <dc:creator />
      <dc:date>2014-09-17T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723646#M474372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kalpesh. I am now able to select different values for same field. However, my chart does not work. I have modified your sample file - added similar chart and more data. On selecting value BBB for AccountType in first list box and value CCC for Accountype in second list box, should display the chart with dimension ID. Please find attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 21:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723646#M474372</guid>
      <dc:creator />
      <dc:date>2014-09-17T21:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723647#M474373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I'm using personal edition so unable to open any applications created on another computer.&lt;/P&gt;&lt;P&gt;But if you can post sample data and screenshots, I might be able to assist more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;KalpeshJain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 22:01:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723647#M474373</guid>
      <dc:creator />
      <dc:date>2014-09-17T22:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723648#M474374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kalpesh. Attached is the screenshot and the sample data below. The data is one that you provided just added few more rows for same ID. Can't the personal edition open the file created on another computer at least thrice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see in the screenshot, 2 different values are selected for AccountType from 2 different listboxes. The chart has dimension ID and following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;AccountType = {$(vNumerator)}&amp;gt;}Income)/Sum({$&amp;lt;AccountType = GroupA::AccountType&amp;gt;}Income)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Period, ID, AccountType, Income&lt;/P&gt;&lt;P&gt;201401, 1, AAA, 100&lt;/P&gt;&lt;P&gt;201401, 1, BBB, 200&lt;/P&gt;&lt;P&gt;201401, 1, CCC, 300&lt;/P&gt;&lt;P&gt;201401,2, AAA, 200&lt;/P&gt;&lt;P&gt;201401,2, BBB, 100&lt;/P&gt;&lt;P&gt;201401,2, CCC, 400&lt;/P&gt;&lt;P&gt;201401,3, AAA, 300&lt;/P&gt;&lt;P&gt;201401,4, BBB, 400&lt;/P&gt;&lt;P&gt;201401,5, AAA, 100&lt;/P&gt;&lt;P&gt;201401,6, CCC, 200&lt;/P&gt;&lt;P&gt;201401,7, CCC, 100&lt;/P&gt;&lt;P&gt;201401,8, AAA, 500&lt;/P&gt;&lt;P&gt;201401,9, BBB, 100&lt;/P&gt;&lt;P&gt;201401,10,BBB, 900&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 23:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723648#M474374</guid>
      <dc:creator />
      <dc:date>2014-09-17T23:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723649#M474375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you are calling a variable in set expression, it should have equal to sign before it (I guess since variable definition is calling a function)&lt;/P&gt;&lt;P&gt;So here is the modified expression:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;AccountType = {$(=$(vNumerator))}&amp;gt;}Income)/Sum({$&amp;lt;AccountType = GroupA::AccountType&amp;gt;}Income)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you may add equal to sign in the variable definition itself and then use the same expression you built&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;AccountType = {$(=$(vNumerator))}&amp;gt;}Income)/Sum({$&amp;lt;AccountType = GroupA::AccountType&amp;gt;}Income)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as soon as you put an equalto sign in variable definition, the text boxes will receive evaluated value from default state list box and therefore won't show state specific selections. Without equalto sign in variable definition, variable is evaluated within Chart context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalpesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 06:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723649#M474375</guid>
      <dc:creator />
      <dc:date>2014-09-18T06:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723650#M474376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works. Thank you Kalpesh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723650#M474376</guid>
      <dc:creator />
      <dc:date>2014-09-18T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723651#M474377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalpesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display only selected rows in the straight table ? For example, I have 2 columns in my table - Employees, Income. I want to display only those rows where Income &amp;gt; 80 000 and Income &amp;lt; 100 000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723651#M474377</guid>
      <dc:creator />
      <dc:date>2014-09-18T18:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723652#M474378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two ways to achieve it. you may choose the one best suits your needs.&lt;/P&gt;&lt;P&gt;1. Set the expression as:-&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(if (Income &amp;gt; 80000 and Income&amp;lt; 100000, Income))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use calculated dimension as:- if (Income &amp;gt; 80000 and Income&amp;lt; 100000, Employee)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mark CheckBox "Suppress when value is Null"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use chart expression as:- Sum(Income)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kalpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723652#M474378</guid>
      <dc:creator />
      <dc:date>2014-09-18T18:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Select different field values for 2 different fields with same values but different name from 2 listboxes</title>
      <link>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723653#M474379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Checking "Suppress values when Null" did the trick. Forgot about that &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;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 18:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-different-field-values-for-2-different-fields-with-same/m-p/723653#M474379</guid>
      <dc:creator />
      <dc:date>2014-09-18T18:52:44Z</dc:date>
    </item>
  </channel>
</rss>

