<?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 Excluding fields from a set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excluding-fields-from-a-set-analysis/m-p/1581998#M442969</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a situation where I don't want my set analysis to be affected by user-selections, except by one&amp;nbsp;specific field.&lt;/P&gt;&lt;P&gt;Normally&amp;nbsp;all user selections can be disabled by starting the set-analysis with&amp;nbsp; 1:&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#0000ff"&gt;count&lt;/FONT&gt;({&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;&amp;lt;&lt;FONT color="#800000"&gt;ProcesCode&lt;/FONT&gt;={'ED'}&amp;gt;} &lt;FONT color="#800000"&gt;Score&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;)&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;But now I want to disable all user selections, except the selection on the field [Schoolyear]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;A way to achieve this is the next formula:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#0000ff"&gt;count&lt;/FONT&gt;({1&amp;lt;&lt;FONT color="#800000"&gt;ProcesCode&lt;/FONT&gt;={'ED'}, &lt;FONT color="#800000"&gt;Schoolyear&lt;/FONT&gt;={&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080"&gt;$(=chr(39) &amp;amp; replace(GetFieldSelections(Schoolyear,';'), ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp;chr(39))&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;FONT color="#800000"&gt;Score&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;)&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;This formula retrieves the selected values of the field {Schoolyear], separated by a semicolon (;)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT size="4"&gt;For example&amp;nbsp;16-17;17-18;18-19&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Since [Schoolyear] &amp;nbsp;is a text-field, I replaced&amp;nbsp;all semicolons by single quotes and comma-separators, and place additional leading and trailing single quotes&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;so 16-17;17-18;18-19&amp;nbsp;&amp;nbsp;becomes &amp;nbsp;'16-17', '17-18', '18-19'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;This string can be used in the set-analysis (which does not react on any user selection). Now it only is affected by selection on [Schoolyear]. So, it works! But....... &lt;/FONT&gt;&lt;FONT size="3"&gt;the formula looks &lt;STRONG&gt;really awful &lt;/STRONG&gt;(especially when 2 or more field are to be excluded from the set-analysis). I cannot imagine there's no&amp;nbsp;easier&amp;nbsp;an better&amp;nbsp;way to get&amp;nbsp;the same result.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Can anyone help me please?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:32:14 GMT</pubDate>
    <dc:creator>Frank_the_Qlikker</dc:creator>
    <dc:date>2024-11-16T03:32:14Z</dc:date>
    <item>
      <title>Excluding fields from a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-fields-from-a-set-analysis/m-p/1581998#M442969</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have a situation where I don't want my set analysis to be affected by user-selections, except by one&amp;nbsp;specific field.&lt;/P&gt;&lt;P&gt;Normally&amp;nbsp;all user selections can be disabled by starting the set-analysis with&amp;nbsp; 1:&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#0000ff"&gt;count&lt;/FONT&gt;({&lt;FONT face="arial black,avant garde"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;&amp;lt;&lt;FONT color="#800000"&gt;ProcesCode&lt;/FONT&gt;={'ED'}&amp;gt;} &lt;FONT color="#800000"&gt;Score&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;)&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;But now I want to disable all user selections, except the selection on the field [Schoolyear]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3" color="#000000"&gt;A way to achieve this is the next formula:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;FONT color="#0000ff"&gt;count&lt;/FONT&gt;({1&amp;lt;&lt;FONT color="#800000"&gt;ProcesCode&lt;/FONT&gt;={'ED'}, &lt;FONT color="#800000"&gt;Schoolyear&lt;/FONT&gt;={&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#808080"&gt;$(=chr(39) &amp;amp; replace(GetFieldSelections(Schoolyear,';'), ';', chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp;chr(39))&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;FONT color="#800000"&gt;Score&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;)&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;This formula retrieves the selected values of the field {Schoolyear], separated by a semicolon (;)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT size="4"&gt;For example&amp;nbsp;16-17;17-18;18-19&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Since [Schoolyear] &amp;nbsp;is a text-field, I replaced&amp;nbsp;all semicolons by single quotes and comma-separators, and place additional leading and trailing single quotes&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;so 16-17;17-18;18-19&amp;nbsp;&amp;nbsp;becomes &amp;nbsp;'16-17', '17-18', '18-19'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;This string can be used in the set-analysis (which does not react on any user selection). Now it only is affected by selection on [Schoolyear]. So, it works! But....... &lt;/FONT&gt;&lt;FONT size="3"&gt;the formula looks &lt;STRONG&gt;really awful &lt;/STRONG&gt;(especially when 2 or more field are to be excluded from the set-analysis). I cannot imagine there's no&amp;nbsp;easier&amp;nbsp;an better&amp;nbsp;way to get&amp;nbsp;the same result.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Can anyone help me please?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:32:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-fields-from-a-set-analysis/m-p/1581998#M442969</guid>
      <dc:creator>Frank_the_Qlikker</dc:creator>
      <dc:date>2024-11-16T03:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding fields from a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Excluding-fields-from-a-set-analysis/m-p/1582042#M442975</link>
      <description>you could try it this way:&lt;BR /&gt;&lt;BR /&gt;count({1&amp;lt;ProcesCode={"ED"}, Schoolyear=P(Schoolyear)&amp;gt;} Score)&lt;BR /&gt;</description>
      <pubDate>Mon, 20 May 2019 08:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excluding-fields-from-a-set-analysis/m-p/1582042#M442975</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-05-20T08:47:52Z</dc:date>
    </item>
  </channel>
</rss>

