<?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: Year-to-month set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418288#M155605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as i know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;[Year={$(=Year(Today()))}&amp;gt;}&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;Year={$(=Year(Today()))}&amp;gt;}&lt;/P&gt;&lt;P&gt;Budget)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;already makes sure, that neither Month nor Day would influence the data that is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to set the time frame for the Budget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's say it looks like the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan 1.300.000 € budget&lt;/P&gt;&lt;P&gt;Feb 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Mar 1.100.000 € budget&lt;/P&gt;&lt;P&gt;Apr 1.000.000 € budget&lt;/P&gt;&lt;P&gt;May 1.100.000 € budget&lt;/P&gt;&lt;P&gt;June 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Jul 1.200.000 € budget&lt;/P&gt;&lt;P&gt;Aug 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Sep 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Oct 1.300.000 € budget&lt;/P&gt;&lt;P&gt;Nov 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Dec 1.000.000 € budget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Budget for 2013: 13.000.000 € &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've got May 31st and Sales YTD 5.000.000 €&lt;/P&gt;&lt;P&gt;The Budget Year-to-month would be 5.500.000 €&lt;/P&gt;&lt;P&gt;That gives us a target achievement of about 91% Year-to-month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;starting june, the budget year-to-month would accumulate to 6.500.000 €&lt;/P&gt;&lt;P&gt;and we would have a target achievement rate of 77% year-to-month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I want the set analysis to set the budget dynamically according to the current month + all previous months of this year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 May 2013 09:41:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-29T09:41:46Z</dc:date>
    <item>
      <title>Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418284#M155601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to show a static year-to-month sales achievement vs. Budget with the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;[Year={$(=Year(Today()))}&amp;gt;}&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;Year={$(=Year(Today()))}&amp;gt;}&lt;/P&gt;&lt;P&gt;Budget)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, that it only shows sales achievement vs. the budget for the whole year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a dynamic set analysis expression, that also sets a time frame for months i.e. cumulative Budget from Jan to May. As soon as we're in June it should set Jan to June etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to define a dynamic Year-to-month time frame?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. month= "first month of the year" to "Current month"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 08:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418284#M155601</guid>
      <dc:creator />
      <dc:date>2013-05-29T08:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418285#M155602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have Date field in your datamodel, then try as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum({1&amp;lt;Date_Field={&amp;gt;=$(=YearStart(Today())) &amp;lt;=ToDay()}&amp;gt;}Sales)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;/&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;sum({1&amp;lt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Date_Field={&amp;gt;=$(=YearStart(Today())) &amp;lt;=ToDay()&lt;/SPAN&gt;}&amp;gt;}Budget)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards,&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 08:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418285#M155602</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-05-29T08:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418286#M155603</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;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={=$(Year(Today()))},Month=,Day=&amp;gt;}Sales)/Sum({&amp;lt;Year={=$(Year(Today()))},Month=,Day=&amp;gt;}Budget)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418286#M155603</guid>
      <dc:creator />
      <dc:date>2013-05-29T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418287#M155604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This doesn't seem to work... we have a date Field %Datum in our datamodel, but when i use your expression above it looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41786" class="jive-image-thumbnail jive-image" onclick="" alt="pic.PNG" src="https://community.qlik.com/legacyfs/online/41786_pic.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all following formulas and expressions are marked red and inactive...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418287#M155604</guid>
      <dc:creator />
      <dc:date>2013-05-29T09:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418288#M155605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as i know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;[Year={$(=Year(Today()))}&amp;gt;}&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{1&amp;lt;Year={$(=Year(Today()))}&amp;gt;}&lt;/P&gt;&lt;P&gt;Budget)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;already makes sure, that neither Month nor Day would influence the data that is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to set the time frame for the Budget:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let's say it looks like the following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jan 1.300.000 € budget&lt;/P&gt;&lt;P&gt;Feb 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Mar 1.100.000 € budget&lt;/P&gt;&lt;P&gt;Apr 1.000.000 € budget&lt;/P&gt;&lt;P&gt;May 1.100.000 € budget&lt;/P&gt;&lt;P&gt;June 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Jul 1.200.000 € budget&lt;/P&gt;&lt;P&gt;Aug 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Sep 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Oct 1.300.000 € budget&lt;/P&gt;&lt;P&gt;Nov 1.000.000 € budget&lt;/P&gt;&lt;P&gt;Dec 1.000.000 € budget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Budget for 2013: 13.000.000 € &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We've got May 31st and Sales YTD 5.000.000 €&lt;/P&gt;&lt;P&gt;The Budget Year-to-month would be 5.500.000 €&lt;/P&gt;&lt;P&gt;That gives us a target achievement of about 91% Year-to-month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;starting june, the budget year-to-month would accumulate to 6.500.000 €&lt;/P&gt;&lt;P&gt;and we would have a target achievement rate of 77% year-to-month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I want the set analysis to set the budget dynamically according to the current month + all previous months of this year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418288#M155605</guid>
      <dc:creator />
      <dc:date>2013-05-29T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418289#M155606</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;Use the expression below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;%Datum = {'&amp;gt;=$(=YearStart(ToDay()))&amp;lt;=$(=MonthEnd(ToDay()))'}&amp;gt;}Budget)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If '%Datum' has date format as DD-MM-YYYY, then replace &lt;/P&gt;&lt;P&gt;ToDay() with &lt;STRONG&gt;Date(Date#(ToDay(),"DD-MM-YYYY"),"DD-MM-YYYY")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;som&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 09:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418289#M155606</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-05-29T09:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418290#M155607</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;Could it be, that our QV (Ver. 11.11282 (SR1 64bit)) Version can't handle operators like &amp;gt;, &amp;lt;, &amp;gt;=, &amp;lt;= in a set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm constantly getting "0" as a result...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 10:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418290#M155607</guid>
      <dc:creator />
      <dc:date>2013-05-29T10:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418291#M155608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pls upload a sample QVW?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 10:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418291#M155608</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-05-29T10:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Year-to-month set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418292#M155609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems, that we've solved the problem by adding the following expression to our set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;"&amp;lt;= $(=Num(Month(Today()-1)))"&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;This seems to work for us. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Thanks to everyone who responded!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 10:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-month-set-analysis/m-p/418292#M155609</guid>
      <dc:creator />
      <dc:date>2013-05-29T10:26:04Z</dc:date>
    </item>
  </channel>
</rss>

