<?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 Count ID as zero if category has one specific value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519576#M106288</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm looking for front end expression/solution for below issue. please suggest me.&lt;/P&gt;&lt;P&gt;I need the count of distinct ID, where state of ID doesn't have 'Cancelled'.&lt;/P&gt;&lt;P&gt;ID SubID State Required output&lt;/P&gt;&lt;P&gt;101 101-1 Resolved 0&lt;/P&gt;&lt;P&gt;101 101-2 Inprogress 0&lt;/P&gt;&lt;P&gt;101 101-3 Closed 0&lt;/P&gt;&lt;P&gt;101 101-4 Cancelled 0&lt;/P&gt;&lt;P&gt;102 102-1 Resolved 1&lt;/P&gt;&lt;P&gt;102 102-2 Inprogress 1&lt;/P&gt;&lt;P&gt;102 102-3 Closed 1&lt;/P&gt;&lt;P&gt;103 103-1 Cancelled 0&lt;/P&gt;&lt;P&gt;103 103-2 Closed 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Required output is Count(distinct ID)&lt;/STRONG&gt;&amp;nbsp; as&amp;nbsp;&lt;STRONG&gt;1 that is '102' where it does not have Cancelled state&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried, Count({&amp;lt;State&amp;lt;&amp;gt;{'Cancelled'}&amp;gt;}distinct ID) but it is giving me 0 for only cancelled state row. but I need 0 for all states for that ID&lt;/P&gt;&lt;P&gt;Please do needful, your help much appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2025 07:21:06 GMT</pubDate>
    <dc:creator>bhargavikn</dc:creator>
    <dc:date>2025-05-30T07:21:06Z</dc:date>
    <item>
      <title>Count ID as zero if category has one specific value</title>
      <link>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519576#M106288</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm looking for front end expression/solution for below issue. please suggest me.&lt;/P&gt;&lt;P&gt;I need the count of distinct ID, where state of ID doesn't have 'Cancelled'.&lt;/P&gt;&lt;P&gt;ID SubID State Required output&lt;/P&gt;&lt;P&gt;101 101-1 Resolved 0&lt;/P&gt;&lt;P&gt;101 101-2 Inprogress 0&lt;/P&gt;&lt;P&gt;101 101-3 Closed 0&lt;/P&gt;&lt;P&gt;101 101-4 Cancelled 0&lt;/P&gt;&lt;P&gt;102 102-1 Resolved 1&lt;/P&gt;&lt;P&gt;102 102-2 Inprogress 1&lt;/P&gt;&lt;P&gt;102 102-3 Closed 1&lt;/P&gt;&lt;P&gt;103 103-1 Cancelled 0&lt;/P&gt;&lt;P&gt;103 103-2 Closed 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Required output is Count(distinct ID)&lt;/STRONG&gt;&amp;nbsp; as&amp;nbsp;&lt;STRONG&gt;1 that is '102' where it does not have Cancelled state&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried, Count({&amp;lt;State&amp;lt;&amp;gt;{'Cancelled'}&amp;gt;}distinct ID) but it is giving me 0 for only cancelled state row. but I need 0 for all states for that ID&lt;/P&gt;&lt;P&gt;Please do needful, your help much appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 07:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519576#M106288</guid>
      <dc:creator>bhargavikn</dc:creator>
      <dc:date>2025-05-30T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID as zero if category has one specific value</title>
      <link>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519581#M106289</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;This should do it&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[&lt;SPAN&gt;State Required&lt;/SPAN&gt;]-={'&lt;SPAN&gt;Cancelled&lt;/SPAN&gt;'}&amp;gt;}Distinct &lt;SPAN&gt;ID&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 08:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519581#M106289</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2025-05-30T08:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID as zero if category has one specific value</title>
      <link>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519583#M106291</link>
      <description>&lt;P&gt;Thank you for reply. This is giving 0 for&amp;nbsp; only cancelled state row and 1 for remaining all states.&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I want 0 for all states when one ID has at least one Cancelled state.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 08:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519583#M106291</guid>
      <dc:creator>bhargavikn</dc:creator>
      <dc:date>2025-05-30T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID as zero if category has one specific value</title>
      <link>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519590#M106292</link>
      <description>&lt;P&gt;Try this expression&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(distinct if(not wildmatch(aggr(nodistinct Concat( State, '|'),ID),'*Cancelled*'),1,0))&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 10:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519590#M106292</guid>
      <dc:creator>Dementor</dc:creator>
      <dc:date>2025-05-30T10:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count ID as zero if category has one specific value</title>
      <link>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519812#M106336</link>
      <description>&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if(Max(TOTAL&amp;lt;ID&amp;gt; Match(State,'Cancelled')),0,1)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rwunderlich_0-1748874514939.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180968iA1332C54818AF059/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rwunderlich_0-1748874514939.png" alt="rwunderlich_0-1748874514939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 14:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Count-ID-as-zero-if-category-has-one-specific-value/m-p/2519812#M106336</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-06-02T14:28:56Z</dc:date>
    </item>
  </channel>
</rss>

