<?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 with field value equal to field value in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006747#M11656</link>
    <description>&lt;P&gt;Nope.. gives only zeros.. ;/&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2022 14:38:43 GMT</pubDate>
    <dc:creator>justalkak</dc:creator>
    <dc:date>2022-11-20T14:38:43Z</dc:date>
    <item>
      <title>Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2004106#M11613</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Can you suggest how I should build the set analysis function in order to have the same result as I can achieve by function:&lt;/P&gt;
&lt;P&gt;count(if([Hire Date Year Month Num] = YearMonthNum, [Employee ID]))&lt;/P&gt;
&lt;P&gt;so that I can calculate how many employees have the Hire Month equal to particular calendar month?&lt;/P&gt;
&lt;P&gt;I have a trouble with condition field = field.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 13:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2004106#M11613</guid>
      <dc:creator>justalkak</dc:creator>
      <dc:date>2022-11-14T13:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2004115#M11614</link>
      <description>&lt;P&gt;Count({$&amp;lt;[Hire Date Year Month Num]=P(YearMonthNum)&amp;gt;} [Employee ID])&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Count({$&amp;lt;[Hire Date Year Month Num]={"=[Hire Date Year Month Num]=YearMonthNum"}&amp;gt;} [Employee ID])&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 13:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2004115#M11614</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-14T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006642#M11654</link>
      <description>&lt;P&gt;Almost, but not in 100%.&lt;/P&gt;
&lt;P&gt;The first solution&amp;nbsp;&lt;SPAN&gt;Count({$&amp;lt;[Hire Date Year Month Num]=P(YearMonthNum)&amp;gt;} [Employee ID]) calculates well when no dimesions given or when dimension is Hire Date Year Month. However, I need to have a table with YearMonth as a dimension.. How to change that (changing the places of HDYMN with YMN in the formula doesnt help).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The second solution works little bit worse - it calculates only for the latest YM / HDYM.&lt;/P&gt;
&lt;P&gt;Can you please suggest modification?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 21:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006642#M11654</guid>
      <dc:creator>justalkak</dc:creator>
      <dc:date>2022-11-18T21:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006659#M11655</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;
&lt;P&gt;=Count({$&amp;lt;YearMonth = {"=[Hire Date Year Month Num]=P(YearMonthNum)"}&amp;gt;}[Employee ID])&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 01:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006659#M11655</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-19T01:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006747#M11656</link>
      <description>&lt;P&gt;Nope.. gives only zeros.. ;/&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 14:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006747#M11656</guid>
      <dc:creator>justalkak</dc:creator>
      <dc:date>2022-11-20T14:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006748#M11657</link>
      <description>&lt;P&gt;Count(Aggr(Count({$&amp;lt;[Hire Date Year Month Num]=P(YearMonthNum)&amp;gt;} [Employee ID]),YearMonth))&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 15:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2006748#M11657</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-20T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis with field value equal to field value</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2007004#M11665</link>
      <description>&lt;P&gt;It couldn't be solved with a "classical" set analysis because set analysis worked like a selection on a column-level and not on a row-level. Of course, there are ways to transfer this logic into a set analysis syntax but it will remain an if-loop.&lt;/P&gt;
&lt;P&gt;Therefore, I suggest remaining by an if-loop whereby it could be optimized by moving the condition to the outside, like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if([Hire Date Year Month Num] = YearMonthNum, count([Employee ID]))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Set-analysis-with-field-value-equal-to-field-value/m-p/2007004#M11665</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-21T12:30:46Z</dc:date>
    </item>
  </channel>
</rss>

