<?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 Calculate growth in each Treemap Dimension when Dimension are converted from Measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-growth-in-each-Treemap-Dimension-when-Dimension-are/m-p/2018829#M84153</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I currently developed a treemap chart in which Dimension is converted from Measure. I would like to &lt;STRONG&gt;measure growth vs. Previous Year&lt;/STRONG&gt;&amp;nbsp;in each Dimension&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These are the &lt;STRONG&gt;Dimension conditions&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If percentile of net sales &amp;gt;=50% and percentile of purchase frequency &amp;gt;=50% then cluster is 'Loyal Account'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If percentile of net sales &amp;lt;50% and percentile of purchase frequency &amp;gt;=50% then cluster is 'Promising'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;If percentile of net sales &amp;gt;=50% and percentile of purchase frequency &amp;lt;50% then cluster is 'Potential Loyalist'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If percentile of net sales &amp;lt;50% and percentile of purchase frequency &amp;lt;50% then cluster is 'Promising'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Dimensions are expressed in Qliksense as follows:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=Aggr(=IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;gt;=0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count(purchase_frequency))-1))&amp;gt;=0.5, 'Loyal Account',&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;gt;=0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count((purchase_frequency))-1))&amp;lt;0.5, 'Promising',&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;lt;0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count(purchase_frequency))-1))&amp;gt;=0.5, 'Potential Loyalist',&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;lt;0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count(purchase_frequency))-1))&amp;lt;0.5, 'Need Attention',&lt;/P&gt;
&lt;P&gt;NULL()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),[Outlet_ID]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure Expression&lt;/STRONG&gt; to show &lt;STRONG&gt;number of Outlet&lt;/STRONG&gt;: Count(distinct Outlet_ID)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure Label Expression&lt;/STRONG&gt; to show &lt;STRONG&gt;growth of Outlet vs. Previous Year&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;num((Sum({&amp;lt;Year=, [Month]=, [Year Month Name]=, [Year Quarter Name]=, [YTD Name] = {'YTD-$(=Date(Max([Year-Month]),'MMM-YYYY'))'} , &lt;BR /&gt;[MTD Flag]={1}&amp;gt;} net_sales)&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt; Year=, [Month]=, [Year Month Name]=, [Year Quarter Name]=,[YTD Name] = {'YTD-$(=Date(Max([Year-Month]),'MMM-YYYY'))'} , &lt;BR /&gt;[Previous Year MTD Flag]={1}&amp;gt;} net_sales))-1,'#,##0.00%')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I manage to get the Dimension and Measure Expression right, but Measure Label Expression for growth shows the same result in each Dimension:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theresa_lalita_0-1671608463631.png" style="width: 635px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96660i6AC9ACDCD8A4CA16/image-dimensions/635x234?v=v2" width="635" height="234" role="button" title="theresa_lalita_0-1671608463631.png" alt="theresa_lalita_0-1671608463631.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there any way to show the growth that is specific to each Dimension?&lt;/P&gt;
&lt;P&gt;Your help is really appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2022 07:43:01 GMT</pubDate>
    <dc:creator>theresa_lalita</dc:creator>
    <dc:date>2022-12-21T07:43:01Z</dc:date>
    <item>
      <title>Calculate growth in each Treemap Dimension when Dimension are converted from Measure</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-growth-in-each-Treemap-Dimension-when-Dimension-are/m-p/2018829#M84153</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I currently developed a treemap chart in which Dimension is converted from Measure. I would like to &lt;STRONG&gt;measure growth vs. Previous Year&lt;/STRONG&gt;&amp;nbsp;in each Dimension&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These are the &lt;STRONG&gt;Dimension conditions&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If percentile of net sales &amp;gt;=50% and percentile of purchase frequency &amp;gt;=50% then cluster is 'Loyal Account'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If percentile of net sales &amp;lt;50% and percentile of purchase frequency &amp;gt;=50% then cluster is 'Promising'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;If percentile of net sales &amp;gt;=50% and percentile of purchase frequency &amp;lt;50% then cluster is 'Potential Loyalist'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- If percentile of net sales &amp;lt;50% and percentile of purchase frequency &amp;lt;50% then cluster is 'Promising'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The Dimensions are expressed in Qliksense as follows:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;=Aggr(=IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;gt;=0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count(purchase_frequency))-1))&amp;gt;=0.5, 'Loyal Account',&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;gt;=0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count((purchase_frequency))-1))&amp;lt;0.5, 'Promising',&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;lt;0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count(purchase_frequency))-1))&amp;gt;=0.5, 'Potential Loyalist',&lt;/P&gt;
&lt;P&gt;IF(&lt;BR /&gt;((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Sum(net_sales))-1))&amp;lt;0.5 AND ((1/(Count(distinct TOTAL [Outlet_ID])-1)) * (Rank(-Count(purchase_frequency))-1))&amp;lt;0.5, 'Need Attention',&lt;/P&gt;
&lt;P&gt;NULL()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),[Outlet_ID]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure Expression&lt;/STRONG&gt; to show &lt;STRONG&gt;number of Outlet&lt;/STRONG&gt;: Count(distinct Outlet_ID)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Measure Label Expression&lt;/STRONG&gt; to show &lt;STRONG&gt;growth of Outlet vs. Previous Year&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;num((Sum({&amp;lt;Year=, [Month]=, [Year Month Name]=, [Year Quarter Name]=, [YTD Name] = {'YTD-$(=Date(Max([Year-Month]),'MMM-YYYY'))'} , &lt;BR /&gt;[MTD Flag]={1}&amp;gt;} net_sales)&lt;BR /&gt;/&lt;BR /&gt;Sum({&amp;lt; Year=, [Month]=, [Year Month Name]=, [Year Quarter Name]=,[YTD Name] = {'YTD-$(=Date(Max([Year-Month]),'MMM-YYYY'))'} , &lt;BR /&gt;[Previous Year MTD Flag]={1}&amp;gt;} net_sales))-1,'#,##0.00%')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I manage to get the Dimension and Measure Expression right, but Measure Label Expression for growth shows the same result in each Dimension:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="theresa_lalita_0-1671608463631.png" style="width: 635px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/96660i6AC9ACDCD8A4CA16/image-dimensions/635x234?v=v2" width="635" height="234" role="button" title="theresa_lalita_0-1671608463631.png" alt="theresa_lalita_0-1671608463631.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Is there any way to show the growth that is specific to each Dimension?&lt;/P&gt;
&lt;P&gt;Your help is really appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 07:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-growth-in-each-Treemap-Dimension-when-Dimension-are/m-p/2018829#M84153</guid>
      <dc:creator>theresa_lalita</dc:creator>
      <dc:date>2022-12-21T07:43:01Z</dc:date>
    </item>
  </channel>
</rss>

