<?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 - Set Modifier with Variable and Less Than or Equal too in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325100#M581824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Went to try the 2nd ﻿suggsetion and found I had a typo in your first suggestion.&amp;nbsp; That worked!! Thank you so much for helping a noob!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 20:05:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-16T20:05:51Z</dc:date>
    <item>
      <title>Set Analysis - Set Modifier with Variable and Less Than or Equal too</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325096#M581820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a chart using set analysis that will show all years up to what the user has selected.&amp;nbsp; I have a "Year" selection box set to "must have one value selected" with values from 2008-2011.&amp;nbsp; If the user selects 2010, the chart needs to show 2008-2010.&amp;nbsp; If the user selects 2011, looking for chart to show 2008-2011.&amp;nbsp; Attempting to use set analysis with less than or equal.&amp;nbsp; I have tried putting the less than or equal to on the Year field itself or with a variable that returns the value of the year currently selected.&amp;nbsp; Neither case works.&amp;nbsp; However, if I hard code in a year, the less than or equal to will work.&amp;nbsp; Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿= sum ( { 1 &amp;lt; Year = { "&amp;lt;= 2010"}&amp;gt;} Balance) works fine, and no matter what value is selected in the Year field, my chart is correctly showing the sum for years 2008, 2009, and 2010.&amp;nbsp; However, when I attempt to use either the Year field itself, or a variable returning the value of the field, as shown below, I get "No Data to display"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum (﻿﻿ { 1 &amp;lt; Year = { "&amp;lt;=Year"}&amp;gt;} Balance) does not work, returns no data to display, also:&lt;/P&gt;&lt;P&gt;= sum ( { 1 &amp;lt; Year = { "$(&amp;lt;=$(YearSelected))"} &amp;gt; } Balance) returns no data to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YET, if I remove the less than symbol from the code with the variable name, and just keep the = sign, the chart will display the single data point for the year selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= sum ( { 1 &amp;lt; Year = {"$(=$(YearSelected))"} &amp;gt; } Balance) returns the single data point for the currently selected year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming I must have a syntax error somewhere, but my syntax follows what I've found in other threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I just totally missing something??? &lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325096#M581820</guid>
      <dc:creator />
      <dc:date>2011-11-16T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Set Modifier with Variable and Less Than or Equal too</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325097#M581821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;{$&amp;lt; Year = {"&amp;lt;=$(=Max(Year))"}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:47:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325097#M581821</guid>
      <dc:creator />
      <dc:date>2011-11-16T18:47:20Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Set Modifier with Variable and Less Than or Equal too</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325098#M581822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Appriciate the fast response, but unfortunetly that also returns "no data to display"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are on QV v9, SR 6 if that matters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325098#M581822</guid>
      <dc:creator />
      <dc:date>2011-11-16T18:53:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Set Modifier with Variable and Less Than or Equal too</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325099#M581823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt; Year = {"&amp;lt;=$(=GetFieldSelections(Year))"}&amp;gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 19:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325099#M581823</guid>
      <dc:creator />
      <dc:date>2011-11-16T19:10:23Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Set Modifier with Variable and Less Than or Equal too</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325100#M581824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Went to try the 2nd ﻿suggsetion and found I had a typo in your first suggestion.&amp;nbsp; That worked!! Thank you so much for helping a noob!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 20:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Set-Modifier-with-Variable-and-Less-Than-or-Equal/m-p/325100#M581824</guid>
      <dc:creator />
      <dc:date>2011-11-16T20:05:51Z</dc:date>
    </item>
  </channel>
</rss>

