<?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: How to group the data based on condition in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1876084#M72218</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can you please try the following approach and let me know if it works for your use case scenario?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1. I have recreated the same dataset in Qlik Sense:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/e0281b7e-1aa4-40f5-bc1b-aaa26770c9bf.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Using the expression:&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0", "R1", "R2", "R2+"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; will give you the &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;count 3&lt;/STRONG&gt;&lt;/SPAN&gt;, as you are counting all the unique IDs where&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="color:#f39c12"&gt;Readiness &lt;/SPAN&gt;&lt;/STRONG&gt;is not &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;NULL&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;3. Using the expression: &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; will give you the &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;count 1&lt;/STRONG&gt;&lt;/SPAN&gt;, as you are counting only the unique IDs where &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness &lt;/STRONG&gt;&lt;/SPAN&gt;is &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;R0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;4. Combining both expressions into one:&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0", "R1", "R2", "R2+"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;) - &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;, will give you the &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;count 2&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/caf78418-0d72-44e6-a5fb-dbe048b0c3aa.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;&lt;STRONG&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;
&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 10:41:28 GMT</pubDate>
    <dc:creator>Andrei_Cusnir</dc:creator>
    <dc:date>2021-12-30T10:41:28Z</dc:date>
    <item>
      <title>How to group the data based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1875970#M72211</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I need your help to get solution for my below query.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the below attached screenshot, I required to identify/count the unique ID's where Readiness is not equal to R0. In the attached example, the answer will be 2 count (60019249,60020272) which doesn't have R0. If i use set analysis then the 3rd ID also counted which is wrong. Also, i tried with Aggr function for ID. But no expected result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request your help at the earliest pls..&lt;/P&gt;
&lt;P&gt;Happy New Year&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":bouquet:"&gt;💐&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,Bala&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 02:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1875970#M72211</guid>
      <dc:creator>Bala_s</dc:creator>
      <dc:date>2021-12-30T02:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the data based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1876084#M72218</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can you please try the following approach and let me know if it works for your use case scenario?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1. I have recreated the same dataset in Qlik Sense:&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/e0281b7e-1aa4-40f5-bc1b-aaa26770c9bf.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;2. Using the expression:&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0", "R1", "R2", "R2+"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; will give you the &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;count 3&lt;/STRONG&gt;&lt;/SPAN&gt;, as you are counting all the unique IDs where&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="color:#f39c12"&gt;Readiness &lt;/SPAN&gt;&lt;/STRONG&gt;is not &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;NULL&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;3. Using the expression: &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt; will give you the &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;count 1&lt;/STRONG&gt;&lt;/SPAN&gt;, as you are counting only the unique IDs where &lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness &lt;/STRONG&gt;&lt;/SPAN&gt;is &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;R0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;4. Combining both expressions into one:&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0", "R1", "R2", "R2+"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;) - &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;( {&amp;lt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;Readiness&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;={"R0"}&amp;gt;} &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;, will give you the &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;count 2&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/caf78418-0d72-44e6-a5fb-dbe048b0c3aa.default.PNG" /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;&lt;STRONG&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;
&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 10:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1876084#M72218</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-12-30T10:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to group the data based on condition</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1876280#M72234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146877"&gt;@Andrei_Cusnir&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the great help, It's working as expected..&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Happy New Year 2022..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Thanks, Bala&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 06:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-group-the-data-based-on-condition/m-p/1876280#M72234</guid>
      <dc:creator>Bala_s</dc:creator>
      <dc:date>2021-12-31T06:42:25Z</dc:date>
    </item>
  </channel>
</rss>

