<?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 With Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177499#M382021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a number field. To be specific, I select 201603 in a list box. From there&amp;nbsp; AcctPeriodYear = NUM(Left(201603, 4)). and AcctPeriodMonth =NUM( right(201603, 2)). My expression is the one stated above. I checked the summation and it is years 2015 and 2016 and the months &amp;lt;= 3. Yes it is a YTD summation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jul 2016 14:40:15 GMT</pubDate>
    <dc:creator>callen973</dc:creator>
    <dc:date>2016-07-05T14:40:15Z</dc:date>
    <item>
      <title>Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177496#M382018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning all. I am farily new to Qlikview and I am having an issue with a set analysis. I have selected a time period of 201603 which I break into two vaiables AcctPeriodYear = 2016 and AcctPeriodMonth = 3 and I wrapped both assignments with the Num(). In my set analsis it is ignoring the comparison portion and giving me all years while the month protion is working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;=SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Acct Period Year]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"=$(AcctPeriodYear)"&lt;/SPAN&gt;}, &lt;SPAN style="color: #800000;"&gt;[Acct Period Month]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"&amp;lt;=$(AcctPeriodMonth)"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Revenue]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can anyone possibly see why I am getting all years instead of just the year of the selected value?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177496#M382018</guid>
      <dc:creator>callen973</dc:creator>
      <dc:date>2016-07-05T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177497#M382019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;=SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;[Acct Period Year]&lt;/SPAN&gt;={'&lt;SPAN style="color: #800000;"&gt;=$(AcctPeriodYear)'&lt;/SPAN&gt;}, &lt;SPAN style="color: #800000;"&gt;[Acct Period Month]&lt;/SPAN&gt;={'&lt;SPAN style="color: #800000;"&gt;=$(AcctPeriodMonth)'&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;[Revenue]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177497#M382019</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2016-07-05T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177498#M382020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to calculated Year to Date Revenue in your chart? Can you share more information as to your timeperiod field? Is it a date field or a number field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177498#M382020</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-05T14:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177499#M382021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a number field. To be specific, I select 201603 in a list box. From there&amp;nbsp; AcctPeriodYear = NUM(Left(201603, 4)). and AcctPeriodMonth =NUM( right(201603, 2)). My expression is the one stated above. I checked the summation and it is years 2015 and 2016 and the months &amp;lt;= 3. Yes it is a YTD summation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177499#M382021</guid>
      <dc:creator>callen973</dc:creator>
      <dc:date>2016-07-05T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177500#M382022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have changed my set analysis to where it only looks at the AcctPeriodMonth and hard coded the data model so the AcctPeriodYear = 2016 and my expression was correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177500#M382022</guid>
      <dc:creator>callen973</dc:creator>
      <dc:date>2016-07-05T14:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177501#M382023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have fixed my issue and I thank you for the comments. Here is my fix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;[Acct period Year]={'$(AcctPeriodYear)'}, [Acct Period Month]={'&amp;lt;=$(AcctPeriodMonth)'}&amp;gt;} [Revenue])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced teh double ticks with single ticks. I also removed the '=' infront of $(AcctPeriodYear).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177501#M382023</guid>
      <dc:creator>callen973</dc:creator>
      <dc:date>2016-07-05T15:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177502#M382024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although you have been able to get this fixed, I would seriously consider you to changing your number field (201603) into a date field. It would be useful to work with in the future &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177502#M382024</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-05T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177503#M382025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the expression in a Straight Table, remove the label setting and the substituted expression will be displayed in the heading. What does the expression look like after $() expansion? You should be able to right click the heading and copy to clipboard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177503#M382025</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-05T15:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis With Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177504#M382026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The single ticks are correct when you removed the "=" sign. The second one, with "&amp;lt;=", should use double quotes. I know it works, but that's because the syntax is not enforced, but it may be some day. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-With-Variable/m-p/1177504#M382026</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-05T15:44:55Z</dc:date>
    </item>
  </channel>
</rss>

