<?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 Month &amp; YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566565#M211365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you saying I need to have a second calendar &lt;A href="https://community.qlik.com/qlik-users/134560"&gt;Carlos Alberto Reyes Díaz&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 15:20:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-27T15:20:24Z</dc:date>
    <item>
      <title>Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566559#M211359</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 don't understand the current and last year flags in the master calendar and was wondering if I would be able to make a straight table that allows me to see a particular month and a different YTD (ie.Month 12 and SepYTD) using flags. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I have written into my script the YTD's and how they match with each month ie. FebYTD = Month 1 &amp;amp; 2. However this has made it difficult when building my chart as it will only let me select a month that is linked with the particular YTD. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have also tried to use set analysis so that month will not be taken into account when calculating the YTD column but it makes no difference. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at lots of links on the community, but cant seem to find my answer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566559#M211359</guid>
      <dc:creator />
      <dc:date>2014-01-24T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566560#M211360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=max(Year))}, YearMonthNum={"&amp;lt;=$(=max(YearMonthNum))"}&amp;gt;}value-to-calculate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give YTD result&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566560#M211360</guid>
      <dc:creator />
      <dc:date>2014-01-24T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566561#M211361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;That was helpful but it doesn't allow me to chose a different month to the YTD. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Anna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 16:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566561#M211361</guid>
      <dc:creator />
      <dc:date>2014-01-24T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566562#M211362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how will you decide which non-related YTD and Month you want to see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Month and YTD calculations are based on you Calendar selections... if you need to have an independent Month to see different periods you'll need to add an island Month or Calendar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 19:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566562#M211362</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2014-01-24T19:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566563#M211363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took the expression from one of my application for which I can select a mont to change the reference&lt;/P&gt;&lt;P&gt;YearMonthNum is under this format YYYYMM (ex&amp;nbsp; : 201310) and is store in an Event table but you could do the same&amp;nbsp; while testing fields from MasterCalendar table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can post your qvw &lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 09:56:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566563#M211363</guid>
      <dc:creator />
      <dc:date>2014-01-27T09:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566564#M211364</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;Please check this &lt;A href="https://community.qlik.com/thread/57129"&gt;YTD Calculation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Vardhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 10:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566564#M211364</guid>
      <dc:creator />
      <dc:date>2014-01-27T10:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566565#M211365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you saying I need to have a second calendar &lt;A href="https://community.qlik.com/qlik-users/134560"&gt;Carlos Alberto Reyes Díaz&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566565#M211365</guid>
      <dc:creator />
      <dc:date>2014-01-27T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Month &amp; YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566566#M211366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well.. it depends on how you want to handle the independence of your calculations. I think you need to create a second calendar, or at least add an island month or something, because of your first post example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;"I would be able to make a straight table that allows me to see a particular month and a different YTD (ie.Month 12 and SepYTD) using flags."&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Since YTD is based on the maximum Date selected or possible, if you want to see Sep YTD, that means that you're gonna select a date field that indicates that Septmember is the maximum month, so... I can't think of how will you tell QlikView to show December on the second calculation... is it gonna be random? Or... if you want to use flags to show December in the second calculation you have to do it in the script so that when September is the max Month for YTD, December is the Month to be shown in the second calculation... but what happens if you want to change the Month to be shown in that sencond expression? In that case flags become useless... as far as I can think...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;So... I recommend to you to use an island calendar since this will make it easier for you to handle any combination.. although you'll need to use Set Analysis.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Month-YTD/m-p/566566#M211366</guid>
      <dc:creator>Carlos_Reyes</dc:creator>
      <dc:date>2014-01-27T15:34:53Z</dc:date>
    </item>
  </channel>
</rss>

