<?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: Replicating this selection with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729614#M1075641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm guessing that the values of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ROLEUSER&lt;/SPAN&gt; that are not related to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ASB_INTERNAL_USERS&lt;/SPAN&gt;, have a null value in ROLENAME, is that right? if yes, then you can add a value for nulls from script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script windows add these 2 lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NULLASVALUE ROLENAME;&lt;/P&gt;&lt;P&gt;Set NullValue = 'N/A';&amp;nbsp; //This is a system variable where you can add any value you want &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reloading your qvw, ROLENAME field will have now 2 values: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ASB_INTERNAL_USERS&lt;/SPAN&gt; and N/A. This way you can handle null values in set analysis, that is what its seems to be causing trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 21:48:57 GMT</pubDate>
    <dc:creator>jaimeaguilar</dc:creator>
    <dc:date>2014-07-22T21:48:57Z</dc:date>
    <item>
      <title>Replicating this selection with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729612#M1075637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am counting the number of orders in a table, and they get split up in to three categories: Internal, External, and System. Internal and System I was able to figure out the set analysis for with no problem, but with this External I am having problems. When I have two specific list boxes showing I can select from one, then select excluded from the other and it shows me the correct number. So is there any way to achieve such output through set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attachment I have captured what the list boxes look like. So I can better explain what I do to find this number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I select the one thats all by itself (ASB_INTERNAL_USERS), that gives me a list in ROLUSER list box, which I then right click and select excluded. Is there anyway to get a representation of these users through set analysis? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried : count({&amp;lt;ROLENAME-={'ASB_INTERNAL_USERS'}&amp;gt;}ORDER_NO)&lt;/P&gt;&lt;P&gt;but this results in a 0 for the count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I was able to explain this well enough for others to understand. If more info is needed I can provide what is requested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 21:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729612#M1075637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-22T21:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating this selection with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729613#M1075638</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;You can;t&amp;nbsp; do it that way since there is no other values in ROLENAME.&lt;/P&gt;&lt;P&gt;Depending on your data model you could add something like 'Not assigned' ROLENAME for the desired set of users.&lt;/P&gt;&lt;P&gt;Or you can try something like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;ROLEUSER={'=count(ROLENAME)=0'}&amp;gt;}ORDER_NO)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 21:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729613#M1075638</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-07-22T21:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating this selection with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729614#M1075641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm guessing that the values of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ROLEUSER&lt;/SPAN&gt; that are not related to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ASB_INTERNAL_USERS&lt;/SPAN&gt;, have a null value in ROLENAME, is that right? if yes, then you can add a value for nulls from script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script windows add these 2 lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NULLASVALUE ROLENAME;&lt;/P&gt;&lt;P&gt;Set NullValue = 'N/A';&amp;nbsp; //This is a system variable where you can add any value you want &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reloading your qvw, ROLENAME field will have now 2 values: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ASB_INTERNAL_USERS&lt;/SPAN&gt; and N/A. This way you can handle null values in set analysis, that is what its seems to be causing trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 21:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729614#M1075641</guid>
      <dc:creator>jaimeaguilar</dc:creator>
      <dc:date>2014-07-22T21:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating this selection with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729615#M1075644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;count({&amp;lt;ROLEUSER=E({&amp;lt;&lt;SPAN style="color: #3d3d3d;"&gt;ROLENAME={'ASB_INTERNAL_USERS'}&lt;/SPAN&gt;&amp;gt;})&amp;gt;} &lt;SPAN style="color: #3d3d3d;"&gt;ORDER_NO&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 23:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729615#M1075644</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-22T23:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating this selection with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729616#M1075645</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;first clear all,&lt;/P&gt;&lt;P&gt;after selecting and excluding add bookmark and for eg say bookmark name "exc_external"&lt;/P&gt;&lt;P&gt;then add it to your exp like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$*exc_external)Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 01:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729616#M1075645</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-07-23T01:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating this selection with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729617#M1075646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everyone posted incredibly helpful answers! I was able to achieve exactly what I needed with the first answer, but the following answers didn't quite achieve the number I was looking for. But each one did give me some more insight to what I can do with qlikview to get what I want from it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for you help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 12:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replicating-this-selection-with-set-analysis/m-p/729617#M1075646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-23T12:48:48Z</dc:date>
    </item>
  </channel>
</rss>

