<?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 records based on column value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388552#M144998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dint understand how to use two expressions for BAR and LINE charts seperately ?&lt;/P&gt;&lt;P&gt; Can you please let me know how to do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 06:40:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-10T06:40:27Z</dc:date>
    <item>
      <title>Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388548#M144994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As i'm new to qlikview, i would want to know how to achieve the below scenario in QlikView. &lt;/P&gt;&lt;P&gt;I have a file with 5 columns namely ID, Name, Gender, Year and Promotion, See the attached file &lt;/P&gt;&lt;P&gt;Now in the chart i need to display the count of ID's both Genderwise and Promotionwise per year. Please note that Gender has two values M and F while Promotion has Y and N respectively. To be precise i need to get the count of both male and female ID's for each year, at the same time i need to get the count of the ID's who have got promotion.&lt;/P&gt;&lt;P&gt;I used the below code in the CHART expression :&lt;/P&gt;&lt;P&gt;=count(distinct if( Gender='M', ID) ) &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp; for Gender&lt;/P&gt;&lt;P&gt;=count(distinct if( Promotion='Y' , ID) )&amp;nbsp; &amp;gt;&amp;gt;&amp;gt;&amp;gt; for Promotion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the COMBO chart for the same, where Gender is represented in Bar while Promotion Count in Line. But the problem is that, I'm getting the total count(both male and female) for each year instead of the data appearing to be in a stacked format. ( See the snapshot below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg: If I have 5 records for the year 2010 out of which 3 are M(Male) while the rest are F. In this case while representing in chart, i need to get the data in a stacked format which differentiates the count between male and female for each year respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please assist&amp;nbsp; me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;surman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 22:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388548#M144994</guid>
      <dc:creator />
      <dc:date>2012-09-07T22:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388549#M144995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached file, hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Sep 2012 05:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388549#M144995</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-09-08T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388550#M144996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;As i'm using a personal edition, i'm not able to open the document sent by you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 15:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388550#M144996</guid>
      <dc:creator />
      <dc:date>2012-09-09T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388551#M144997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make a&amp;nbsp; stacked bar on combo chart you have to use two expressions for bars:&lt;/P&gt;&lt;P&gt;=count(distinct if( Gender='M', ID) ) &lt;/P&gt;&lt;P&gt;=count(distinct if( Gender='F', ID) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Promotion you should check two conditions:&lt;/P&gt;&lt;P&gt;=count(distinct if( Promotion='Y' and Gender='M' , ID) )&lt;/P&gt;&lt;P&gt;=count(distinct if( Promotion='Y' and Gender='F' , ID) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 17:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388551#M144997</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-09T17:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388552#M144998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dint understand how to use two expressions for BAR and LINE charts seperately ?&lt;/P&gt;&lt;P&gt; Can you please let me know how to do this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388552#M144998</guid>
      <dc:creator />
      <dc:date>2012-09-10T06:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388553#M144999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dint understand how to use two expressions for BAR and LINE charts seperately ?&lt;/P&gt;&lt;P&gt; Can you please let me know how to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;surman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388553#M144999</guid>
      <dc:creator />
      <dc:date>2012-09-10T06:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388554#M145000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dint understand how to use two expressions on BAR&amp;nbsp; and Line Charts seperately ? Can you please let me know how to do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;surman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 06:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388554#M145000</guid>
      <dc:creator />
      <dc:date>2012-09-10T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388555#M145001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dint understand how to use two expressions on BAR&amp;nbsp; and Line Charts seperately ? Can you please let me know how to do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;surman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 07:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388555#M145001</guid>
      <dc:creator />
      <dc:date>2012-09-10T07:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388556#M145002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dint understand how to use two expressions on BAR&amp;nbsp; and Line Charts seperately ? Can you please let me know how to do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;surman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 07:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388556#M145002</guid>
      <dc:creator />
      <dc:date>2012-09-10T07:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Count the records based on column value</title>
      <link>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388557#M145003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create 4 expressions as I've&amp;nbsp; mentioned above.&lt;/P&gt;&lt;P&gt;When you select expression you can toggle checkboxes 'Bar', 'Symbol','Line'.&lt;/P&gt;&lt;P&gt;Toggle appropriate for each expression.&lt;/P&gt;&lt;P&gt;Then select 'Stacked' style on presentation tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 07:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-the-records-based-on-column-value/m-p/388557#M145003</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-10T07:46:16Z</dc:date>
    </item>
  </channel>
</rss>

