<?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 Set analysis and operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176431#M381794</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;In a straight table, I have customer as dimension, and in expression I want to count how many weeks that a customer has participated on both Tuesday &lt;EM&gt;and&lt;/EM&gt; Friday&lt;STRONG&gt; in any given week&lt;/STRONG&gt;. I'm using this set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;WeekStart=p({&amp;lt;WeekDay={'Fri'}&amp;gt;})*p({&amp;lt;WeekDay={'Tue'}&amp;gt;})&amp;gt;}distinct WeekStart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong with this set analysis? Because it's showing an incorrect number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jun 2016 09:43:54 GMT</pubDate>
    <dc:creator>sifatnabil</dc:creator>
    <dc:date>2016-06-13T09:43:54Z</dc:date>
    <item>
      <title>Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176431#M381794</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;In a straight table, I have customer as dimension, and in expression I want to count how many weeks that a customer has participated on both Tuesday &lt;EM&gt;and&lt;/EM&gt; Friday&lt;STRONG&gt; in any given week&lt;/STRONG&gt;. I'm using this set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;WeekStart=p({&amp;lt;WeekDay={'Fri'}&amp;gt;})*p({&amp;lt;WeekDay={'Tue'}&amp;gt;})&amp;gt;}distinct WeekStart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong with this set analysis? Because it's showing an incorrect number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:43:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176431#M381794</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-06-13T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176432#M381795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems correct to me, try below&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;count({&amp;lt;WeekDay={'Fri'}&amp;gt;*&amp;lt;WeekDay={'Tue'}&amp;gt;} distinct WeekStart)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176432#M381795</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-06-13T09:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176433#M381796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would need to bring in the customer in your set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a key in your data model that is made of CustomerID and Weekstart, CustomerIDWeekstart.&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;=count({&amp;lt;CustomerIDWeekstart = p({&amp;lt;WeekDay={'Fri'}&amp;gt;})*p({&amp;lt;WeekDay={'Tue'}&amp;gt;})&amp;gt;} distinct CustomerIDWeekstart)&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176433#M381796</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-13T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis and operator</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176434#M381797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sifat, try this&lt;/P&gt;&lt;P&gt;=count({&amp;lt;WeekStart=p({&amp;lt;WeekDay={'Fri'}*{'Tue'}&amp;gt;})&amp;gt;}distinct WeekStart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2016 09:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-and-operator/m-p/1176434#M381797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-13T09:52:56Z</dc:date>
    </item>
  </channel>
</rss>

