<?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 make a dimension avoiding some columns? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051545#M936653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a front end solution, you can try this as your calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Subscription='B', 'Free', If(Aggr(NODISTINCT Count({&amp;lt;Subscription = {'B'}&amp;gt;}Subscription), CustomerID) &amp;gt; 0, Null(), 'Premium'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114983_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 14:14:34 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-02-17T14:14:34Z</dc:date>
    <item>
      <title>How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051541#M936649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody, i am new here in the community but i am not new in QV, but I have found an issue I dont know how to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have something like that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="250" style="width: 125px; height: 251px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="64"&gt;CustomerID&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="92"&gt;Subscription&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what I want to do is to count the customers by their subscription. There are 4 types of subscription (A, B, C and D) but I really want to separate them by: PremiumSubscription and FreeSubscription.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FreeSubscription is B. And that means that if a customer has 4 subscriptions and within them is the subscription B, the customer has a FreeSubscription. And of course, if he only has B subscription, it has FreeSubscription.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On the other hand, if a customer doesnt have B subscription, he will have a&amp;nbsp; PremiumSubscription.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, the result I would like to have is the shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 147px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="83"&gt;&lt;/TD&gt;&lt;TD class="xl66" width="64"&gt;nº&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;Premium&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Free&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;TOTAL&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I am obtainig in QV is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="100" style="width: 149px; height: 101px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="83"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="64"&gt;QV&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;Premium&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;Free&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: none;"&gt;TOTAL&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing this:&lt;/P&gt;&lt;P&gt;1) Calculated dimension: =If(subscription='B', 'Free', 'Premium') &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;lt;-- THE PROBLEM IS CLEARLY HERE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2) Expression: =count(DISTINCT CustomerID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the dimension, cause I am counting a customer as Premium even if he has B subscription, and customer with more than one subscription containig B should be only in FreeSubscription.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have explained my problem well, and you can help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051541#M936649</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051542#M936650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the attached qvw:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 13:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051542#M936650</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2016-02-17T13:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051543#M936651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry man, I have QV personal edition and cannot open it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what is it doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 13:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051543#M936651</guid>
      <dc:creator />
      <dc:date>2016-02-17T13:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051544#M936652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the bellow script...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14557176365461975 jive_text_macro" jivemacro_uid="_14557176365461975" modifiedtitle="true"&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;CustomerID,Subscription&lt;/P&gt;
&lt;P&gt;1,A&lt;/P&gt;
&lt;P&gt;1,B&lt;/P&gt;
&lt;P&gt;1,C&lt;/P&gt;
&lt;P&gt;1,D&lt;/P&gt;
&lt;P&gt;2,B&lt;/P&gt;
&lt;P&gt;3,B&lt;/P&gt;
&lt;P&gt;3,C&lt;/P&gt;
&lt;P&gt;4,A&lt;/P&gt;
&lt;P&gt;5,D&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join&lt;/P&gt;
&lt;P&gt;Temp1:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;CustomerID,&lt;/P&gt;
&lt;P&gt;'Free' as Subscription_Type&lt;/P&gt;
&lt;P&gt;resident Temp&lt;/P&gt;
&lt;P&gt;where Subscription='B';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;Load &lt;/P&gt;
&lt;P&gt;CustomerID,&lt;/P&gt;
&lt;P&gt;Subscription,&lt;/P&gt;
&lt;P&gt;if(isnull(Subscription_Type),'Premium',Subscription_Type) as Subscription_Type&lt;/P&gt;
&lt;P&gt;resident Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051544#M936652</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-17T14:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051545#M936653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a front end solution, you can try this as your calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Subscription='B', 'Free', If(Aggr(NODISTINCT Count({&amp;lt;Subscription = {'B'}&amp;gt;}Subscription), CustomerID) &amp;gt; 0, Null(), 'Premium'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114983_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051545#M936653</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-17T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051546#M936654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mwoolf"&gt;m w&lt;/A&gt;‌ suggested to do this why script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14557433839531757" jivemacro_uid="_14557433839531757"&gt;
&lt;P&gt;DataTemp:&lt;/P&gt;
&lt;P&gt;load * inline [&lt;/P&gt;
&lt;P&gt;CustomerID,Subscription&lt;/P&gt;
&lt;P&gt;1,A&lt;/P&gt;
&lt;P&gt;1,B&lt;/P&gt;
&lt;P&gt;1,C&lt;/P&gt;
&lt;P&gt;1,D&lt;/P&gt;
&lt;P&gt;2,B&lt;/P&gt;
&lt;P&gt;3,B&lt;/P&gt;
&lt;P&gt;3,C&lt;/P&gt;
&lt;P&gt;4,A&lt;/P&gt;
&lt;P&gt;5,D&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DataTemp1:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(Subscription='B',1,0) as Free&lt;/P&gt;
&lt;P&gt;Resident DataTemp;&lt;/P&gt;
&lt;P&gt;drop table DataTemp;&lt;/P&gt;
&lt;P&gt;join load&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomerID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Free) as FreeSum&lt;/P&gt;
&lt;P&gt;Resident DataTemp1&lt;/P&gt;
&lt;P&gt;Group by CustomerID;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop field Free;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if(FreeSum = 0,'Premium','Free') as SubscriptionType&lt;/P&gt;
&lt;P&gt;resident DataTemp1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop table DataTemp1;&lt;/P&gt;
&lt;P&gt;Drop field FreeSum;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;His output looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115042_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051546#M936654</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-17T21:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051547#M936655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chart with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;=ValueList('Free', 'Premium')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;pick(match(ValueList('Free', 'Premium'), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Free', &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Premium'),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count({&amp;lt;Subscription={B}&amp;gt;} DISTINCT CustomerID), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(TOTAL DISTINCT CustomerID) - Count({&amp;lt;Subscription={B}&amp;gt;} DISTINCT CustomerID)) &lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051547#M936655</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-17T21:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051548#M936656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, just create a chart with no dimension and three expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Total:&lt;/P&gt;&lt;P&gt;=Count(DISTINCT CustomerID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Subscription = {'B'}&amp;gt;}DISTINCT CustomerID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Premium:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;CustomerID = e({&amp;lt;Subscription = {B}&amp;gt;})&amp;gt;} DISTINCT CustomerID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[or for premium: =Column(1) - Column(2) ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Or similar to Sunny's solution a calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr( If(Count(if(Subscription = 'B', Subscription ))&amp;gt;0, 'Free','Premium'), CustomerID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with an expression&lt;/P&gt;&lt;P&gt;=Count(DISTINCT CustomerID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use this calculated dimension also in a list box as field &amp;lt;expression&amp;gt;, so you can filter the customers by selecting &lt;EM&gt;Free&lt;/EM&gt; or &lt;EM&gt;Premium&lt;/EM&gt; value in the list box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051548#M936656</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-17T21:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051549#M936657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first solution you gave me was exactly what I was doing, but I wanted to do it softlier...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, the second solution was exactly what I was looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051549#M936657</guid>
      <dc:creator />
      <dc:date>2016-02-18T09:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051550#M936658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what ValueList does?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you M G!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 09:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051550#M936658</guid>
      <dc:creator />
      <dc:date>2016-02-18T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a dimension avoiding some columns?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051551#M936659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's difficult to explain better than here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3196"&gt;ValueList() – For those tricky situations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 19:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-make-a-dimension-avoiding-some-columns/m-p/1051551#M936659</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-18T19:22:12Z</dc:date>
    </item>
  </channel>
</rss>

