<?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: Set Analysis - Count(distinct not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663691#M540298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to your dimension tab... select order_number field and tick Suppress When Value is Null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 08:17:00 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-07-28T08:17:00Z</dc:date>
    <item>
      <title>Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663688#M540295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goal : To calculated Promotional Order % to Total Orders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Total orders&amp;nbsp; = count(distinct(order_number))&lt;/P&gt;&lt;P&gt;Promotional Orders = count(DISTINCT(if(( promo_order_flag = 1),order_number,0))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;Year: year_no&lt;/P&gt;&lt;P&gt;(if I use:&amp;nbsp; if ( promo_order_flag=1, year_no)&amp;nbsp; Then I get correct count for Promotional orders, else I am getting unwanted blank rows&lt;/P&gt;&lt;P&gt;Month:&lt;/P&gt;&lt;P&gt;Day:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate Promotional Order %&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I changed expression of Total Orders = count( {$&amp;lt;promo_order_flag =, year_no=, day_no=, month_no=, redemption_type=&amp;gt;}distinct order_number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still I am getting same count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove promo_order_flag=1 from dimension (year_no): Then I get correct count, but getting unwanted rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest where I am doing wrong! OR How to modify statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks in Advance&lt;/P&gt;&lt;P&gt;- Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663688#M540295</guid>
      <dc:creator />
      <dc:date>2014-07-28T07:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663689#M540296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="screenshot.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/63241_screenshot.png" style="width: 620px; height: 166px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663689#M540296</guid>
      <dc:creator />
      <dc:date>2014-07-28T07:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663690#M540297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepayan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please attach your qvw?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sabal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 07:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663690#M540297</guid>
      <dc:creator />
      <dc:date>2014-07-28T07:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663691#M540298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to your dimension tab... select order_number field and tick Suppress When Value is Null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 08:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663691#M540298</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-28T08:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663692#M540299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case I suppress NULL Values, It suppress orders as well. (total Orders)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663692#M540299</guid>
      <dc:creator />
      <dc:date>2014-07-28T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663693#M540300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kindly provide sample apps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663693#M540300</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-28T09:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663694#M540301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663694#M540301</guid>
      <dc:creator />
      <dc:date>2014-07-28T09:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663695#M540302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Document Attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663695#M540302</guid>
      <dc:creator />
      <dc:date>2014-07-28T09:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663696#M540303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of calculated dimension&lt;/P&gt;&lt;P&gt;=if(promo_order_flag=1,order_number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using order_number only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still now working, let me know what exactly the output you want..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663696#M540303</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-28T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663697#M540304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As mentioned above in GOAL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to calculate &lt;STRONG&gt;Promotional order % w.r.t Total Orders&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which will be:&lt;STRONG&gt; Promotional orders / Total Orders&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where promotional orders identifier is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;promo_order_flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence it will be &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(distinct(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if(promo_order_flag=1,order_number)&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;count(distinct(order_number))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence I am looking for Total Orders which should not deviate selecting any parameters. That is why I utried to use set analysis but failed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663697#M540304</guid>
      <dc:creator />
      <dc:date>2014-07-28T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663698#M540305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=COUNT({1&amp;lt;promo_order_flag = {1}&amp;gt;}DISTINCT order_number)/COUNT({1} DISTINCT order_number)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 09:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663698#M540305</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-28T09:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - Count(distinct not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663699#M540306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is same as before:&lt;/P&gt;&lt;P&gt;1. Either Blank Lines&lt;/P&gt;&lt;P&gt;2. OR if I use it Suppressing other ordres using promotional order flag (it is as same as before)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please upload the test file I added?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;- Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 05:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Count-distinct-not-working/m-p/663699#M540306</guid>
      <dc:creator />
      <dc:date>2014-07-29T05:39:54Z</dc:date>
    </item>
  </channel>
</rss>

