<?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 bars on a bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683597#M247819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the =GetCurrentField(MyDateGroup) to obtain the current level in the group and use an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: v_current_date "=GetCurrentField(MyDateGroep)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use an expression with an IF statement to get the right calculation depending on the selected level:&lt;/P&gt;&lt;P&gt;if(v_current_date='Month',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT Month)&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(v_current_date='Week', &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT Week)&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT Day)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2014 07:58:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-15T07:58:48Z</dc:date>
    <item>
      <title>count bars on a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683593#M247815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to know how many charts there are in a barchart:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="jaar.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64462_jaar.png" style="width: 620px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;This chart should give the amount of 12 because there are 12 months shown.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="weeknummers.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/64461_weeknummers.png" style="width: 620px; height: 184px;" /&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Here it should give 5 because there are 5 weeknumbers shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Why do i want to know this? the red line ("gemiddelde"= average) doesn't work properly. in the top chart it does work because i count all the consults and divide them through 12. in the second chart he should count all de consults but divide them through 5. Problem is that he still divides through 12.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683593#M247815</guid>
      <dc:creator />
      <dc:date>2014-08-14T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: count bars on a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683594#M247816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;COUNT(DISTINCT Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 15:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683594#M247816</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-08-14T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: count bars on a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683595#M247817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!! so easy... didn't think about that :$&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 07:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683595#M247817</guid>
      <dc:creator />
      <dc:date>2014-08-15T07:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: count bars on a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683596#M247818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem i have right now is that it aren't all months. It's a drilldown group with months, weeks, days, etc in it. Is there a way where i can =count(DISTINCT GetCurrentField(Tijd))&lt;/P&gt;&lt;P&gt;Because this doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 07:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683596#M247818</guid>
      <dc:creator />
      <dc:date>2014-08-15T07:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: count bars on a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683597#M247819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the =GetCurrentField(MyDateGroup) to obtain the current level in the group and use an expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: v_current_date "=GetCurrentField(MyDateGroep)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use an expression with an IF statement to get the right calculation depending on the selected level:&lt;/P&gt;&lt;P&gt;if(v_current_date='Month',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT Month)&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(v_current_date='Week', &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT Week)&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT(DISTINCT Day)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 07:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683597#M247819</guid>
      <dc:creator />
      <dc:date>2014-08-15T07:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: count bars on a bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683598#M247820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=COUNT(DISTINCT $(=GetCurrentField([Group Name])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 08:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/count-bars-on-a-bar-chart/m-p/683598#M247820</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-08-15T08:07:57Z</dc:date>
    </item>
  </channel>
</rss>

