<?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: Need help in plotting bar chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458677#M1166300</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;It seems, your expression isn't fully correct as you haven't used aggr().&lt;/P&gt;&lt;P&gt;It could be match easier to use class() function for this, as you have equal size baskets.&lt;/P&gt;&lt;P&gt;(class() as dimension and simple count() as expression)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2012 12:21:10 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-10-02T12:21:10Z</dc:date>
    <item>
      <title>Need help in plotting bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458676#M1166299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, I have a issue on qlikview. I'm still new about this software so go easy on me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my problem, I have a bar chart with severeal time bucket as dimension. The code I use is as followed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Time(MakeTime(left(TimeStart,2),Right(TimeStart,2)),'hh:mm')&amp;nbsp;&amp;nbsp; -----&amp;gt; where TimeStart is 03:00, 03:10, 03:20 . . . . 07:10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my expression is as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count (&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('03:00','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('03:10','hh:mm'),'03:00',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('03:10','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('03:20','hh:mm'),'03:10',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('03:20','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('03:30','hh:mm'),'03:20',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('03:30','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('03:40','hh:mm'),'03:30',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('03:40','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('03:50','hh:mm'),'03:40',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('03:50','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('04:00','hh:mm'),'03:50',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('04:00','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('04:10','hh:mm'),'04:00',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('04:10','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('04:20','hh:mm'),'04:10',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('04:20','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('04:30','hh:mm'),'04:20',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('04:30','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('04:40','hh:mm'),'04:30',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('04:40','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('04:50','hh:mm'),'04:40',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('04:50','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('05:00','hh:mm'),'04:50',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('05:00','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('05:10','hh:mm'),'05:00',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('05:10','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('05:20','hh:mm'),'05:10',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('05:20','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('05:30','hh:mm'),'05:20',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('05:30','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('05:40','hh:mm'),'05:30',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('05:40','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('05:50','hh:mm'),'05:40',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('05:50','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('06:00','hh:mm'),'05:50',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('06:00','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('06:10','hh:mm'),'06:00',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('06:10','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('06:20','hh:mm'),'06:10',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('06:20','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('06:30','hh:mm'),'06:20',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('06:30','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('06:40','hh:mm'),'06:30',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('06:40','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('06:50','hh:mm'),'06:40',&lt;/P&gt;&lt;P&gt;if([DISPT_DT] &amp;gt;= Timestamp#('06:50','hh:mm') and [DISPT_DT]&amp;lt;= Timestamp#('07:00','hh:mm'),'06:50',&lt;/P&gt;&lt;P&gt;)))))))))))))))))))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------&amp;gt; where DISPT_DT is the time I want to process. E.g. 03:42am will fall into the '03:40' bucket and count increase by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is I am getting this graph instead. The image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 01:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458676#M1166299</guid>
      <dc:creator />
      <dc:date>2012-10-02T01:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in plotting bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458677#M1166300</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;It seems, your expression isn't fully correct as you haven't used aggr().&lt;/P&gt;&lt;P&gt;It could be match easier to use class() function for this, as you have equal size baskets.&lt;/P&gt;&lt;P&gt;(class() as dimension and simple count() as expression)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 12:21:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458677#M1166300</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-02T12:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in plotting bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458678#M1166301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually I tried doing class, aggr, count, if-else loop, valuelist, etc&lt;/P&gt;&lt;P&gt;all doesn't seems to work, definitely I'm missing out something but I can't spot it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply. Could you demo a small example for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) What to put in dimension?&lt;/P&gt;&lt;P&gt;2) What to put in expression?&lt;/P&gt;&lt;P&gt;3) any things to load script?&lt;/P&gt;&lt;P&gt;these three should be the key part i think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any printscreen will be super helpful to me. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually there is this other post that have my qvw and excel file&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/265170#265170" title="http://community.qlik.com/message/265170#265170"&gt;http://community.qlik.com/message/265170#265170&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can download it to see if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 14:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458678#M1166301</guid>
      <dc:creator />
      <dc:date>2012-10-02T14:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in plotting bar chart</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458679#M1166302</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;Seems you oversimplified your problem here, as:&lt;/P&gt;&lt;P&gt;First, you have more than one 'time' field to classify.&lt;/P&gt;&lt;P&gt;Second, you want to see empty baskets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I suggest you use =time(subfield(class(DISPT_DT, 1/24/6), ' ', 1), 'hh:mm') as dimension and just =Count (DISPT_DT) it will not sutisfy you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Jonathan and gwassenaar mentioned, you should use intervalmatch first.&lt;/P&gt;&lt;P&gt;You've done a half of step - created Time field. Look at help (intervalmatch), its a Start field, now create corresponding End field and use&amp;nbsp; intervalmatch to build a connection between your tables.&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; left: -10000px; top: 1920px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2012 15:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-plotting-bar-chart/m-p/458679#M1166302</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-10-02T15:27:50Z</dc:date>
    </item>
  </channel>
</rss>

