<?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: Strange Chart for Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421969#M486937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now when you say it I realise that you found the problem! Question now is how do I slove this kind of problem? Can I somehow use "distinct" or somthing similar for Expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 10:47:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-08T10:47:35Z</dc:date>
    <item>
      <title>Strange Chart for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421967#M486935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have one listBox for startTimes and one listBox for endTimes in the format: "yyyymmddTHHmmss".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the "mid()" Expression function to only retrieve the hours, "HH" from this string and show the total hours in a Chart.&lt;/P&gt;&lt;P&gt;But it seems like I do something wrong because the result of the chart should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13627382175016315" jivemacro_uid="_13627382175016315"&gt;&lt;P&gt;15-13 + 15-13 = 4&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But of some reason it shows the result as 48. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached the listboxes and chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421967#M486935</guid>
      <dc:creator />
      <dc:date>2013-03-08T10:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Chart for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421968#M486936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is you have more than one record with the same begin and end date. The difference is calculated for every row and then summed (over all relevant rows). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421968#M486936</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-08T10:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Chart for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421969#M486937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now when you say it I realise that you found the problem! Question now is how do I slove this kind of problem? Can I somehow use "distinct" or somthing similar for Expressions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 10:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421969#M486937</guid>
      <dc:creator />
      <dc:date>2013-03-08T10:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Chart for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421970#M486938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found distinct but apparently I cant use it like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt;(&lt;BR /&gt; (&lt;SPAN class="s1"&gt;sum&lt;/SPAN&gt; (&lt;SPAN class="s1"&gt;mid&lt;/SPAN&gt;((DISTINCT end),10,2)))&lt;BR /&gt; - &lt;BR /&gt; (sum (mid((DISTINCT begin),10,2)))&lt;BR /&gt; ) &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any hints?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 12:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421970#M486938</guid>
      <dc:creator />
      <dc:date>2013-03-08T12:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Chart for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421971#M486939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr(&lt;SPAN class="s1"&gt;mid&lt;/SPAN&gt;(End,10,2) - &lt;SPAN class="s1"&gt;mid&lt;/SPAN&gt;(Begin,10,2),End,Begin))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am not sure this will work properly, but try and chek out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421971#M486939</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-03-08T13:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange Chart for Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421972#M486940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like it worked. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 13:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-Chart-for-Expression/m-p/421972#M486940</guid>
      <dc:creator />
      <dc:date>2013-03-08T13:25:38Z</dc:date>
    </item>
  </channel>
</rss>

