<?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: Aggr + rank displayed over time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748437#M64124</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;let's say I use your dynamic dimension but change the rank to = 1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'A'}&amp;gt;}[Sales])),Sale product) =1, [Sale product], NULL())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will then get the top sold product for category A which in my example is:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Sand&lt;/P&gt;&lt;P&gt;So the line chart will then show the average sales for that product.&lt;/P&gt;&lt;P&gt;I would the like the line chart to display&amp;nbsp; "Sand" in the label. Like a "GetCurrentSelection" of what is displayed in the line chart.&amp;nbsp; See below. The "title" should display what the dynamic dimension is "selecting".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-09-30 at 14.13.29.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41466i5969C78F551252AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2020-09-30 at 14.13.29.png" alt="Screenshot 2020-09-30 at 14.13.29.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 12:16:14 GMT</pubDate>
    <dc:creator>Jonathan_Alm</dc:creator>
    <dc:date>2020-09-30T12:16:14Z</dc:date>
    <item>
      <title>Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748367#M64118</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a line chart that displays the total average for a produkt over time.&lt;/P&gt;&lt;P&gt;The calculated dimension is the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(aggr(rank(avg([Sales])),Sale product) &amp;lt;=5, [Sale product], NULL())&amp;nbsp;&lt;/P&gt;&lt;P&gt;This calculated dimension picks the top 5 average selling product.&lt;/P&gt;&lt;P&gt;I am displaying the in a line chart over time which makes these products avg sales being displayed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this works fine.&lt;/P&gt;&lt;P&gt;But I would like to create a comparision between these products by looking at the product categories.&lt;/P&gt;&lt;P&gt;The table I am using looks like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Year&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Product Category&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Sale Product&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Avg(Sales)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2019&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;A&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Iron&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2018&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;A&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Glass&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;A&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Sand&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2020&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Shoes&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2019&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Socks&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2017&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Shirts&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2019&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Socks&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2019&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Jackets&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;2017&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;B&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Gloves&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;700&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code above will display Shoes, Sand, Glass, Shirts &amp;amp; Socks since they have the highest average sales.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I would like to create two separate Line charts. One that displays top 2 avg sales for Category A and one that does the same for Category B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I add so that the line chart only looks at these categories so that I can compare these two in two separate line charts? Do I add this to the calculated dimension? Or do I add this to the measure (set analysis)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, Jonathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748367#M64118</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2024-11-16T01:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748375#M64119</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7608"&gt;@Jonathan_Alm&lt;/a&gt;&amp;nbsp; try below Individual expressions as calculated dimension of line chart&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'A'}&amp;gt;}[Sales])),Sale product) &amp;lt;=2, [Sale product], NULL())&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'B'}&amp;gt;}[Sales])),Sale product) &amp;lt;=2, [Sale product], NULL())&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748375#M64119</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-30T08:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748377#M64120</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7608"&gt;@Jonathan_Alm&lt;/a&gt;&amp;nbsp; Like ?&lt;/P&gt;&lt;P&gt;for top 2 category A:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'A'}&amp;gt;}[Sales])),[Sale Product]) &amp;lt;=2,[Sale Product], NULL())&lt;/LI-CODE&gt;&lt;P&gt;category B :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'B'}&amp;gt;}[Sales])),[Sale Product]) &amp;lt;=2,[Sale Product], NULL())&lt;/LI-CODE&gt;&lt;P&gt;output like :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41457i7DCBCB6D8F16C73D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 08:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748377#M64120</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-09-30T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748379#M64121</link>
      <description>&lt;P&gt;Thanks, that worked out perfectly!&lt;/P&gt;&lt;P&gt;Kind regards, Jonathan&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 09:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748379#M64121</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2020-09-30T09:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748419#M64122</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I would continue this dynamic idea, would it also be possible to add a dynamic lable, so that chart A contains a dynamic lable displaying the "Sale product"&amp;nbsp; and chart B displaying the Sale Product.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if my dynamic dimension picks top sale product for Category A I want the chart to display Sand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the chart for Category B "top product" should dynamically show Shoes. (if that is the top products at that time of the load of data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748419#M64122</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2020-09-30T11:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748435#M64123</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7608"&gt;@Jonathan_Alm&lt;/a&gt;&amp;nbsp; Not sure I am following that. How would you like the label? label of expression or title of chart?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748435#M64123</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-30T12:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748437#M64124</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;let's say I use your dynamic dimension but change the rank to = 1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'A'}&amp;gt;}[Sales])),Sale product) =1, [Sale product], NULL())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will then get the top sold product for category A which in my example is:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;Sand&lt;/P&gt;&lt;P&gt;So the line chart will then show the average sales for that product.&lt;/P&gt;&lt;P&gt;I would the like the line chart to display&amp;nbsp; "Sand" in the label. Like a "GetCurrentSelection" of what is displayed in the line chart.&amp;nbsp; See below. The "title" should display what the dynamic dimension is "selecting".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-09-30 at 14.13.29.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41466i5969C78F551252AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2020-09-30 at 14.13.29.png" alt="Screenshot 2020-09-30 at 14.13.29.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748437#M64124</guid>
      <dc:creator>Jonathan_Alm</dc:creator>
      <dc:date>2020-09-30T12:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748480#M64125</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7608"&gt;@Jonathan_Alm&lt;/a&gt;&amp;nbsp; You can use the same expression under General -&amp;gt; Title&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41476i00E3163CC6F41A7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(aggr(rank(avg({&amp;lt;[Product Category]={'A'}&amp;gt;}[Sales])),Sale product) =1, [Sale product], NULL())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748480#M64125</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-30T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + rank displayed over time</title>
      <link>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748487#M64126</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/7608"&gt;@Jonathan_Alm&lt;/a&gt;&amp;nbsp; you can try the same expression&amp;nbsp; like below in title&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='top sold product for category A-' &amp;amp;concat(if(aggr(rank(avg({&amp;lt;[Product Category]={'A'}&amp;gt;}[Sales])),Sale product) =1, [Sale product], NULL()),',')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will then get the top sold product for category A w&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 13:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Aggr-rank-displayed-over-time/m-p/1748487#M64126</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-30T13:43:01Z</dc:date>
    </item>
  </channel>
</rss>

