<?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: Using variables in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448455#M433833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to have worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=vYearPartPrior), _diMonthNum, 1))"}, [Service Year]={'$(=$(vYearPartPrior))'}&amp;gt;}[Contracted Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186316_Capture.PNG" style="height: 537px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 20:50:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-12-08T20:50:13Z</dc:date>
    <item>
      <title>Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448439#M433817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a scenario where I am using the script to generate a lot variables.&amp;nbsp; Below is the resulting text for just a small subset of those variables as seen in the Variable Overview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--vYearPartCurr&lt;/P&gt;&lt;P&gt;if(_diMonthNum = 1, [Service Year]+1, [Service Year])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--vYearPartPrior&lt;/P&gt;&lt;P&gt;if(_diMonthNum = 1, [Service Year], [Service Year]-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--vExpCurr_A&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=&lt;STRONG&gt;vYearPartCurr&lt;/STRONG&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--vExpPrior_A&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=&lt;STRONG&gt;vYearPartPrior&lt;/STRONG&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, [Service Year]={$(=&lt;STRONG&gt;vYearPartPrior&lt;/STRONG&gt;)}, Group=&amp;gt;}[Contracted Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vYearPartCurr and &lt;SPAN style="font-size: 13.3333px;"&gt;vYearPartPrior represent the correct years when I test them in a Text Box object.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The &lt;SPAN style="font-size: 13.3333px;"&gt;expression &lt;/SPAN&gt;vExpCurr_A shows the correct values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The problem I am having is that I do not get any values for the expression using &lt;SPAN style="font-size: 13.3333px;"&gt;vExpPrior_A.&amp;nbsp; The expressions are basically the same except this one has an addition filter on [Service Year], and even if I remove that portion from the set analysis, it still is not working.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I just don't understand why the behavior is different between my 2 expressions of &lt;SPAN style="font-size: 13.3333px;"&gt;vExpCurr_A and &lt;SPAN style="font-size: 13.3333px;"&gt;vExpPrior_A.&amp;nbsp; I'm hoping someone can see something I don't or perhaps even offer a different/better approach.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 20:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448439#M433817</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-07T20:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448440#M433818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked the variable overview to make sure that the expression still looks the same after the reload? The reason I ask this is because $ sign expansion get evaluated in the script and sometimes you would see parts of the expressions missing from your variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 20:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448440#M433818</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-07T20:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448441#M433819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syntax posted in the thread was actually copied from the Variable Overview.&amp;nbsp; So with that said, even if I just test my working expression (ie, variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;vExpCurr_A)&lt;/SPAN&gt; with the full syntax &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;which is &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vYearPartCurr&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount]), it works.&amp;nbsp; &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;Now, if I take that same syntax but replace &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vYearPartCurr &lt;/STRONG&gt;with &lt;STRONG&gt;vYearPartPrior&lt;/STRONG&gt;, and just test that much of it (without the Service Date filter in the set analysis), that does not work.&amp;nbsp; That baffles me because both &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;vYearPartCurr &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;with &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vYearPartPrior&lt;/STRONG&gt; give me the correct value in a text box object, but I don't understand why set analysis likes it for the vExpCurr_A expression but not vExpPrior_A. &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;Hopefully that makes sense.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 21:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448441#M433819</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-07T21:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448442#M433820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try to remove the = sign within the dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(vYearPartCurr), _diMonthNum, 1))"}, GROUP_KEY = {$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 01:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448442#M433820</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T01:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448443#M433821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you are trying with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate(&lt;SPAN style="color: #ff0000;"&gt;if(_diMonthNum = 1, [Service Year]+1, [Service Year])&lt;/SPAN&gt;, _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try this in Text object and show the result?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #000000; font-size: 13.3333px;"&gt;MakeDate(if(_diMonthNum = 1, [Service Year]+1, [Service Year]), _diMonthNum, 1)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 01:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448443#M433821</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-08T01:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448444#M433822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Yes, that is basically what is occurring. And the result I get from the MakeDate statement (my “current date” scenario) is a correct date like this:&amp;nbsp; 1/1/2018.&amp;nbsp; If I run the other one (my “prior date” scenario) , &lt;/SPAN&gt;&lt;STRONG style="color: black; font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;MakeDate(if(_diMonthNum = 1, [Service Year], [Service Year]-1), _diMonthNum, 1), &lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;that also gives me a correct date, ie 1/1/2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 16:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448444#M433822</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T16:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448445#M433823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is that &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date format in your field?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 16:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448445#M433823</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-08T16:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448446#M433824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I've tried with and without the "=" and with and without single quotes, but I don't see why I'd have to when I’m running the same expression but with 2 different variables that both seem to provide the correct date.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;How is it that I can run this expression with success:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;S&lt;/SPAN&gt;um({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=&lt;SPAN style="background: yellow;"&gt;vYearPartCurr&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;But this one is not successful:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=&lt;/SPAN&gt;&lt;SPAN style="background: yellow;"&gt;vYearPartPrior&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I’m totally stumped.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 16:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448446#M433824</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448447#M433825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see what might be going on... to test my theory, can you select &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_diMonthNum = 1. When you do this, I expect that the first expression (which worked previously) will not work anymore. and the second expression (with did not work, will start working). Can you check if my theory is right or not?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 16:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448447#M433825</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T16:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448448#M433826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter what _diMonthNum is selected, my current date expr always works and the prior date expr never works. And I doubt it matters but I'll mention that I have a data island with fields _diMonthNum and _diMonthName, where the user selects the _diMonthName (ie, Jan, Feb,) and behind the scenes I am using _diMonthNum to build a date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 17:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448448#M433826</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T17:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448449#M433827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the question, so I'm not sure if this answers it.&amp;nbsp; The user selects a Service Year (ie, 2016, 2017) and a Month (ie, Jan, Feb) and I build the date in my variables which is always going to be the first of the month.&amp;nbsp; The Service Year is tied to my data model (star schema) and my Month is a data island not tied to the data model, and used to just build a date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 17:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448449#M433827</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448450#M433828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_diMonthName used as a dimension when you check this? Would you be able to share a sample to test it out?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 17:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448450#M433828</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T17:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448451#M433829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll dummy up an app with sample data;&amp;nbsp; have personal info due to working with health data.&amp;nbsp; Will respond back when I have that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 18:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448451#M433829</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T18:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448452#M433830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I decided to try this as well as my expression and I've narrowed it down to the fact that it does not like the -1.&amp;nbsp; So I'll keep playing with this and see if there is another way to accomplish that.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate(if(_diMonthNum = 1, [Service Year], [Service Year]&lt;SPAN style="background: aqua;"&gt;-1&lt;/SPAN&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount]).&lt;/STRONG&gt;The other expression works because I don’t use that, rather it has a +1, which it doesn’t seem to mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448452#M433830</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T19:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448453#M433831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was sort of where I was getting at... try to wrap it around with () and see if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate(if(_diMonthNum = 1, [Service Year], &lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;[Service Year]-1&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;), _diMonthNum, 1))"}, GROUP_KEY={$(=vGroup_A)}, Group=&amp;gt;}[Contracted Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 19:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448453#M433831</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448454#M433832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's an application to experiment with.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448454#M433832</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T20:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448455#M433833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to have worked for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=vYearPartPrior), _diMonthNum, 1))"}, [Service Year]={'$(=$(vYearPartPrior))'}&amp;gt;}[Contracted Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/186316_Capture.PNG" style="height: 537px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:50:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448455#M433833</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T20:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448456#M433834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively, create the variable vYearPartPrior like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(_diMonthNum = 1, [Service Year], ([Service Year]-1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use your current expression as is&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=vYearPartPrior), _diMonthNum, 1))"}, [Service Year]={'$(=vYearPartPrior)'}&amp;gt;}[Contracted Amount])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 20:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448456#M433834</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-08T20:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using variables in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448457#M433835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still have to do some more testing but this did return results, thanks.&amp;nbsp; I see you changed this portion, &lt;STRONG&gt;[Service Year]={'$(=$(vYearPartPrior))'}&lt;/STRONG&gt; . Our app is super over engineered with tons of crazy date stuff, and combine that with all the symbol mumbo jumbo (‘, $, (), =, etc) and this stuff gets overwhelming quickly.&amp;nbsp;&amp;nbsp; Then after some testing of actual values/results on my end I realized I’m using the wrong year here!&amp;nbsp; &lt;/P&gt;&lt;P&gt;So the expression that is actually correct after some spot checking is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date={"$(='&amp;lt;'&amp;amp; MakeDate($(=vYearPartPrior), _diMonthNum, 1))"}, &lt;SPAN style="background: yellow;"&gt;[Service Year]={$(=([Service Year])-1)}&lt;/SPAN&gt;&amp;gt;}[Contracted Amount])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help, I very much appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-variables-in-set-analysis/m-p/1448457#M433835</guid>
      <dc:creator>kdmarkee</dc:creator>
      <dc:date>2017-12-08T22:22:26Z</dc:date>
    </item>
  </channel>
</rss>

