<?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 - exclude current year AND month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828095#M291551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I found how to resolve my problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I have added a new "special_period_field" to my LOAD which have this format : 'YYYYMM' (extracted from a the date field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have created a new variable : &lt;/P&gt;&lt;P&gt;vSpecialPeriod = year(ReloadTime()) &amp;amp; num( month(ReloadTime()), '00') // Returns YYYYMM value&lt;/P&gt;&lt;P&gt;=&amp;gt; The reason why I have created this variable is that QlikView don't know how to interpret this expression in the set analysis condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I've used this condition in my set analysis :&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; foo_field = {"foo_value"}, special_period_field -= {"$(=vSpecialPeriod)"} &amp;gt;}&amp;nbsp; numericField )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To conclude I would say that QlikView looks like a great tool but Set Analysis SUCKS !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 13:40:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-29T13:40:18Z</dc:date>
    <item>
      <title>Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828084#M291540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to exclude the current year AND month from my chart, but it doesn't work :&lt;/P&gt;&lt;P&gt;sum( &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field_month -= {"$(= month(ReloadTime()) )"}&amp;gt; * &amp;lt;field_year -= {"$(= year(ReloadTime()) )"}&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;nb_seconds) &lt;/P&gt;&lt;P&gt;/ 60 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828084#M291540</guid>
      <dc:creator />
      <dc:date>2015-04-14T10:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828085#M291541</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;If you are excluding the current year then what is the point to exclude the current month. it is automatically excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also you can also use today() function instead reloadtime().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:09:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828085#M291541</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2015-04-14T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828086#M291542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could have month year column then, use that as expression in set analysis to filter. &lt;/P&gt;&lt;P&gt;eg :&amp;nbsp; sum({&amp;lt;field_MY={'vCurrentMonthYear'}&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;if you have calender, then flag current month dates to some binary value so you can use that in if condition ..&lt;/P&gt;&lt;P&gt;sum(if(currentMonthFlag=0,value) where currentMonthFlag=1 for current month dates else 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828086#M291542</guid>
      <dc:creator>manojkulkarni</dc:creator>
      <dc:date>2015-04-14T10:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828087#M291543</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 want to exclude the month and the year only if both of them matches the reloadtime's month and year. If I only exclude the last year, i will lose all the months of the excluded year, that's not my goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The datetime must corresponds to the last reload datetime, not the server's datetime, this is why I use reloadtime() instead of today() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828087#M291543</guid>
      <dc:creator />
      <dc:date>2015-04-14T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828088#M291544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patil,&lt;/P&gt;&lt;P&gt;I didn't get ur question.Can you explain it clearly what you want ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Nagarjuna &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828088#M291544</guid>
      <dc:creator>nagarjuna_kotha</dc:creator>
      <dc:date>2015-04-14T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828089#M291545</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;You want to exclude only Current Day or max Reloadtime Month ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neha S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828089#M291545</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2015-04-14T12:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828090#M291546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that your first solution should work, but I think it's dirty because I have to create a new field that I will only use for this filter.&lt;/P&gt;&lt;P&gt;I would like to create a set analysis with the good conditions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:05:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828090#M291546</guid>
      <dc:creator />
      <dc:date>2015-04-14T13:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828091#M291547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My current datetime is ReloadTime(), I want to keep all the months and years of my calendar except the month and year which correspond to ReloadTime() 's month and year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828091#M291547</guid>
      <dc:creator />
      <dc:date>2015-04-14T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828092#M291548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a Set Analysis which contain a filter on my month and year fields, because I don't want to retrieve the last period obtained thanks to ReloadTime function.&lt;/P&gt;&lt;P&gt;I want to retrieve all the months and years, except the month and year which correspond to ReloadTime() 's month and year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828092#M291548</guid>
      <dc:creator />
      <dc:date>2015-04-14T14:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828093#M291549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;sum({&amp;lt;field_date =- {&amp;lt;MonthName(today())&amp;gt;}&amp;gt;}field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 14:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828093#M291549</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-14T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828094#M291550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;DateField= e({"$(=Monthname(max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DateField&lt;/SPAN&gt;)))"})&amp;gt;}Field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neha S.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:30:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828094#M291550</guid>
      <dc:creator>neha_shirsath</dc:creator>
      <dc:date>2015-04-15T06:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - exclude current year AND month</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828095#M291551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, I found how to resolve my problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I have added a new "special_period_field" to my LOAD which have this format : 'YYYYMM' (extracted from a the date field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have created a new variable : &lt;/P&gt;&lt;P&gt;vSpecialPeriod = year(ReloadTime()) &amp;amp; num( month(ReloadTime()), '00') // Returns YYYYMM value&lt;/P&gt;&lt;P&gt;=&amp;gt; The reason why I have created this variable is that QlikView don't know how to interpret this expression in the set analysis condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I've used this condition in my set analysis :&lt;/P&gt;&lt;P&gt;sum( {&amp;lt; foo_field = {"foo_value"}, special_period_field -= {"$(=vSpecialPeriod)"} &amp;gt;}&amp;nbsp; numericField )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To conclude I would say that QlikView looks like a great tool but Set Analysis SUCKS !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 13:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-exclude-current-year-AND-month/m-p/828095#M291551</guid>
      <dc:creator />
      <dc:date>2015-04-29T13:40:18Z</dc:date>
    </item>
  </channel>
</rss>

