<?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 Benchmarking Percentages in Chart Table with Set Analysis? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Benchmarking-Percentages-in-Chart-Table-with-Set-Analysis/m-p/2480658#M100732</link>
    <description>&lt;P&gt;So I have two measures&amp;nbsp; and three dimensions&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimensions -&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Brand, ShopID , Week&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measures -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Sales , Cost&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My first metric&amp;nbsp; &lt;STRONG&gt;Cost Percent&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum(Cost) / Sum (Sales)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My second metric is &lt;STRONG&gt;Benchmark&lt;/STRONG&gt; is the average of &lt;STRONG&gt;Cost Percent&lt;/STRONG&gt; by Week / Brand -&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Avg(Aggr(Sum(Cost) / Sum(Sales), Brand,Week))&lt;BR /&gt;&lt;BR /&gt;My third metric is to compare the difference between &lt;STRONG&gt;Cost Percent&lt;/STRONG&gt; and &lt;STRONG&gt;Benchmark &lt;/STRONG&gt;- which have been turned into master measures&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;mmCostPercent&lt;/STRONG&gt;&amp;nbsp; - &lt;STRONG&gt;mmBenchMark&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This mostly works, however in a table the benchmark doesn't repeat over rows, ideally I'd like to ignore all filtering ( if user filtered on one brand / site etc ) in the benchmark field, other than date/brand.&lt;BR /&gt;&lt;BR /&gt;Where I've used a set analysis with the master measure , it doesn't seem to apply . &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;i.e.&lt;/STRONG&gt;&amp;nbsp; mmCostPercent -&amp;nbsp; &amp;nbsp;({&amp;lt;ShopID=&amp;gt;} mmBenchmark )&lt;BR /&gt;&lt;BR /&gt;If I was doing this in SQL, I'd just pre-calculate all the numbers in a CTE and recombine, but I'd like to allow users to filter / see it live.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any suggestions are most welcome, am hoping this is something fairly standard.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit - I've added a picture to show what I mean -&amp;nbsp; I'd also like to be able to chart the 'vs Benchmark' metric over ShopID in a Time-Series line chart , to show the Shops relative performance to the benchmark over time.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110_0-1725962958442.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171468iA68300CB04C503BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="110_0-1725962958442.png" alt="110_0-1725962958442.png" /&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>Tue, 10 Sep 2024 10:10:37 GMT</pubDate>
    <dc:creator>110</dc:creator>
    <dc:date>2024-09-10T10:10:37Z</dc:date>
    <item>
      <title>Benchmarking Percentages in Chart Table with Set Analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Benchmarking-Percentages-in-Chart-Table-with-Set-Analysis/m-p/2480658#M100732</link>
      <description>&lt;P&gt;So I have two measures&amp;nbsp; and three dimensions&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dimensions -&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Brand, ShopID , Week&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measures -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Sales , Cost&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My first metric&amp;nbsp; &lt;STRONG&gt;Cost Percent&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sum(Cost) / Sum (Sales)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My second metric is &lt;STRONG&gt;Benchmark&lt;/STRONG&gt; is the average of &lt;STRONG&gt;Cost Percent&lt;/STRONG&gt; by Week / Brand -&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Avg(Aggr(Sum(Cost) / Sum(Sales), Brand,Week))&lt;BR /&gt;&lt;BR /&gt;My third metric is to compare the difference between &lt;STRONG&gt;Cost Percent&lt;/STRONG&gt; and &lt;STRONG&gt;Benchmark &lt;/STRONG&gt;- which have been turned into master measures&amp;nbsp;&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;mmCostPercent&lt;/STRONG&gt;&amp;nbsp; - &lt;STRONG&gt;mmBenchMark&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This mostly works, however in a table the benchmark doesn't repeat over rows, ideally I'd like to ignore all filtering ( if user filtered on one brand / site etc ) in the benchmark field, other than date/brand.&lt;BR /&gt;&lt;BR /&gt;Where I've used a set analysis with the master measure , it doesn't seem to apply . &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;i.e.&lt;/STRONG&gt;&amp;nbsp; mmCostPercent -&amp;nbsp; &amp;nbsp;({&amp;lt;ShopID=&amp;gt;} mmBenchmark )&lt;BR /&gt;&lt;BR /&gt;If I was doing this in SQL, I'd just pre-calculate all the numbers in a CTE and recombine, but I'd like to allow users to filter / see it live.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any suggestions are most welcome, am hoping this is something fairly standard.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit - I've added a picture to show what I mean -&amp;nbsp; I'd also like to be able to chart the 'vs Benchmark' metric over ShopID in a Time-Series line chart , to show the Shops relative performance to the benchmark over time.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110_0-1725962958442.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/171468iA68300CB04C503BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="110_0-1725962958442.png" alt="110_0-1725962958442.png" /&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>Tue, 10 Sep 2024 10:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Benchmarking-Percentages-in-Chart-Table-with-Set-Analysis/m-p/2480658#M100732</guid>
      <dc:creator>110</dc:creator>
      <dc:date>2024-09-10T10:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Benchmarking Percentages in Chart Table with Set Analysis?</title>
      <link>https://community.qlik.com/t5/App-Development/Benchmarking-Percentages-in-Chart-Table-with-Set-Analysis/m-p/2480909#M100757</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Avg(Aggr(nodistinct Sum(Cost) / Sum(Sales), Brand,Week))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 07:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Benchmarking-Percentages-in-Chart-Table-with-Set-Analysis/m-p/2480909#M100757</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2024-09-11T07:54:48Z</dc:date>
    </item>
  </channel>
</rss>

