<?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 Interval match, calculation of result, kpi in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Interval-match-calculation-of-result-kpi/m-p/1249965#M25150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone I'm sure someone has had this issue before.&lt;/P&gt;&lt;P&gt;Overview:&lt;/P&gt;&lt;P&gt;I have completed an interval match for a slow changing dimension - a shop rate. Making it span across the dates where the shop rate changes is where I'm having the issue. I am able to correctly calculate a total for within a table but when I try to translate that into a kpi it gives me a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detail:&lt;/P&gt;&lt;P&gt;Prior to Nov 1 2016 our shop rate was $60&lt;/P&gt;&lt;P&gt;On Nov 1 2016 our shop rate is $70&lt;/P&gt;&lt;P&gt;When I do a summary prior to Nov 1 2016 or after, I get the proper results. for example: 400hrs * 60 = 24,000 and 50hrs * 70 = 3,500, but if I try to consolidate the entire time into a kpi I get a null value. While clearly it should be 27,500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the correct value in a table but I can't get it the KPI.&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is a couple screen shots to help clear up the issue. Note: In the example above I used generic numbers&lt;/P&gt;&lt;P&gt;No date filter set (spanning the shop rate change)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143923_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;You can see that the cost is clearly calculated in the totals bar in the table but does not translate to the kpi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop rate from Nov 1 2016 on:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143931_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Here you can see that when the shop rate is after the mix date it calculates the correct cost. (Also works the same prior to the Nov 1 change date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation for the KPI: sum(totaltime) * [Shop Rate]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2016 23:05:41 GMT</pubDate>
    <dc:creator>shearwatertroy</dc:creator>
    <dc:date>2016-11-14T23:05:41Z</dc:date>
    <item>
      <title>Interval match, calculation of result, kpi</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-match-calculation-of-result-kpi/m-p/1249965#M25150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone I'm sure someone has had this issue before.&lt;/P&gt;&lt;P&gt;Overview:&lt;/P&gt;&lt;P&gt;I have completed an interval match for a slow changing dimension - a shop rate. Making it span across the dates where the shop rate changes is where I'm having the issue. I am able to correctly calculate a total for within a table but when I try to translate that into a kpi it gives me a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Detail:&lt;/P&gt;&lt;P&gt;Prior to Nov 1 2016 our shop rate was $60&lt;/P&gt;&lt;P&gt;On Nov 1 2016 our shop rate is $70&lt;/P&gt;&lt;P&gt;When I do a summary prior to Nov 1 2016 or after, I get the proper results. for example: 400hrs * 60 = 24,000 and 50hrs * 70 = 3,500, but if I try to consolidate the entire time into a kpi I get a null value. While clearly it should be 27,500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the correct value in a table but I can't get it the KPI.&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here is a couple screen shots to help clear up the issue. Note: In the example above I used generic numbers&lt;/P&gt;&lt;P&gt;No date filter set (spanning the shop rate change)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/143923_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;You can see that the cost is clearly calculated in the totals bar in the table but does not translate to the kpi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop rate from Nov 1 2016 on:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/143931_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Here you can see that when the shop rate is after the mix date it calculates the correct cost. (Also works the same prior to the Nov 1 change date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calculation for the KPI: sum(totaltime) * [Shop Rate]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 23:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-match-calculation-of-result-kpi/m-p/1249965#M25150</guid>
      <dc:creator>shearwatertroy</dc:creator>
      <dc:date>2016-11-14T23:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Interval match, calculation of result, kpi</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-match-calculation-of-result-kpi/m-p/1249966#M25151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the solution from my partner:&lt;/P&gt;&lt;P&gt;in this case use: &lt;STRONG&gt;ALT(QATimeTotal,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here's the link to alt function: &lt;A href="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/alt.htm" title="https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/alt.htm"&gt;https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ConditionalFunctions/alt.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 22:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-match-calculation-of-result-kpi/m-p/1249966#M25151</guid>
      <dc:creator>shearwatertroy</dc:creator>
      <dc:date>2016-12-09T22:14:06Z</dc:date>
    </item>
  </channel>
</rss>

