<?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 Calculating same average value for a KPI as in the table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2028907#M84773</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am trying to make aligned the very last column of the table, which is RangeAvg of the MS1-MS6 percentages.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mamaewapolya_1-1674487422055.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98626i1F183D429B0458E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mamaewapolya_1-1674487422055.png" alt="mamaewapolya_1-1674487422055.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am using the following formula for the KPI (trying to find an average for the RangeAverage and aggregate for all orders):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(RangeAvg([MS1 Quality],[MS2 Quality],[MS3 Quality],[MS4 Quality],[MS5 Quality],[MS6 Quality]),OrderNo))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please advise what might be wrong in my calculation or logic.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Polina&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 15:28:15 GMT</pubDate>
    <dc:creator>mamaewapolya</dc:creator>
    <dc:date>2023-01-23T15:28:15Z</dc:date>
    <item>
      <title>Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2028907#M84773</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am trying to make aligned the very last column of the table, which is RangeAvg of the MS1-MS6 percentages.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mamaewapolya_1-1674487422055.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98626i1F183D429B0458E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mamaewapolya_1-1674487422055.png" alt="mamaewapolya_1-1674487422055.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am using the following formula for the KPI (trying to find an average for the RangeAverage and aggregate for all orders):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Avg(Aggr(RangeAvg([MS1 Quality],[MS2 Quality],[MS3 Quality],[MS4 Quality],[MS5 Quality],[MS6 Quality]),OrderNo))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please advise what might be wrong in my calculation or logic.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;Polina&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:28:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2028907#M84773</guid>
      <dc:creator>mamaewapolya</dc:creator>
      <dc:date>2023-01-23T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029063#M84782</link>
      <description>&lt;P&gt;If it is always MS1-MS6, could you just do the following for the KPI?&lt;/P&gt;
&lt;P&gt;(avg([MS1 Quality]) + ... +&amp;nbsp;avg([MS1 Quality])) / 6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, could you provide some more details about the data structure? What is OrderNo used for? An small sample table of data would be useful as well if you can provide one.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 22:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029063#M84782</guid>
      <dc:creator>KGalloway</dc:creator>
      <dc:date>2023-01-23T22:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029099#M84786</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;No, this is not working -&amp;nbsp;&lt;SPAN&gt;(avg([MS1 Quality]) + ... +&amp;nbsp;avg([MS1 Quality])) / 6.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tried to test a formula for average for MS1 first, but it gave me 96% instead of expected 98%. I used "Total" after Set Expression.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please find attached the sample data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Polina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 05:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029099#M84786</guid>
      <dc:creator>mamaewapolya</dc:creator>
      <dc:date>2023-01-24T05:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029370#M84796</link>
      <description>&lt;P&gt;I may be misunderstanding the data structure. I assumed it looked like the table on the left in my screenshot below. With that structure, I was able to get the numbers to match using&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;avg([MS1 Quality]&amp;nbsp;+ [MS2 Quality]&amp;nbsp;+ [MS3 Quality]&amp;nbsp;+ [MS4 Quality]&amp;nbsp;+ [MS5 Quality] + [MS6 Quality]) / 6&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="KGalloway_0-1674570318035.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98731iDA80B67E3526243F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KGalloway_0-1674570318035.png" alt="KGalloway_0-1674570318035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 14:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029370#M84796</guid>
      <dc:creator>KGalloway</dc:creator>
      <dc:date>2023-01-24T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029673#M84815</link>
      <description>&lt;P&gt;Works fine for me&lt;/P&gt;
&lt;P&gt;AVG(aggr(RangeAvg([MS1 Quality],[MS2 Quality],[MS3 Quality],[MS4 Quality],[MS5 Quality],[MS6 Quality]),OrderNo))&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="vinieme12_2-1674628091460.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98786i5C742D5FF0F70915/image-size/large?v=v2&amp;amp;px=999" role="button" title="vinieme12_2-1674628091460.png" alt="vinieme12_2-1674628091460.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="vinieme12_1-1674628055379.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/98785i86B3E25BADF830EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="vinieme12_1-1674628055379.png" alt="vinieme12_1-1674628055379.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 06:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029673#M84815</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-25T06:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029674#M84816</link>
      <description>&lt;P&gt;can you post the app itself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;check if the KPI is tagged to any alternate state&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 06:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029674#M84816</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2023-01-25T06:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating same average value for a KPI as in the table</title>
      <link>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029741#M84826</link>
      <description>&lt;P&gt;Just found the solution - you have to aggregate &lt;U&gt;&lt;STRONG&gt;by all dimensions you have in the table&lt;/STRONG&gt;&lt;/U&gt;. Except for OrderNo I also had a couple of columns with dates. So, basically, it should look like this:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Avg(Aggr(RangeAvg([Measure 1],[Measure 2],...[Measure n]),Dimension 1, Dimension 2,...Dimension n))&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 08:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculating-same-average-value-for-a-KPI-as-in-the-table/m-p/2029741#M84826</guid>
      <dc:creator>mamaewapolya</dc:creator>
      <dc:date>2023-01-25T08:54:56Z</dc:date>
    </item>
  </channel>
</rss>

