<?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: Selecting the same value in two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772104#M273982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an alternate state on the General tab of the Document Properties window. Then assign the new alternate state to the straight table on the General tab of its properties window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 08:54:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-03-24T08:54:00Z</dc:date>
    <item>
      <title>Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772099#M273977</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 a list of about 100 values that appear in two fields. I want to be able to select one of those values and sum all Amounts if that value appears in either field. I'd also want to avoid any double-counting (if the value was present in both fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g., the data would look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;Field1&lt;/TD&gt;&lt;TD width="64"&gt;Field2&lt;/TD&gt;&lt;TD width="64"&gt;Amounts&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;SPAN style="color: #ff0000;"&gt;20&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;C&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;SPAN style="color: #ff0000;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;A&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;&lt;SPAN style="color: #ff0000;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;D&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I selected "A", the red amounts would be selected. What kind of expression would I have to write to make this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 17:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772099#M273977</guid>
      <dc:creator />
      <dc:date>2015-03-23T17:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772100#M273978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772100#M273978</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-23T18:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772101#M273979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is awesome! Thank you for introducing me to P() &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;However, one more question - how can I create a list box for those 100 values for users to select, rather than have them search in list boxes for Field1 or Field2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw a solution using "=Field1 &amp;amp; '-' &amp;amp; Field2", but that creates a combination. I would rather the list box was just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;and their selection used your expression across Field1 and Field2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 19:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772101#M273979</guid>
      <dc:creator />
      <dc:date>2015-03-23T19:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772102#M273980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And another one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- sum ONLY when selected values are BOTH in Field1 and Field2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 20:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772102#M273980</guid>
      <dc:creator />
      <dc:date>2015-03-23T20:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772103#M273981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed one problem with your solution - I actually have other fields, and making selections in them seems to affect this expression. How do I prevent that from happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 21:18:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772103#M273981</guid>
      <dc:creator />
      <dc:date>2015-03-23T21:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772104#M273982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an alternate state on the General tab of the Document Properties window. Then assign the new alternate state to the straight table on the General tab of its properties window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772104#M273982</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-24T08:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting the same value in two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772105#M273983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course... thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selecting-the-same-value-in-two-fields/m-p/772105#M273983</guid>
      <dc:creator />
      <dc:date>2015-03-24T13:14:58Z</dc:date>
    </item>
  </channel>
</rss>

