<?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: Count the outcome by comparing 3 column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484829#M101567</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155606"&gt;@QlikSenseBeginner&lt;/a&gt;&amp;nbsp; to use set analysis, you will need PrimaryKey in your table. If you don't have you can create it using RowNo() as use below set analysis&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load *,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RowNo() as Row&lt;BR /&gt;FROM table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where Row is primary key of the table. If you already have it, you can utilise it.&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Row&lt;/STRONG&gt;&lt;/FONT&gt;= {"=[INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED]"}, [OFFERED POSITION]={'YES'}&amp;gt;}Metrics)&lt;/P&gt;
&lt;P&gt;If you don't have primary key and you don't want to create it using load script, you can use if condition expression as below&lt;/P&gt;
&lt;P&gt;=count(if([INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED] and [OFFERED POSITION]='YES', Row))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 08:34:17 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-10-02T08:34:17Z</dc:date>
    <item>
      <title>Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484811#M101566</link>
      <description>&lt;P&gt;Hi Qlik Community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need your help with the Set Analysis.&lt;/P&gt;
&lt;P&gt;The following is a sample excel data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="1011"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="209"&gt;INTERNSHIP COMPANY CLEANED&lt;/TD&gt;
&lt;TD width="167"&gt;TOP EMPLOYERS CLEANED&lt;/TD&gt;
&lt;TD width="635"&gt;Were you offered a position by the company you were attached to for your internship or work attachment&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;Yes. I am currently working in the company that I was attached to&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;TD&gt;Yes. I am currently working in the company that I was attached to&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;C&lt;/TD&gt;
&lt;TD&gt;Yes. I am currently working in the company that I was attached to&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;D&lt;/TD&gt;
&lt;TD&gt;Yes. I am currently working in the company that I was attached to&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;EE&lt;/TD&gt;
&lt;TD&gt;EE&lt;/TD&gt;
&lt;TD&gt;No. I was not offered a position and my internship(s) / work attachment(s) / work study scheme(s) did not help me obtain a job in other ways&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;FF&lt;/TD&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;TD&gt;No. I was not offered a position, but the internship(s) / work attachment(s) / work study scheme(s) has helped me obtain a job in other ways&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;GGG&lt;/TD&gt;
&lt;TD&gt;GGG&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Yes. I am currently working in the company that I was attached to&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I would like to count the number of cases where column 1 = column 2 = column 3 'Yes. I am currently working in the company that I was attached to'.&amp;nbsp; Which i can tell from the table that the count should be 2. &lt;BR /&gt;&lt;BR /&gt;What would be the set analysis that i should have? I have a slight idea what i wanted but i need some help.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;count({$&amp;lt;[INTERNSHIP COMPANY CLEANED]={[XXX]},TOP EMPLOYERS CLEANED={[XXX]},[OFFERED POSITION]={[Yes. I am currently working in the company that I was attached to]}&amp;gt;} [Were you offered a position by the company you were attached to for your internship or work attachment])&lt;/P&gt;
&lt;P&gt;Matric is a unique ID.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can the XXX be left as wild card?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 16:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484811#M101566</guid>
      <dc:creator>QlikSenseBeginner</dc:creator>
      <dc:date>2024-11-16T16:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484829#M101567</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155606"&gt;@QlikSenseBeginner&lt;/a&gt;&amp;nbsp; to use set analysis, you will need PrimaryKey in your table. If you don't have you can create it using RowNo() as use below set analysis&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load *,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RowNo() as Row&lt;BR /&gt;FROM table;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where Row is primary key of the table. If you already have it, you can utilise it.&lt;/P&gt;
&lt;P&gt;=Count({&amp;lt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Row&lt;/STRONG&gt;&lt;/FONT&gt;= {"=[INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED]"}, [OFFERED POSITION]={'YES'}&amp;gt;}Metrics)&lt;/P&gt;
&lt;P&gt;If you don't have primary key and you don't want to create it using load script, you can use if condition expression as below&lt;/P&gt;
&lt;P&gt;=count(if([INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED] and [OFFERED POSITION]='YES', Row))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:34:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484829#M101567</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-02T08:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484832#M101568</link>
      <description>&lt;P&gt;This part seems interesting&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;count(if([INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED] and [OFFERED POSITION]='YES', Row))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;If i do not need the ROW is there another way to write this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484832#M101568</guid>
      <dc:creator>QlikSenseBeginner</dc:creator>
      <dc:date>2024-10-02T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484833#M101569</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155606"&gt;@QlikSenseBeginner&lt;/a&gt;&amp;nbsp; Yes with if you don't need Row as it will perform row by row operation.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count(if([INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED] and [OFFERED POSITION]='YES', &lt;STRONG&gt;Merics&lt;/STRONG&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484833#M101569</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-02T08:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484835#M101570</link>
      <description>&lt;P&gt;Thanks, it says error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF takes 2-3 parameters.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;count(if([INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED] and [OFFERED POSITION]='YES',&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Matric&lt;/STRONG&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484835#M101570</guid>
      <dc:creator>QlikSenseBeginner</dc:creator>
      <dc:date>2024-10-02T08:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484836#M101571</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155606"&gt;@QlikSenseBeginner&lt;/a&gt;&amp;nbsp; Id your Meric is other expression? you need to use the field which you want to count.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2484836#M101571</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-02T08:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2485044#M101572</link>
      <description>&lt;P&gt;I have revised the table a little.&amp;nbsp; Hopefully it brings some light to the reader.&amp;nbsp; Only when the following met it will be counted as 1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE width="1011"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="209"&gt;INTERNSHIP COMPANY CLEANED&lt;/TD&gt;
&lt;TD width="167"&gt;TOP EMPLOYERS CLEANED&lt;/TD&gt;
&lt;TD width="635"&gt;Were you offered a position by the company you were attached to for your internship or work attachment&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Yes. I am currently working in the company that I was attached to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 03 Oct 2024 07:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2485044#M101572</guid>
      <dc:creator>QlikSenseBeginner</dc:creator>
      <dc:date>2024-10-03T07:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count the outcome by comparing 3 column</title>
      <link>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2485066#M101573</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155606"&gt;@QlikSenseBeginner&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;count(if([INTERNSHIP COMPANY CLEANED]=[TOP EMPLOYERS CLEANED] and [OFFERED POSITION] like 'Yes*',[INTERNSHIP COMPANY CLEANED]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 08:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-the-outcome-by-comparing-3-column/m-p/2485066#M101573</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-10-03T08:29:33Z</dc:date>
    </item>
  </channel>
</rss>

