<?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: Problem with a simple Set Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758844#M270045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..have you tried something like below : ignoring selection in year-month but removing Period =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month = , Year-Month= &amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Sum({$&amp;lt; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month =&amp;nbsp; &amp;gt;}[Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;or since you mentioned period being the linking field something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px; background-color: rgba(255, 255, 255, 0);"&gt;Sum({$&amp;lt;Period={$(=Max({$&amp;lt;PeriodID = {$(=Max(PeriodID)-1)}&amp;gt;}Period))},&lt;/SPAN&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0); color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px; line-height: 1.5em;"&gt;Year = , Quarter = , Month = , Year-Month= &amp;gt;}[Sales])...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;if these dont work you could try to check out the unique monthid in this post linked below and create it in you calendar and fact table as the linking field instead of using Period:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; &lt;A href="https://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/" title="https://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/"&gt;The Magic of Set Analysis – Point In Time Reporting | iQlik - Everything QlikView.&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 15:39:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-20T15:39:54Z</dc:date>
    <item>
      <title>Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758835#M270036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following advice from literature and forum contributions I have created a master calendar with fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period&lt;/P&gt;&lt;P&gt;Year&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Year-Month&lt;/P&gt;&lt;P&gt;Quarter&lt;/P&gt;&lt;P&gt;PeriodID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 'Period' is simply YYYYMM linking it to an identical field in the main data table.&lt;/P&gt;&lt;P&gt;The field 'PeriodID' is autonumbering the records to create a unique identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My app has a Multi Box for the selction of a customer and a month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have observed is that my expression to calculate the sales for a customer in the previous month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month = , Period = &amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only returns a value &amp;gt;0 when I use the fields 'Period' or 'PeriodID' for selections in the Multi Box. When I use the field 'Year-Month'&amp;nbsp; the result of the expression is 0.&lt;/P&gt;&lt;P&gt;I have validated that Max(PeriodID)-1 returns a correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea where the problem is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758835#M270036</guid>
      <dc:creator />
      <dc:date>2015-03-20T11:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758836#M270037</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; font-size: 13px;"&gt;try like below,&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;PeriodID = {"$(=Max(PeriodID)-1)"},&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758836#M270037</guid>
      <dc:creator />
      <dc:date>2015-03-20T11:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758837#M270038</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; font-size: 13px;"&gt;try&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;Sum({$&amp;lt;Year-Month = ,&amp;nbsp; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month = , Period = &amp;gt;}[Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758837#M270038</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-03-20T11:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758838#M270039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick responses.&lt;/P&gt;&lt;P&gt;Unfortunately in both cases, i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PeriodID = {"$(=Max(PeriodID)-1)"},&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;and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;Year-Month = ,&amp;nbsp; PeriodID = {$(=Max(PeriodID)-1)}, ..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;returned '-' instead of '0' or the correct sum.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:41:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758838#M270039</guid>
      <dc:creator />
      <dc:date>2015-03-20T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758839#M270040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tobias,&lt;/P&gt;&lt;P&gt;Since you are using the Max() function, use "{1" in your set analysis instead of the current "{$"&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758839#M270040</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2015-03-20T11:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758840#M270041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for our advice but unfortunately when I try&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month = , Period = &amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;it returns a wrong result, i.e. not the expected sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt; PeriodID = {1(=Max(PeriodID)-1)}, Year = , Quarter = , Month = , Period = &amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;the result is '-'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 11:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758840#M270041</guid>
      <dc:creator />
      <dc:date>2015-03-20T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758841#M270042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The second expression is invalid. You replaced a $-sign that belonged to a dollar-substitution expression (like $(&lt;EM&gt;var&lt;/EM&gt;) ), and that was &lt;EM&gt;not&lt;/EM&gt; a set specifier like the one in the front. $-signs are a bit schizophrenic here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 12:33:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758841#M270042</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-20T12:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758842#M270043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what you are doing is, when you select Period=201501' with autonumber value = 13, you intend to display the Sales sum for the period identified by PeriodID = autonumber value 12, correct? You are sure that PeriodID = 12 has Sales data, when you take into account that other selections (unknown to us) may reduce away all Sales data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 12:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758842#M270043</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-03-20T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758843#M270044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is data for PeriodID=12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fortunately my current set of data ranges &lt;/P&gt;&lt;P&gt;for Period from 201401 to 201412&lt;/P&gt;&lt;P&gt;and for PeriodID (autonumbered) from 1 to 12.&lt;/P&gt;&lt;P&gt;I have validated that there is data for every period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get correct results when I use 'Period' or 'PeriodID' in the Multi Box but unfortunately these expressions are not user-friendly so I'd like to use 'Year-Month' ... but it returns 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 13:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758843#M270044</guid>
      <dc:creator />
      <dc:date>2015-03-20T13:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758844#M270045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..have you tried something like below : ignoring selection in year-month but removing Period =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month = , Year-Month= &amp;gt;}[Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;Sum({$&amp;lt; PeriodID = {$(=Max(PeriodID)-1)}, Year = , Quarter = , Month =&amp;nbsp; &amp;gt;}[Sales])&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;or since you mentioned period being the linking field something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px; background-color: rgba(255, 255, 255, 0);"&gt;Sum({$&amp;lt;Period={$(=Max({$&amp;lt;PeriodID = {$(=Max(PeriodID)-1)}&amp;gt;}Period))},&lt;/SPAN&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0); color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px; line-height: 1.5em;"&gt;Year = , Quarter = , Month = , Year-Month= &amp;gt;}[Sales])...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;if these dont work you could try to check out the unique monthid in this post linked below and create it in you calendar and fact table as the linking field instead of using Period:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: UICTFontTextStyleBody; font-size: 17px;"&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; &lt;A href="https://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/" title="https://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/"&gt;The Magic of Set Analysis – Point In Time Reporting | iQlik - Everything QlikView.&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 20px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 15:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758844#M270045</guid>
      <dc:creator />
      <dc:date>2015-03-20T15:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a simple Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758845#M270046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe tis expression is correct, only the field name must be in brackets:&lt;/P&gt;&lt;P&gt;..."Year-Month"=,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 16:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-simple-Set-Expression/m-p/758845#M270046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-20T16:56:57Z</dc:date>
    </item>
  </channel>
</rss>

