<?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: Pivot table Value Wrongly calculates Interval in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609727#M736669</link>
    <description>&lt;P&gt;Are the numbers you are using decimals and not a time format, so .5 will not be interpreted as 30 minutes.&lt;/P&gt;&lt;P&gt;Turn it into a round number with minutes as the denominator.&lt;/P&gt;&lt;P&gt;=Interval(sum(Interval#(Hours*60,'mm')),'hh:mm')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16603i913085B35DF381CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise can you post the background data please as a table.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2019 12:33:43 GMT</pubDate>
    <dc:creator>MarkWillems</dc:creator>
    <dc:date>2019-08-06T12:33:43Z</dc:date>
    <item>
      <title>Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608419#M736660</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to post a Sum of HOURS field in a pivot table &amp;amp; the HOURS field has values like HH:MM (60 minutes format)&lt;/P&gt;&lt;P&gt;But When i try to sum this in a Pivot table, The result value is shown as HH:MM (100 minutes format)&lt;/P&gt;&lt;P&gt;For example, sum of entries like 2.30 and 2.40 is giving me 4.80 but i expected it to be 5.10&lt;/P&gt;&lt;P&gt;Can you help me with correct format ?.&lt;/P&gt;&lt;P&gt;I tried to use &lt;STRONG&gt;interval&lt;/STRONG&gt; function like =interval(Sum(HOURS)/24,'h.mm')) , but it's diving total by 24 instead of actual function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:50:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608419#M736660</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2024-11-16T02:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608495#M736661</link>
      <description>&lt;P&gt;Try this instead&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Interval(Sum(Interval#(HOURS, 'h.mm')), 'h.mm'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 12:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608495#M736661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-01T12:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608518#M736662</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; That formula is again doing some division operation instead of formatting.&lt;/P&gt;&lt;P&gt;For example, It's converting 395.83 which is total Sum to 16.49&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;395.83/24 = 16.49&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 13:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608518#M736662</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-01T13:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608554#M736663</link>
      <description>&lt;P&gt;Not sure I understand... it is converting 395.83 to 16.49? But hard-coding it gives me a different value&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 671px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16411i9F833AD2C73F3BA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 13:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608554#M736663</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-01T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608580#M736664</link>
      <description>&lt;P&gt;Yes. It's dividing Sum by 24. Not sure why. May be it has something to do with Pivot table funcationality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum(HOURS) it shows me 395.83&lt;/P&gt;&lt;P&gt;But your formula is giving me 16.49&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 14:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608580#M736664</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-01T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608589#M736665</link>
      <description>&lt;P&gt;I don't know why you see 16.49... did you remove the division by 24? My expression didn't divide by 24... but you original expression did...&lt;/P&gt;&lt;PRE&gt;=Interval(Sum(Interval#(HOURS, 'h.mm')), 'h.mm'))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 14:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1608589#M736665</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-01T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609136#M736666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not doing any division by 24. I am using the same formula as you proposed but it's internally dividing by 24 and producing wrong result.&lt;/P&gt;&lt;P&gt;It's kind of a bug it seems.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 10:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609136#M736666</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-04T10:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609327#M736667</link>
      <description>&lt;P&gt;Are you able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 11:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609327#M736667</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-05T11:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609698#M736668</link>
      <description>&lt;P&gt;Please see the difference i get when i apply the formula.&lt;/P&gt;&lt;P&gt;If i just do a Sum, i get 50.** but when i apply formula it divides by 24 to give me 2.**&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with-SUM.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16590iB79E4BD443855AA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="with-SUM.PNG" alt="with-SUM.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="with-formula.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16591iB1A58AEE2D9BBEDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="with-formula.PNG" alt="with-formula.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 09:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609698#M736668</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-06T09:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609727#M736669</link>
      <description>&lt;P&gt;Are the numbers you are using decimals and not a time format, so .5 will not be interpreted as 30 minutes.&lt;/P&gt;&lt;P&gt;Turn it into a round number with minutes as the denominator.&lt;/P&gt;&lt;P&gt;=Interval(sum(Interval#(Hours*60,'mm')),'hh:mm')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16603i913085B35DF381CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise can you post the background data please as a table.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 12:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1609727#M736669</guid>
      <dc:creator>MarkWillems</dc:creator>
      <dc:date>2019-08-06T12:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610079#M736670</link>
      <description>@Anonymous, This is also not working for me. It gives me same result as with Sunny's formula</description>
      <pubDate>Wed, 07 Aug 2019 06:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610079#M736670</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-07T06:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610136#M736671</link>
      <description>&lt;P&gt;OK, could you&amp;nbsp; post the example qvw to take a look at?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610136#M736671</guid>
      <dc:creator>MarkWillems</dc:creator>
      <dc:date>2019-08-07T08:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610158#M736672</link>
      <description>&lt;P&gt;PFA my qvw file&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610158#M736672</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-07T08:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610170#M736673</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;There area three problems.&amp;nbsp; Your expression is summing the hours before they are converted to a time.&amp;nbsp; SO it will treat the .3 as a decimal and not a half hour.&amp;nbsp; The sum needs to sit around the interval#&lt;/P&gt;&lt;P&gt;=Interval(Sum(Interval#(hours, 'h.mm')), 'h.mm')&lt;/P&gt;&lt;P&gt;Secondly, the format is wrong because you have set the format manually in the "Number" tab.&amp;nbsp; The expression is forced to be Fixed at 2 decimal places, so it converts the number from a time format.&amp;nbsp; Change it back to expression default.&lt;/P&gt;&lt;P&gt;Finally, your 10.3 will be read as 10 hours and 3 minutes, not 30 which I suspect it should be.&amp;nbsp; You need to get your data collection to be a bit better, or affect the format of the data so that it properly reflects the time in a correct format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So AB right now which has 5 sets of 10.3 hours reads as 50.15 hours and not 52.5.&amp;nbsp; It may be that if there is only one number after the decimal place then you automatically add a 0 to it, but better you get the source data to be a proper time format.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 09:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610170#M736673</guid>
      <dc:creator>MarkWillems</dc:creator>
      <dc:date>2019-08-07T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610203#M736674</link>
      <description>&lt;P&gt;Thanks. that helped&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610203#M736674</guid>
      <dc:creator>voxjungle</dc:creator>
      <dc:date>2019-08-07T10:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table Value Wrongly calculates Interval</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610206#M736675</link>
      <description>&lt;P&gt;So, I guess my initially provided expression was not incorrect after all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 898px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16666i4650EA5B489B01B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-table-Value-Wrongly-calculates-Interval/m-p/1610206#M736675</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-07T11:00:30Z</dc:date>
    </item>
  </channel>
</rss>

