<?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: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38514#M2659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;I am not sure your question. As the filter panel does not display any thing , as i never select any filed. may be below image show you what is my issue.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="display 1.png" class="jive-image image-1" src="/legacyfs/online/198089_display 1.png" style="height: 354px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Apr 2018 13:24:52 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2018-04-01T13:24:52Z</dc:date>
    <item>
      <title>count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38509#M2654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: inherit;"&gt;Hi All&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;I like to display the total number of Reason ?&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Now my reason field have 10 reason. may i know how to display it on the count column.&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;I try below , but cannot work :-&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;DIV style="text-align: inherit;"&gt;count(distinct(if(Reason=1,Reason)))&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: inherit;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;&lt;/P&gt;&lt;P style="font-family: 'QlikView Sans', sans-serif; color: #545352; font-size: 16px; text-align: inherit;"&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 10:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38509#M2654</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2018-04-01T10:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38510#M2655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I need the count total = 9 &lt;/P&gt;&lt;P&gt;Enclosed my QVF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 10:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38510#M2655</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2018-04-01T10:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38511#M2656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you limit your Reason to Reason = 1, how should a &lt;EM&gt;distinct&lt;/EM&gt; count of Reason show anything larger than One (or zero if Reason = 1 can't be found at all)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't open your QVW at the moment, but if you want a count of your values and not a distinct count, then remove the DISTINCT qualifier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 13:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38511#M2656</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-04-01T13:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38512#M2657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got the point. May i know how to check if the Reason field , have enter some text. now i assume Reason = 1 is wrong..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 13:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38512#M2657</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2018-04-01T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38513#M2658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does a filter pane show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 13:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38513#M2658</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-04-01T13:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38514#M2659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;I am not sure your question. As the filter panel does not display any thing , as i never select any filed. may be below image show you what is my issue.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="display 1.png" class="jive-image image-1" src="/legacyfs/online/198089_display 1.png" style="height: 354px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 13:24:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38514#M2659</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2018-04-01T13:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38515#M2660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum( If( Len(Trim( Reason))&amp;gt;0,1,0))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count(Reason)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 19:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38515#M2660</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-04-02T19:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38516#M2661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Stefan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you very much for your sharing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I try both your recommended expression , it display one , even those reason field is not fill with data. ( If you notice that first 4 row , the Reason field not enter any reasons , it should be 0 on the last 2 column ).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="reasons.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198201_reasons.png" style="height: 354px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 00:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38516#M2661</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2018-04-03T00:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: count(distinct(if(Reason=1,Reason))) expression cannot count how many reason ?</title>
      <link>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38517#M2662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Reason field shows a '-' value, I misunderstood this as NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need to filter this value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Reason -= {'-'}&amp;gt;}Reason)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 09:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/count-distinct-if-Reason-1-Reason-expression-cannot-count-how/m-p/38517#M2662</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-04-03T09:21:31Z</dc:date>
    </item>
  </channel>
</rss>

