<?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 syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536417#M1139480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bear with me, I'm new to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression which seems to work for the sum of net sales during fiscal period 201212&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;FiscalPeriod = {"201212"} &amp;gt;}NetSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the following expression does not work for the sum of net sales between fiscal periods 201212 thru 201302&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;FiscalPeriod = {"&amp;gt;=201212 &amp;lt;=201302"} &amp;gt;}NetSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&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 style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;For some reason I can’t reply on&lt;BR /&gt;this post… anyway&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;Sorry to say guys, none of the&lt;BR /&gt;suggestions have worked. (BTW Steve, I believe you left out a single quote in&lt;BR /&gt;your expression.) I would rather not post the actual file due to size and the&lt;BR /&gt;fact that it is our company's financial data. However, I would really like to&lt;BR /&gt;know what is going on. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;As far as a possible bug goes, I'm&lt;BR /&gt;running v10.00.8715.5 IR 64-bit Edition (x64)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;I have the dates formatted in the&lt;BR /&gt;table load as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="color: blue; font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;(&lt;SPAN style="color: maroon;"&gt;SLGLPR&lt;/SPAN&gt;,'YYYYMM') &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;FiscalPeriod&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;and the initial load as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 8pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;='YYYYMMDD'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;I changed the initial load to the&lt;BR /&gt;following, but it had no effect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 8pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;='YYYYMM'; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 13:07:37 GMT</pubDate>
    <dc:creator>hobanwashburne</dc:creator>
    <dc:date>2013-09-18T13:07:37Z</dc:date>
    <item>
      <title>Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536417#M1139480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bear with me, I'm new to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression which seems to work for the sum of net sales during fiscal period 201212&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;FiscalPeriod = {"201212"} &amp;gt;}NetSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the following expression does not work for the sum of net sales between fiscal periods 201212 thru 201302&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;FiscalPeriod = {"&amp;gt;=201212 &amp;lt;=201302"} &amp;gt;}NetSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&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 style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;For some reason I can’t reply on&lt;BR /&gt;this post… anyway&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;Sorry to say guys, none of the&lt;BR /&gt;suggestions have worked. (BTW Steve, I believe you left out a single quote in&lt;BR /&gt;your expression.) I would rather not post the actual file due to size and the&lt;BR /&gt;fact that it is our company's financial data. However, I would really like to&lt;BR /&gt;know what is going on. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;As far as a possible bug goes, I'm&lt;BR /&gt;running v10.00.8715.5 IR 64-bit Edition (x64)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;I have the dates formatted in the&lt;BR /&gt;table load as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="color: blue; font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;(&lt;SPAN style="color: maroon;"&gt;SLGLPR&lt;/SPAN&gt;,'YYYYMM') &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: maroon;"&gt;FiscalPeriod&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;and the initial load as&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 8pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;='YYYYMMDD'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 12pt; mso-fareast-font-family: 'Times New Roman';"&gt;I changed the initial load to the&lt;BR /&gt;following, but it had no effect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 8pt; font-family: 'Times New Roman','serif'; mso-fareast-font-family: 'Times New Roman';"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Times New Roman','serif'; font-size: 8pt; mso-fareast-font-family: 'Times New Roman';"&gt;='YYYYMM'; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536417#M1139480</guid>
      <dc:creator>hobanwashburne</dc:creator>
      <dc:date>2013-09-18T13:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536418#M1139481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try single quotes &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;FiscalPeriod = {'&amp;gt;=201212 &amp;lt;=201302'} &amp;gt;}NetSales).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;That should work&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536418#M1139481</guid>
      <dc:creator />
      <dc:date>2013-09-18T13:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536419#M1139482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Could you please attache the application here? Regards Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536419#M1139482</guid>
      <dc:creator>sathishkumar_go</dc:creator>
      <dc:date>2013-09-18T13:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536420#M1139483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Single quotes should do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;However, I believe I encountered a bug with a similar model of mine, where I could not get the syntax to work out (and I spent days and involved an external consultant who couldn't figure out the issue).&amp;nbsp; So my rather ugly get out was the below formula (only use this as a last resort as I'm sure the performance is far from optimal).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;=sum({&amp;lt;FiscalPeriod = {'&amp;gt;=201212&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'} * &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FiscalPeriod = {&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;=201302'} &amp;gt;}NetSales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;The * requests the intersect of the two conditions, i.e. everything between the two dates in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;I hope that helps.&amp;nbsp; Let me know how you get on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536420#M1139483</guid>
      <dc:creator />
      <dc:date>2013-09-18T13:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536421#M1139484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the proper expression would be the following:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FiscalPeriod = {"&amp;gt;=201212"} * {"&amp;lt;=201302"} &amp;gt;} NetSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536421#M1139484</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2013-09-18T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536422#M1139485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good spot Phillippe!!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536422#M1139485</guid>
      <dc:creator />
      <dc:date>2013-09-18T13:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536423#M1139486</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;Do u check the FiscalPeriod Dateformat like "201212". If it is not means please change the Dateformat FiscalPeriod as 'YYYYMM'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use the expression like &lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FiscalPeriod={'&amp;gt;=201212 &amp;lt;=201302'}&amp;gt;}NetSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-syntax/m-p/536423#M1139486</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-09-18T13:37:59Z</dc:date>
    </item>
  </channel>
</rss>

