<?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 Flag Customers with Two Different Statuses in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524406#M106879</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to identify customers who have two or more different status values within the data, and I would appreciate guidance on how to achieve this both in the Edit Script and through an expression that can be used in a chart or table.&lt;/P&gt;&lt;P&gt;Thank you in advance for your support!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LoKi_asterix_0-1752666834136.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182135i0EDFB395DBB600E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LoKi_asterix_0-1752666834136.png" alt="LoKi_asterix_0-1752666834136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tried this&amp;nbsp;Sum({&amp;lt; Name = {'=Count( {1} Status) &amp;gt;1'}&amp;gt;} Purchase)&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;CustomerMonthlyStatusFlag:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;Month Year,&lt;BR /&gt;IF(COUNT(DISTINCT Status) &amp;gt;= 2, 1, 0) AS HasMultipleStatuses&lt;BR /&gt;RESIDENT YourMainTable&lt;BR /&gt;GROUP BY Number, Month Year;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 11:54:10 GMT</pubDate>
    <dc:creator>LoKi_asterix</dc:creator>
    <dc:date>2025-07-16T11:54:10Z</dc:date>
    <item>
      <title>Flag Customers with Two Different Statuses</title>
      <link>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524406#M106879</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to identify customers who have two or more different status values within the data, and I would appreciate guidance on how to achieve this both in the Edit Script and through an expression that can be used in a chart or table.&lt;/P&gt;&lt;P&gt;Thank you in advance for your support!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LoKi_asterix_0-1752666834136.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/182135i0EDFB395DBB600E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LoKi_asterix_0-1752666834136.png" alt="LoKi_asterix_0-1752666834136.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tried this&amp;nbsp;Sum({&amp;lt; Name = {'=Count( {1} Status) &amp;gt;1'}&amp;gt;} Purchase)&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;CustomerMonthlyStatusFlag:&lt;BR /&gt;LOAD&lt;BR /&gt;Number,&lt;BR /&gt;Month Year,&lt;BR /&gt;IF(COUNT(DISTINCT Status) &amp;gt;= 2, 1, 0) AS HasMultipleStatuses&lt;BR /&gt;RESIDENT YourMainTable&lt;BR /&gt;GROUP BY Number, Month Year;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 11:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524406#M106879</guid>
      <dc:creator>LoKi_asterix</dc:creator>
      <dc:date>2025-07-16T11:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Customers with Two Different Statuses</title>
      <link>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524420#M106882</link>
      <description>&lt;P&gt;I don't see anything wrong with the script code. You may want to check that the Month Year field is actually month-year and does not have an underlying date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the front end, assuming Number and Month Year are dimensions, you could just use the same formula as the expression, basically:&lt;/P&gt;&lt;P&gt;IF(COUNT(DISTINCT Status) &amp;gt;= 2, 1, 0)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 13:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524420#M106882</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2025-07-16T13:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Customers with Two Different Statuses</title>
      <link>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524505#M106901</link>
      <description>&lt;P&gt;use the same script and change the set analysis as below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt; HasMultipleStatuses = {1}&amp;gt;} Purchase)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Priyanka&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 06:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Flag-Customers-with-Two-Different-Statuses/m-p/2524505#M106901</guid>
      <dc:creator>priyanka181088</dc:creator>
      <dc:date>2025-07-17T06:13:26Z</dc:date>
    </item>
  </channel>
</rss>

