<?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 Confusion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177947#M382161</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This didn't quite work, but pointed me in the right direction, I found that each of the elements in the PHSupplierName needed to be in () and then the whole lot needed to be in () as well. So it looked like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'}&lt;/P&gt;&lt;P&gt;,[PHBusinessUnit]-={' '}&lt;/P&gt;&lt;P&gt;,[PHSupplierName]={"=(((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;gt;10) and ((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;lt;51))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}PHDocumentNumber))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 13:46:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-18T13:46:18Z</dc:date>
    <item>
      <title>Set Analysis Confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177945#M382159</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;&lt;/P&gt;&lt;P&gt;I'm hoping this is a simple problem that I have been looking at for too long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'}&lt;/P&gt;&lt;P&gt;,[PHBusinessUnit]-={' '}&lt;/P&gt;&lt;P&gt;,[PHSupplierName]={"=((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;gt;10)"}&lt;/P&gt;&lt;P&gt;,[PHSupplierName]={"=((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;lt;51)"}&lt;/P&gt;&lt;P&gt;&amp;gt;}PHDocumentNumber))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of the individual elements of this expression work, and if I include the the first three elements everything works fine, however when i add in the fourth element the expression fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is to only show those Suppliers (the only dimension) that have between 11 and 50 unique documents within the last 180 days that have a valid business unit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using '&amp;gt;10&amp;lt;51' in a single element but that doesn't seem to work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help you can give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 11:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177945#M382159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-18T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177946#M382160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, maybe:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[PHBusinessUnit]-={' '}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[PHSupplierName]={"=((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;gt;10 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;lt;51&lt;/SPAN&gt;)"}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}PHDocumentNumber))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you use the same field two times, it only keeps the last one.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Another option:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=(count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[PHBusinessUnit]-={' '}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[PHSupplierName]={"=((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;gt;10)"}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;*&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[PHBusinessUnit]-={' '}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[PHSupplierName]={"=((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;lt;51)"}&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;&lt;SPAN style="line-height: 1.5em;"&gt;}PHDocumentNumber))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 12:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177946#M382160</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-07-18T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Confusion</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177947#M382161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This didn't quite work, but pointed me in the right direction, I found that each of the elements in the PHSupplierName needed to be in () and then the whole lot needed to be in () as well. So it looked like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'}&lt;/P&gt;&lt;P&gt;,[PHBusinessUnit]-={' '}&lt;/P&gt;&lt;P&gt;,[PHSupplierName]={"=(((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;gt;10) and ((count(DISTINCT{&amp;lt;[PHPIMInpDate]={'&amp;gt;=$(=Date(today()-180))'},[PHBusinessUnit]-={' '}&amp;gt;}PHDocumentNumber))&amp;lt;51))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}PHDocumentNumber))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Confusion/m-p/1177947#M382161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-18T13:46:18Z</dc:date>
    </item>
  </channel>
</rss>

