<?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 - Exclude Values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964652#M79517</link>
    <description>&lt;P&gt;It's not a matter of the operators else how the data are stored and how the data-model is designed and in which dimensional context the query should happens - if and how you could apply AND conditions between the values of a single field. The reason is quite often that the field within the queried context has usually only a single value and therefore each AND comparison must fail. But often it could be bypassed with another approach.&lt;/P&gt;
&lt;P&gt;So you may try:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count({&amp;lt; Question = {'a', 'b'}, Response = {'x', 'y'}&amp;gt;} Response) * &lt;BR /&gt;-(count({&amp;lt; Question = {'a', 'b'}, Response = {'x','y'}&amp;gt; distinct&amp;nbsp;Response)=2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;which tries to outsource the condition within an extra calculation for a boolean check.&lt;/P&gt;
&lt;P&gt;Another method would include an aggregation of responses, like:&lt;/P&gt;
&lt;P&gt;if(concat(&lt;SPAN&gt;{&amp;lt; Question = {'a', 'b'}, Response = {'x', 'y'}&amp;gt;} distinct Response, '|') = 'x|y', &lt;BR /&gt;count(count({&amp;lt; Question = {'a', 'b'}&amp;gt;} Response))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which merged the multiple responses into a single string which is then evaluated. Depending on the field-values from Response it could be difficult to determine the sorting and therefore the output-string and then you may need wildmatch() to search for your wanted values. Further this logic might be need to be wrapped with an aggr() to consider the appropriate dimensional context (usually if the calculation needs to be done against different dimensions as a re used within the chart).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside this I suggest to consider to replace the string-values with numbers which could simplify such expression and depending on the scenario you may be also able to sum() the responses or finding the min/max value of them if there is any hierarchy included.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 13:14:49 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-08-04T13:14:49Z</dc:date>
    <item>
      <title>Set Analysis - Exclude Values</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964184#M79475</link>
      <description>&lt;P&gt;I am trying to use set analysis to reach a subset of data. The subset of 1 to 2 with banks = 52. The subset of cash position with extremely easy = 27. I need to further dig down and have the subset of extremely easy AND 1 to 2. In this example the data should export 6. Instead of getting 6 Qlik is adding 52 and 27 and giving me the combined total of 79. Any help is appreciated. Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ccifaldi_0-1659537858515.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85859i129510B058D8CE11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ccifaldi_0-1659537858515.png" alt="ccifaldi_0-1659537858515.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964184#M79475</guid>
      <dc:creator>ccifaldi</dc:creator>
      <dc:date>2022-08-03T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude Values</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964584#M79511</link>
      <description>&lt;P&gt;You may try something like this:&lt;/P&gt;
&lt;P&gt;count({&amp;lt; Question = {'a', 'b'}, Response = {'x'}&amp;gt; *&amp;nbsp;&amp;lt; Question = {'a', 'b'}, Response = {'y'}&amp;gt;} Response)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964584#M79511</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-08-04T10:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude Values</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964638#M79516</link>
      <description>&lt;P&gt;Unfortunately this yields a result of 0 rather than 6, but it is closer than 79! Thank you for your help. Do you know of any other operators that may help with this other than E() and *?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 12:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964638#M79516</guid>
      <dc:creator>ccifaldi</dc:creator>
      <dc:date>2022-08-04T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude Values</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964652#M79517</link>
      <description>&lt;P&gt;It's not a matter of the operators else how the data are stored and how the data-model is designed and in which dimensional context the query should happens - if and how you could apply AND conditions between the values of a single field. The reason is quite often that the field within the queried context has usually only a single value and therefore each AND comparison must fail. But often it could be bypassed with another approach.&lt;/P&gt;
&lt;P&gt;So you may try:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count({&amp;lt; Question = {'a', 'b'}, Response = {'x', 'y'}&amp;gt;} Response) * &lt;BR /&gt;-(count({&amp;lt; Question = {'a', 'b'}, Response = {'x','y'}&amp;gt; distinct&amp;nbsp;Response)=2)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;which tries to outsource the condition within an extra calculation for a boolean check.&lt;/P&gt;
&lt;P&gt;Another method would include an aggregation of responses, like:&lt;/P&gt;
&lt;P&gt;if(concat(&lt;SPAN&gt;{&amp;lt; Question = {'a', 'b'}, Response = {'x', 'y'}&amp;gt;} distinct Response, '|') = 'x|y', &lt;BR /&gt;count(count({&amp;lt; Question = {'a', 'b'}&amp;gt;} Response))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;which merged the multiple responses into a single string which is then evaluated. Depending on the field-values from Response it could be difficult to determine the sorting and therefore the output-string and then you may need wildmatch() to search for your wanted values. Further this logic might be need to be wrapped with an aggr() to consider the appropriate dimensional context (usually if the calculation needs to be done against different dimensions as a re used within the chart).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beside this I suggest to consider to replace the string-values with numbers which could simplify such expression and depending on the scenario you may be also able to sum() the responses or finding the min/max value of them if there is any hierarchy included.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 13:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1964652#M79517</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-08-04T13:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Exclude Values</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1967215#M79723</link>
      <description>&lt;P&gt;For posterity, replacing string-values with numbers did the trick. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 15:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-Exclude-Values/m-p/1967215#M79723</guid>
      <dc:creator>ccifaldi</dc:creator>
      <dc:date>2022-08-10T15:28:47Z</dc:date>
    </item>
  </channel>
</rss>

