<?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 Group By in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Group-By/m-p/1628471#M46754</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to count the number of times a consultant (RACF) hits 20 surveys (ConExp) each month. My syntax is below. Key is a concatenate of RACF and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QualifiedConsultant:&lt;/P&gt;&lt;P&gt;left join&lt;BR /&gt;load&lt;BR /&gt;Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(count(ConExp)&amp;gt;=20, 'Qual','NotQual') as QualCon&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident MyCustomer&lt;BR /&gt;group by Key&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join&lt;BR /&gt;Load&lt;/P&gt;&lt;P&gt;RACF,&lt;/P&gt;&lt;P&gt;count( distinct QualCon ) as QualVol&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident MyCustomer&lt;/P&gt;&lt;P&gt;group by RACF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See example below -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_0.png" style="width: 756px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20138iCC105250EA229941/image-dimensions/756x120?v=v2" width="756" height="120" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The correct answer should be two because this consultant (RACF) has hit 20 surveys (ConExp) in both months, see below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_1.png" style="width: 747px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20139i19582915655D3BAD/image-dimensions/747x125?v=v2" width="747" height="125" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be that it is counting each survey as Qualcon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_2.png" style="width: 728px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20140i00D94CCAD692B9AA/image-dimensions/728x517?v=v2" width="728" height="517" role="button" title="clipboard_image_2.png" alt="clipboard_image_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:00:34 GMT</pubDate>
    <dc:creator>garethct89</dc:creator>
    <dc:date>2024-11-16T20:00:34Z</dc:date>
    <item>
      <title>Group By</title>
      <link>https://community.qlik.com/t5/App-Development/Group-By/m-p/1628471#M46754</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to count the number of times a consultant (RACF) hits 20 surveys (ConExp) each month. My syntax is below. Key is a concatenate of RACF and Month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QualifiedConsultant:&lt;/P&gt;&lt;P&gt;left join&lt;BR /&gt;load&lt;BR /&gt;Key,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if(count(ConExp)&amp;gt;=20, 'Qual','NotQual') as QualCon&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident MyCustomer&lt;BR /&gt;group by Key&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join&lt;BR /&gt;Load&lt;/P&gt;&lt;P&gt;RACF,&lt;/P&gt;&lt;P&gt;count( distinct QualCon ) as QualVol&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Resident MyCustomer&lt;/P&gt;&lt;P&gt;group by RACF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See example below -&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_0.png" style="width: 756px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20138iCC105250EA229941/image-dimensions/756x120?v=v2" width="756" height="120" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The correct answer should be two because this consultant (RACF) has hit 20 surveys (ConExp) in both months, see below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_1.png" style="width: 747px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20139i19582915655D3BAD/image-dimensions/747x125?v=v2" width="747" height="125" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be that it is counting each survey as Qualcon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="clipboard_image_2.png" style="width: 728px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20140i00D94CCAD692B9AA/image-dimensions/728x517?v=v2" width="728" height="517" role="button" title="clipboard_image_2.png" alt="clipboard_image_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-By/m-p/1628471#M46754</guid>
      <dc:creator>garethct89</dc:creator>
      <dc:date>2024-11-16T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group By</title>
      <link>https://community.qlik.com/t5/App-Development/Group-By/m-p/1628811#M46788</link>
      <description>&lt;P&gt;Looks like you need to add "where QualCon='Qual' " to your last load statement.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 21:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Group-By/m-p/1628811#M46788</guid>
      <dc:creator>Lauri</dc:creator>
      <dc:date>2019-09-26T21:17:45Z</dc:date>
    </item>
  </channel>
</rss>

