<?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 Need some help with set_expressions !! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252017#M586018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my real app I have two Categories Cat1 and Cat2... Don't know if that matters...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 09:23:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-05T09:23:24Z</dc:date>
    <item>
      <title>Need some help with set_expressions !!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252016#M586017</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;I'm quite new to QV so it might be a very simple question to answer for some of you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart (graph) with a dimension lets say Category and Date (MMM-YYYY). What I'm trying to do is limit the Date-selectionbox to 1 selectable value that represents 1 month of 1 year. The graph then needs to show the selected month compared with 3 previous months. As expression lets say I just want to count the A-values so something like &lt;STRONG&gt;Sum(if(Value='A',1,0))&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to make this setup by using a set expression &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Sum( { 1 &amp;lt; Date={ " &amp;gt;=$(=AddMonths(Date,-3)) &amp;lt;$(=AddMonths(Date,1)) " } &amp;gt; } if(Value='A',1,0) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Graph works for the date, it show only the period that I need. But when I make a subselection of Categories, it keeps showing the full result, so all possible Categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried removing the leading &lt;STRONG&gt;1&lt;/STRONG&gt; but that only shows the current selected month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas ? Maybe the setup that I have in mind needs another approach...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 09:07:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252016#M586017</guid>
      <dc:creator />
      <dc:date>2011-08-05T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Need some help with set_expressions !!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252017#M586018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my real app I have two Categories Cat1 and Cat2... Don't know if that matters...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 09:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252017#M586018</guid>
      <dc:creator />
      <dc:date>2011-08-05T09:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with set_expressions !!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252018#M586019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Not sure my understanding is correct, Try this below expression and check.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Sum({&amp;lt; Date *={ "&amp;gt;=$(=AddMonths(Date,-3)) &amp;lt;$(=AddMonths(Date,1)) " },Value *={'A'} &amp;gt; } 1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 09:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252018#M586019</guid>
      <dc:creator />
      <dc:date>2011-08-05T09:25:19Z</dc:date>
    </item>
    <item>
      <title>Need some help with set_expressions !!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252019#M586020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer, but unfortunately that didn't realy fullfil my needs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to select 1 Index date, that has to be seen in the graph as a period of that month and 3 preceding months. I managed to do that with the set expression I mentioned before but it overrules the Category selection too. It should only overrule the Date selection to show a period of 4 months instead of the selected month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the graph I see full set of Categories, no matter the selection...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 10:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252019#M586020</guid>
      <dc:creator />
      <dc:date>2011-08-05T10:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with set_expressions !!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252020#M586021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thought of something like ...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;[Cat1]=,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cat2]=,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [IndexDate]={"&amp;gt;=$(var3MonthsAgo) &amp;lt;$(varNextMonth)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Value='G',1,0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I only see 1 month, the selected Month, not the timespan...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this setup I would need the IndexDate calculation be done on the total dataset...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 11:09:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252020#M586021</guid>
      <dc:creator />
      <dc:date>2011-08-05T11:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with set_expressions !!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252021#M586022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I needed a date island... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 08:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-some-help-with-set-expressions/m-p/252021#M586022</guid>
      <dc:creator />
      <dc:date>2011-08-09T08:06:10Z</dc:date>
    </item>
  </channel>
</rss>

