<?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: Comparing 2 measures which are at different level of aggregation. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-2-measures-which-are-at-different-level-of-aggregation/m-p/2034439#M85245</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Change measure 1 to&amp;nbsp;&lt;SPAN&gt;Avg(&lt;STRONG&gt;total &amp;lt;Product&amp;gt;&lt;/STRONG&gt; Aggr(Sum(Profit)/Sum(Sales), YearMonth, Product))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(If you add YearMonth to the pivot it's total &amp;lt;Product, YearMonth&amp;gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 13:30:23 GMT</pubDate>
    <dc:creator>jbhappysocks</dc:creator>
    <dc:date>2023-02-06T13:30:23Z</dc:date>
    <item>
      <title>Comparing 2 measures which are at different level of aggregation.</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-2-measures-which-are-at-different-level-of-aggregation/m-p/2034393#M85240</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;In one my use case I want to compare the 2 measures which are in different level of aggregation.&lt;/P&gt;
&lt;P&gt;For Example&lt;/P&gt;
&lt;P&gt;Measure 1 : Avg(Aggr(Sum(Profit)/Sum(Sales), YearMonth, Product))&lt;/P&gt;
&lt;P&gt;Measure 2 :&amp;nbsp;Avg(Aggr(Sum(Profit)/Sum(Sales), YearMonth, Product, Country))&lt;/P&gt;
&lt;P&gt;Now in my final output viz I will have Product on Rows and Country on Col (in pivot table) and in the values I want to show the difference between the measure1 and measure 2.&lt;/P&gt;
&lt;P&gt;It may be straightforward but I am stuck on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 11:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-2-measures-which-are-at-different-level-of-aggregation/m-p/2034393#M85240</guid>
      <dc:creator>rahul8273</dc:creator>
      <dc:date>2023-02-06T11:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 measures which are at different level of aggregation.</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-2-measures-which-are-at-different-level-of-aggregation/m-p/2034439#M85245</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Change measure 1 to&amp;nbsp;&lt;SPAN&gt;Avg(&lt;STRONG&gt;total &amp;lt;Product&amp;gt;&lt;/STRONG&gt; Aggr(Sum(Profit)/Sum(Sales), YearMonth, Product))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(If you add YearMonth to the pivot it's total &amp;lt;Product, YearMonth&amp;gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 13:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-2-measures-which-are-at-different-level-of-aggregation/m-p/2034439#M85245</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2023-02-06T13:30:23Z</dc:date>
    </item>
  </channel>
</rss>

