<?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: Why the results are different although I'm using the same calculation in both charts in Reporting Service &amp; Alerting</title>
    <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493666#M1240</link>
    <description>&lt;P&gt;Hi Lech,&lt;/P&gt;
&lt;P&gt;Thank you for your clarifying, I really appreciate it.&lt;BR /&gt;&lt;BR /&gt;When I developed this metric I built it to do a cumulative sum over the months. For instance, the values for May (since it's our second month because I'm following the fiscal year) should be a result of a sum of avg(april) + avg(may). But according to your explanation my formula is not doing so.&lt;BR /&gt;&lt;BR /&gt;I'm quite new on Qlik Sense, could you tell me what I need to change to reflect a cumulative sum over the months?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 14:31:05 GMT</pubDate>
    <dc:creator>Sam07</dc:creator>
    <dc:date>2024-11-20T14:31:05Z</dc:date>
    <item>
      <title>Why the results are different although I'm using the same calculation in both charts</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493657#M1237</link>
      <description>&lt;P&gt;I need help:&lt;/P&gt;
&lt;P&gt;I am developing a report in Qlik Sense, which I have two charts, one card (KPI) and the other one a line chart. In both, I am using the same formula to calculate the metrics in both. The card is showing the values ​​of '26' and '72', however, it should show the same values ​​for November as the line chart, which are '36' and 75'. Does anyone know why this is happening?&lt;/P&gt;
&lt;P&gt;When I select November in the filter, the card chart shows the correct value.&lt;/P&gt;
&lt;P&gt;The formulas I am using for each metric are as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;avg({&amp;lt;[Fiscal Date]={"&amp;gt;=$(=YearStart(max([Fiscal Date])))"},VFPBDAFLG_LOT_APPROVED={'1'},VFPBDAFLG_OUTLIER={'0'}&amp;gt;}VFPBDADAYS_TO_BE_RELEASED);&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;avg({&amp;lt;[Fiscal Date]={"&amp;gt;=$(=YearStart(max([Fiscal Date])))"},VFPBDAFLG_LOT_APPROVED={'1'},VFPBDAFLG_OUTLIER={'1'}&amp;gt;}VFPBDADAYS_TO_BE_RELEASED);&lt;/SPAN&gt;&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-inline" image-alt="card.PNG" style="width: 277px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174622i4D34A52F1D55D9E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="card.PNG" alt="card.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="line.PNG" style="width: 945px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174623iF6A03D066EFBB5B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="line.PNG" alt="line.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493657#M1237</guid>
      <dc:creator>Sam07</dc:creator>
      <dc:date>2024-11-20T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why the results are different although I'm using the same calculation in both charts</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493661#M1238</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;very simple - your KPI shows avg across all the months for the period (&lt;SPAN&gt;[Fiscal Date]={"&amp;gt;=$(=&lt;STRONG&gt;YearStart&lt;/STRONG&gt;(max([Fiscal Date])))) which you can preview in expression editor.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In reality it is an avg between M01 Apr and M08 Nov.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also there is no surprise when you select single month that you get correct result as both charts show only one result then. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If your KPI should show only last month from the possible months in selection then you need to change your set analysis for the KPI object to reflect that.&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493661#M1238</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-11-20T13:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why the results are different although I'm using the same calculation in both charts</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493666#M1240</link>
      <description>&lt;P&gt;Hi Lech,&lt;/P&gt;
&lt;P&gt;Thank you for your clarifying, I really appreciate it.&lt;BR /&gt;&lt;BR /&gt;When I developed this metric I built it to do a cumulative sum over the months. For instance, the values for May (since it's our second month because I'm following the fiscal year) should be a result of a sum of avg(april) + avg(may). But according to your explanation my formula is not doing so.&lt;BR /&gt;&lt;BR /&gt;I'm quite new on Qlik Sense, could you tell me what I need to change to reflect a cumulative sum over the months?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493666#M1240</guid>
      <dc:creator>Sam07</dc:creator>
      <dc:date>2024-11-20T14:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why the results are different although I'm using the same calculation in both charts</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493783#M1241</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/320737"&gt;@Sam07&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Currently it is not doing cumulative
&lt;UL&gt;
&lt;LI&gt;For KPI it is doing avg of total&lt;/LI&gt;
&lt;LI&gt;for trend it is doing avg for each month&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;If I follow your definition that is a: SUM of AVG from each month then you need to do following:
&lt;UL&gt;
&lt;LI&gt;Doing cumulative measure for KPI and chart will be different in this case
&lt;UL&gt;
&lt;LI&gt;for KPI you would have to use
&lt;UL&gt;
&lt;LI&gt;SUM(AGGR([Your Measure],[YourMonthField]))&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;For trend Chart you may consider using cumulative modifier on the measure or your expression will be somewhat like this:
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;RangeSum(Above(TOTAL [yourMeasure], 0, RowNo(TOTAL)))&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lech_Miszkiewicz_0-1732147004679.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174655i510B1591BEEA573A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lech_Miszkiewicz_0-1732147004679.png" alt="Lech_Miszkiewicz_0-1732147004679.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 23:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Why-the-results-are-different-although-I-m-using-the-same/m-p/2493783#M1241</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2024-11-20T23:58:43Z</dc:date>
    </item>
  </channel>
</rss>

