<?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: Set Analysis Restrict selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925674#M76191</link>
    <description>&lt;P&gt;&lt;STRONG&gt;As below&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Count(Distinct {&amp;lt;CompanyCode=&lt;STRONG&gt;p(&lt;/STRONG&gt;CompanyCode&lt;STRONG&gt;)&lt;/STRONG&gt; &amp;gt;} [XMETXT])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But even without this, this is default Qlik behavior to only show associated data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you select CompanyCode = BUKR, you will automatically be only counting any XMETXT values associated to companycode =BUKR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count(&amp;nbsp;[XMETXT]) will give you same result&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 13:24:36 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2022-05-03T13:24:36Z</dc:date>
    <item>
      <title>Set Analysis Restrict selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925507#M76169</link>
      <description>&lt;P&gt;Hi. I would like to count the total number of values from a field XMETXT, but at the same time consider the selection (in this case company code = Bukr). &lt;BR /&gt;So don't count over ALL values, but only the number of all values in a company code (even if further selections are added).&lt;BR /&gt;I tried it like this:&lt;BR /&gt;Count(Distinct {1} [XMETXT]) --&amp;gt; Then ALL is counted.&lt;/P&gt;
&lt;P&gt;But I would like to have something like this, i.e. only the values from the company code that was selected.&lt;BR /&gt;Count(Distinct {1&amp;lt;Bukr={}&amp;gt;}Bukr} [XMETXT])&lt;/P&gt;
&lt;P&gt;If no Bukr is given, the selection should then show EVERYTHING.&lt;/P&gt;
&lt;P&gt;Is that understandable??!! I hope so!!!&lt;/P&gt;
&lt;P&gt;Thank you!!!&lt;/P&gt;
&lt;P&gt;Translated with &lt;A href="http://www.DeepL.com/Translator" target="_blank"&gt;www.DeepL.com/Translator&lt;/A&gt; (free version)&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 09:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925507#M76169</guid>
      <dc:creator>sroettger</dc:creator>
      <dc:date>2022-05-03T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Restrict selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925547#M76173</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22743"&gt;@sroettger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try below expression .&lt;/P&gt;
&lt;P&gt;count(distinct {1&amp;lt;$(=if(len('$(=GetFieldSelections(&lt;STRONG&gt;company_code&lt;/STRONG&gt;))')&amp;gt;1,'&lt;STRONG&gt;company_code&lt;/STRONG&gt;','&lt;STRONG&gt;company_code1&lt;/STRONG&gt;'))={'&lt;SPAN&gt;Bukr&lt;/SPAN&gt;'}&amp;gt;}&lt;SPAN&gt;XMETXT&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 10:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925547#M76173</guid>
      <dc:creator>durgesh22</dc:creator>
      <dc:date>2022-05-03T10:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Restrict selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925649#M76187</link>
      <description>&lt;P&gt;Thank you very much. I'll try it another way - step by step.&lt;BR /&gt;This code takes the BUKRS &lt;STRONG&gt;0381&lt;/STRONG&gt; and counts up:&lt;BR /&gt;Count({$&amp;lt;[BUKRS]={'&lt;STRONG&gt;0381&lt;/STRONG&gt;'}&amp;gt;}[XMETXT])&lt;/P&gt;
&lt;P&gt;Now I want to take any value from the BUKRS field (instead of 0381), e.g. 0382, 0441, etc.&lt;/P&gt;
&lt;P&gt;This code goes in the right direction - but does not work.&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;[BUKRS]={'$(=GetFieldSelections([BUKRS]))')}&amp;gt;}[XMETXT])&lt;/P&gt;
&lt;P&gt;Where is the error?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 12:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925649#M76187</guid>
      <dc:creator>sroettger</dc:creator>
      <dc:date>2022-05-03T12:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Restrict selection</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925674#M76191</link>
      <description>&lt;P&gt;&lt;STRONG&gt;As below&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=Count(Distinct {&amp;lt;CompanyCode=&lt;STRONG&gt;p(&lt;/STRONG&gt;CompanyCode&lt;STRONG&gt;)&lt;/STRONG&gt; &amp;gt;} [XMETXT])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But even without this, this is default Qlik behavior to only show associated data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you select CompanyCode = BUKR, you will automatically be only counting any XMETXT values associated to companycode =BUKR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=count(&amp;nbsp;[XMETXT]) will give you same result&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 13:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Restrict-selection/m-p/1925674#M76191</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-05-03T13:24:36Z</dc:date>
    </item>
  </channel>
</rss>

