<?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 and group in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137136#M9629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! It would be best if you provided some sample data file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say your data has three fields - Department, Name, Gender - then the front end expression would be, e.g. Count({&amp;lt;Gender={'Male'}&amp;gt;}Name) to find the male employees.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2018 13:35:52 GMT</pubDate>
    <dc:creator>Ivan_Bozov</dc:creator>
    <dc:date>2018-09-19T13:35:52Z</dc:date>
    <item>
      <title>Count and group</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137134#M9627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HIhi,&lt;/P&gt;&lt;P&gt;I have migrated from a hardcore SQL developer to a QLIK user.&lt;/P&gt;&lt;P&gt;I have a set of data where i have different group of department and the list of people working in the department.&lt;/P&gt;&lt;P&gt;I have to find the number of male and female working for each department.&lt;/P&gt;&lt;P&gt;May i know how to set the condition in qlik sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreaicate your help - thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 09:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137134#M9627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count and group</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137135#M9628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a chart, you can do the following:&lt;/P&gt;&lt;P&gt;count(Person_Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And put as dimension, the department and male/female field.&lt;/P&gt;&lt;P&gt;This will give you a chart as you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't know how your data is organised, but that would be a way to do it simply.&lt;/P&gt;&lt;P&gt;Can you share how your data is set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say as an example you have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1537360807283923 jive_text_macro" jivemacro_uid="_1537360807283923"&gt;
&lt;P&gt;Department:&lt;/P&gt;
&lt;P&gt;load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Department,EmployeeId&lt;/P&gt;
&lt;P&gt;A1,1&lt;/P&gt;
&lt;P&gt;A1,2&lt;/P&gt;
&lt;P&gt;A2,3&lt;/P&gt;
&lt;P&gt;A3,4&lt;/P&gt;
&lt;P&gt;A3,5&lt;/P&gt;
&lt;P&gt;A3,6&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Employees:&lt;/P&gt;
&lt;P&gt;load * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;EmployeeId,Sex&lt;/P&gt;
&lt;P&gt;1,M&lt;/P&gt;
&lt;P&gt;2,M&lt;/P&gt;
&lt;P&gt;3,F&lt;/P&gt;
&lt;P&gt;4,F&lt;/P&gt;
&lt;P&gt;5,F&lt;/P&gt;
&lt;P&gt;6,M&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the expression count(EmployeeId) you can get a graph like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sample.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213941_sample.png" style="height: 496px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Giving me the count of male/female employees by deparment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 12:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137135#M9628</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-09-19T12:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count and group</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137136#M9629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! It would be best if you provided some sample data file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say your data has three fields - Department, Name, Gender - then the front end expression would be, e.g. Count({&amp;lt;Gender={'Male'}&amp;gt;}Name) to find the male employees.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 13:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137136#M9629</guid>
      <dc:creator>Ivan_Bozov</dc:creator>
      <dc:date>2018-09-19T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count and group</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137137#M9630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI guys,&lt;/P&gt;&lt;P&gt;my data is something like that&lt;/P&gt;&lt;P&gt;Department |&amp;nbsp; Gender &lt;/P&gt;&lt;P&gt;Finance |&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Finance |&amp;nbsp; M&lt;/P&gt;&lt;P&gt;Sales | F&lt;/P&gt;&lt;P&gt;Sales | M&lt;/P&gt;&lt;P&gt;Operation | F&lt;/P&gt;&lt;P&gt;Operation | M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intended result should be&lt;/P&gt;&lt;P&gt;Department | M |F&lt;/P&gt;&lt;P&gt;Finance |2|0&lt;/P&gt;&lt;P&gt;Sales|1|1&lt;/P&gt;&lt;P&gt;Operations|1|1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope u get it - thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 03:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137137#M9630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-20T03:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Count and group</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137138#M9631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Teo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just do the following:&lt;/P&gt;&lt;P&gt;1. Create a chart (simple table)&lt;/P&gt;&lt;P&gt;2. Add the Department as dimension&lt;/P&gt;&lt;P&gt;3. adds two expression&lt;/P&gt;&lt;P&gt;4. First expression: count({&lt;STRONG&gt;&amp;lt;Gender={"M"}&amp;gt;}&lt;/STRONG&gt;Gender)&lt;/P&gt;&lt;P&gt;5. Second expression: &lt;SPAN style="font-size: 13.3333px;"&gt;First expression: count(&lt;STRONG&gt;{&amp;lt;Gender={"F"}&amp;gt;}&lt;/STRONG&gt;Gender)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Bolded part is what we call set analysis, so even if you select M/F on the field it will still calculate the same value.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;This will give you the desired result.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137138#M9631</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-09-20T15:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count and group</title>
      <link>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137139#M9632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can create bar chart including two dimensions "Department" and "Gender" and one measure count(Gender) or you can use a pivot table and put in Department in rows, Gender in columns as dimensions and count(Gender) as a measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-and-group/m-p/137139#M9632</guid>
      <dc:creator>jacek_stypulkow</dc:creator>
      <dc:date>2018-09-20T16:32:02Z</dc:date>
    </item>
  </channel>
</rss>

