<?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 field value based on other selection field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811770#M66207</link>
    <description>&lt;P&gt;You can use the element function P() to accomplish what you are looking for in your second measure.&amp;nbsp; In your set analysis,&lt;/P&gt;&lt;P&gt;{$&amp;lt;[Client]=,[BusinessSector]=P([BusinessSector])&amp;gt;}&lt;/P&gt;&lt;P&gt;[Client]= will cause the measure expression to ignore the selection in the [Client] field.&amp;nbsp;&amp;nbsp;P([BusinessSector]) returns the possible values for&amp;nbsp;[BusinessSector].&amp;nbsp; The P function doesn't ignore the selection in [Client], so it will return the [BusinessSector] for the client selected.&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 12:22:26 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2021-05-31T12:22:26Z</dc:date>
    <item>
      <title>Selecting field value based on other selection field</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811767#M66205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to make a bar chart where I compare two measures. One that is strictly dependent of the selector while the other one is only indirectly dependent of the selector.&lt;/P&gt;&lt;P&gt;Concretely, I have a selector where I can select a client. The first measure calculates the average of some field for the given selection. What I want to do in the second measure is to ignore the customer selection but instead filter based on the business sector of the customer selected.&lt;/P&gt;&lt;P&gt;My question: how can I, in the set analysis, express that I want to select the business sector of the customer that was selected with the selector without selecting the customer himself?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how I can do this? Much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 12:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811767#M66205</guid>
      <dc:creator>confused-pandas</dc:creator>
      <dc:date>2021-05-31T12:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting field value based on other selection field</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811769#M66206</link>
      <description>&lt;P&gt;I might have found the solution. For anyone interested&amp;nbsp;&lt;/P&gt;&lt;P&gt;=avg({&amp;lt;&lt;STRONG&gt;CustomerName=&lt;/STRONG&gt;, CustomerIndustry = &lt;STRONG&gt;{`$(=ONLY({&amp;lt;CustomerName = {"$(=GetFieldSelections(CustomerName))"}&amp;gt;} CustomerIndustry ))`}&lt;/STRONG&gt;&amp;gt;} YourMeasure)&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;"CustomerName=" &lt;/STRONG&gt;part ignores the selection&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;The &lt;STRONG&gt;{`$(=ONLY({&amp;lt;CustomerName = {"$(=GetFieldSelections(CustomerName))"}&amp;gt;} CustomerIndustry ))`}&lt;/STRONG&gt; part get the industry of the selected customer&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 12:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811769#M66206</guid>
      <dc:creator>confused-pandas</dc:creator>
      <dc:date>2021-05-31T12:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting field value based on other selection field</title>
      <link>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811770#M66207</link>
      <description>&lt;P&gt;You can use the element function P() to accomplish what you are looking for in your second measure.&amp;nbsp; In your set analysis,&lt;/P&gt;&lt;P&gt;{$&amp;lt;[Client]=,[BusinessSector]=P([BusinessSector])&amp;gt;}&lt;/P&gt;&lt;P&gt;[Client]= will cause the measure expression to ignore the selection in the [Client] field.&amp;nbsp;&amp;nbsp;P([BusinessSector]) returns the possible values for&amp;nbsp;[BusinessSector].&amp;nbsp; The P function doesn't ignore the selection in [Client], so it will return the [BusinessSector] for the client selected.&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 12:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Selecting-field-value-based-on-other-selection-field/m-p/1811770#M66207</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-05-31T12:22:26Z</dc:date>
    </item>
  </channel>
</rss>

