<?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: Grouping by Values in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Grouping-by-Values/m-p/2086392#M89074</link>
    <description>&lt;P&gt;So&amp;nbsp; an update on this... I have noticed that my (now updated) expression is not aggregating SoldSeats by BooRefNo, so this means that if, say, 2 seats are sold on a booking line within the entire booking and 3 are sold on another, then it lists them in both the '2 tickets' category and the '3 tickets' category. I want the expression to sum any SoldSeats where the BooRefNo's match. This is what I've tried:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;=if(sum(SoldSeats) &amp;lt;= 10,&lt;BR /&gt;Count({&amp;lt;SoldSeats = {'$(=Aggr(Sum(SoldSeats), BooRefNo))'} &amp;gt;} BooRefNo),&lt;BR /&gt;Count({&amp;lt;SoldSeats = {'$(=Aggr(Sum(SoldSeats), BooRefNo))'}&amp;gt;} BooRefNo))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 14:41:35 GMT</pubDate>
    <dc:creator>cgT</dc:creator>
    <dc:date>2023-06-21T14:41:35Z</dc:date>
    <item>
      <title>Grouping by Values</title>
      <link>https://community.qlik.com/t5/App-Development/Grouping-by-Values/m-p/2085701#M89012</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I'm trying to create a break down of booking group sizes. I want to group each booking (BooRefNo) by the number of seats sold into it (SoldSeats). So I end up with, for example:&lt;/P&gt;
&lt;P&gt;Group size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Count&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;220&lt;/P&gt;
&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;140&lt;/P&gt;
&lt;P&gt;etc... (numbers are examples, of course) any bookings with more than 10 tickets will be listed as '10+'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is what I have so far in my expression:&lt;/P&gt;
&lt;PRE&gt;=if(sum(SoldSeats)&amp;lt;= 10,&lt;BR /&gt;Count({&amp;lt;SoldSeats = {"$ (=Sum(SoldSeats))"} &amp;gt;} BooRefNo),&lt;BR /&gt;Count({&amp;lt;SoldSeats = {"&amp;gt;10"}&amp;gt;} BooRefNo))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;My dimension is as follows:&lt;/P&gt;
&lt;PRE&gt;=if(sum(SoldSeats) &amp;lt;= 10, sum(SoldSeats), '10+')&lt;/PRE&gt;
&lt;P&gt;However, I'm just returning a blank table...&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 10:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Grouping-by-Values/m-p/2085701#M89012</guid>
      <dc:creator>cgT</dc:creator>
      <dc:date>2023-06-20T10:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping by Values</title>
      <link>https://community.qlik.com/t5/App-Development/Grouping-by-Values/m-p/2086392#M89074</link>
      <description>&lt;P&gt;So&amp;nbsp; an update on this... I have noticed that my (now updated) expression is not aggregating SoldSeats by BooRefNo, so this means that if, say, 2 seats are sold on a booking line within the entire booking and 3 are sold on another, then it lists them in both the '2 tickets' category and the '3 tickets' category. I want the expression to sum any SoldSeats where the BooRefNo's match. This is what I've tried:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;=if(sum(SoldSeats) &amp;lt;= 10,&lt;BR /&gt;Count({&amp;lt;SoldSeats = {'$(=Aggr(Sum(SoldSeats), BooRefNo))'} &amp;gt;} BooRefNo),&lt;BR /&gt;Count({&amp;lt;SoldSeats = {'$(=Aggr(Sum(SoldSeats), BooRefNo))'}&amp;gt;} BooRefNo))&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 14:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Grouping-by-Values/m-p/2086392#M89074</guid>
      <dc:creator>cgT</dc:creator>
      <dc:date>2023-06-21T14:41:35Z</dc:date>
    </item>
  </channel>
</rss>

