<?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: Creating an &amp;quot;Others&amp;quot; bar with average values by groups in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495476#M102533</link>
    <description>&lt;P&gt;It has to be added as measures to your bar chart, two seperate measures&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2024 08:36:57 GMT</pubDate>
    <dc:creator>nimishpgupta</dc:creator>
    <dc:date>2024-12-02T08:36:57Z</dc:date>
    <item>
      <title>Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495325#M102517</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I currently have a very simple bar chart counting the number of tickets opened by specific people. I want to show the top 5 users, but at the same time show an "Others" bar that has the average of tickets opened by other people.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So right now its like this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175017i0B0A9D0DFD786246/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And I woudl like to visualize it like this, where the red shows the average of tickets opened by the rest of the people. I don't necessarily need help with this measure, but more with how to make this happen?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175018iE5266BDD7EEC5E1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because in the graph, I only see the option to add others but not to choose what the others represent&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alespooletto_1-1732891070199.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175019iF5734BB6D173B0A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alespooletto_1-1732891070199.png" alt="alespooletto_1-1732891070199.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>Fri, 29 Nov 2024 14:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495325#M102517</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-11-29T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495364#M102520</link>
      <description>&lt;P&gt;Hi, you can use an expression like:&lt;/P&gt;
&lt;P&gt;Avg(Aggr(Count(YKY_Contact),[DimensionField]))&lt;/P&gt;
&lt;P&gt;DimensionField is the field used as dimension in the bar chart.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 07:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495364#M102520</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-11-30T07:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495371#M102521</link>
      <description>&lt;P&gt;You can create two different expression, sample code below&lt;/P&gt;
&lt;P&gt;Tickets:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;/P&gt;
&lt;P&gt;User,TicketNo&lt;BR /&gt;A,A1&lt;BR /&gt;A,A2&lt;BR /&gt;A,A3&lt;BR /&gt;A,A4&lt;BR /&gt;A,A5&lt;BR /&gt;A,A6&lt;BR /&gt;B,B1&lt;BR /&gt;B,B2&lt;BR /&gt;B,B3&lt;BR /&gt;B,B4&lt;BR /&gt;B,B5&lt;BR /&gt;C,C1&lt;BR /&gt;C,C2&lt;BR /&gt;C,C3&lt;BR /&gt;C,C4&lt;BR /&gt;D,D1&lt;BR /&gt;D,D2&lt;BR /&gt;E,E1&lt;BR /&gt;E,E2&lt;BR /&gt;F,F1&lt;BR /&gt;F,F2&lt;BR /&gt;F,F3&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chart Expressions:&lt;/P&gt;
&lt;P&gt;Top N:&lt;/P&gt;
&lt;P&gt;count({&amp;lt;User = {"=Rank(count(TicketNo))&amp;lt;=3"}&amp;gt;}TicketNo)&lt;/P&gt;
&lt;P&gt;Average:&lt;BR /&gt;avg(aggr({&amp;lt;User = {"=Rank(count(TicketNo))&amp;gt;3"}&amp;gt;}count(TicketNo),User))&lt;/P&gt;
&lt;P&gt;Limit the dimension to show only Top N Users&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nimishpgupta_1-1732962431309.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175036i2B515DC10DAA5546/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nimishpgupta_1-1732962431309.png" alt="nimishpgupta_1-1732962431309.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the output Chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nimishpgupta_0-1732962327255.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175035i7A964F0B86DFE17B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nimishpgupta_0-1732962327255.png" alt="nimishpgupta_0-1732962327255.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can create Master Measures to customise the colors of the Bars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 10:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495371#M102521</guid>
      <dc:creator>nimishpgupta</dc:creator>
      <dc:date>2024-11-30T10:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495474#M102532</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/31840"&gt;@nimishpgupta&lt;/a&gt;&amp;nbsp;, thanks for the answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me where should I put those measures you created?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495474#M102532</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-12-02T08:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495476#M102533</link>
      <description>&lt;P&gt;It has to be added as measures to your bar chart, two seperate measures&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495476#M102533</guid>
      <dc:creator>nimishpgupta</dc:creator>
      <dc:date>2024-12-02T08:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495479#M102534</link>
      <description>&lt;P&gt;Add an extra Inline table as below&lt;/P&gt;
&lt;P&gt;DIM:&lt;BR /&gt;Load * Inline&lt;BR /&gt;[&lt;BR /&gt;Dimension&lt;BR /&gt;User&lt;BR /&gt;Average&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now create bar chart as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dimension&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=PICK(Match(Dimension, 'User','Average'), User, 'Average')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expression&lt;/P&gt;
&lt;P&gt;IF(Dimension = 'User', &lt;BR /&gt;Count({&amp;lt;User = {"=Rank(Count(Distinct Ticket)) &amp;lt;= 3"}&amp;gt;}Distinct Ticket), &lt;BR /&gt;Avg(Total Aggr(Count({&amp;lt;User = {"=Rank(Count(Distinct Ticket)) &amp;gt; 3"}&amp;gt;}Distinct Ticket),User))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495479#M102534</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2024-12-02T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495480#M102535</link>
      <description>&lt;P&gt;Have you tried my answer? You only need to use this expression:&amp;nbsp;&lt;SPAN&gt;Avg(Aggr(Count(YKY_Contact),&lt;EM&gt;[DimensionField]&lt;/EM&gt;))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 08:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495480#M102535</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-12-02T08:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495482#M102536</link>
      <description>&lt;P&gt;Thanks for your suggestion&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;, but it's not clear where should I add your measure?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 09:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495482#M102536</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-12-02T09:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495484#M102537</link>
      <description>&lt;P&gt;That's the only measure the chart needs.&lt;/P&gt;
&lt;P&gt;Instead of "&lt;SPAN&gt;Count(TKT_Contact)" use "&lt;/SPAN&gt;&lt;SPAN&gt;Avg(Aggr(Count(TKT_Contact),[DimensionField]))", where&amp;nbsp;DimensionField is the field used as dimension in the bar chart&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 09:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495484#M102537</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2024-12-02T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an "Others" bar with average values by groups</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495485#M102538</link>
      <description>&lt;P&gt;Okay, this is definitely the easiest option. Thanks Ruben!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 09:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-an-quot-Others-quot-bar-with-average-values-by-groups/m-p/2495485#M102538</guid>
      <dc:creator>alespooletto</dc:creator>
      <dc:date>2024-12-02T09:07:23Z</dc:date>
    </item>
  </channel>
</rss>

