<?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 YTD timeframe in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193514#M54759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for your nice description.&lt;/P&gt;&lt;P&gt;But - could you provide a small example. I don't really know how to implement this only with your description.&lt;/P&gt;&lt;P&gt;Thanks in advance for your great support!&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 10:59:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-24T10:59:27Z</dc:date>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193509#M54754</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;I am trying to create a table that contains my timeframes, for an example I want to create a time frame called YTD. I have my table containing actuals,forecast and YAG data for Periods 1,2and 3. I want to creat a list of dropdowns that will contain the timefames i.e YTD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my YTD should = the sum of periods 1,2 and 3 and when I select YTD I would want all my data on the tab to change and show me the sum of all my periods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know what the best approach for creating this is and how to do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 16:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193509#M54754</guid>
      <dc:creator />
      <dc:date>2010-11-18T16:36:41Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193510#M54755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is a period? What other time frames do you want other than YTD? Are these timeframes based ONLY on today's date? Are they based on a selected date? Are they based on whatever date is in the dimension of a chart, so you could see YTD for multiple dates at the same time? Do you want to be able to see more than one time frame at the same time, such as seeing today's data, month to date data, and year to date data in the same chart? Or do you want to force them to see one and only one time frame so that it affects every chart everywhere and not just charts referencing the time frame(s)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 01:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193510#M54755</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-19T01:10:43Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193511#M54756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;a period is a month, so january would be P1, Feb P2, March P3 and so on . YTD would be the time frame which would show me the data upto the latest period so if I was in March YTD would = P3. I do want to create other timeframes like current period, previous period and , previous year, but i only want to see one timeframe at the time by making the timeframe selectable.I want to force them to see one and only one time frame so that it affects every chart everywhere and not just charts referencing the time frame&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193511#M54756</guid>
      <dc:creator />
      <dc:date>2010-11-19T09:01:10Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193512#M54757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also looking for a solution for this problem.&lt;/P&gt;&lt;P&gt;Hope anyone can help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 09:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193512#M54757</guid>
      <dc:creator />
      <dc:date>2010-11-19T09:40:26Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193513#M54758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, hopefully I understand. If so, this is easily addressed with an AsOf table like this, with example data for 2010 P3:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;AsOf:&lt;BR /&gt;AsOfPeriod, TimeFrame, Period&lt;BR /&gt;2010 P3, Current Period, 2010 P3&lt;BR /&gt;2010 P3, Previous Period, 2010 P2&lt;BR /&gt;2010 P3, YTD, 2010 P3&lt;BR /&gt;2010 P3, YTD, 2010 P2&lt;BR /&gt;2010 P3, YTD, 2010 P1&lt;BR /&gt;2010 P3, Previous Year, 2009 P12&lt;BR /&gt;2010 P3, Previous Year, 2009 P11&lt;BR /&gt;...&lt;BR /&gt;2010 P3, Previous Year, 2009 P2&lt;BR /&gt;2010 P3, Previous Year, 2009 P1&lt;/P&gt;&lt;P&gt;Create a list box for TimeFrame, select one, and then set it to "Always One Selected Value". Use AsOfPeriod in all of your charts instead of Period. Now whatever AsOfPeriod or periods they're looking at, and whatever TimeFrame they've selected, the AsOf table will map them to the correct real periods. If they select 2010 P3 and Previous Period, they'll actually be looking at 2010 P2. If they select 2010 P3 and YTD, they'll actually be looking at 2010 P1 - P3.&lt;/P&gt;&lt;P&gt;Let me know if you need help generating the table, or further clarification.&lt;/P&gt;&lt;P&gt;But... maybe this is overkill. It allows you to select periods, or use periods in charts, so that you could, for instance, select the entire year of 2010, and if you selected TimeFrame YTD, each month would show the YTD total through that month. Maybe that's more than what you need? If you ONLY need the time frame based on the current month, then you don't need this table. Well, you still need a table, but it doesn't need the AsOfPeriod, because that will ALWAYS be the current period. So it would just have TimeFrame and Period, and you'd only generate rows based on the current period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 19:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193513#M54758</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-19T19:05:27Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193514#M54759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for your nice description.&lt;/P&gt;&lt;P&gt;But - could you provide a small example. I don't really know how to implement this only with your description.&lt;/P&gt;&lt;P&gt;Thanks in advance for your great support!&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 10:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193514#M54759</guid>
      <dc:creator />
      <dc:date>2010-11-24T10:59:27Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193515#M54760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example based on what I posted. Hopefully it's roughly what you're looking for. I'll put the script below for people who are unable to open examples.&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt; date(addmonths(makedate(2008),recno()-1),'YYYY PM') as Period&lt;BR /&gt;,ceil(rand()*10) as Value&lt;BR /&gt;AUTOGENERATE 36&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;// A calendar would normally be more complicated than this.&lt;BR /&gt;// This calendar provides no useful data, but I wanted to&lt;BR /&gt;// show that you load the periods from the calendar, NOT&lt;BR /&gt;// from the data.&lt;BR /&gt;Calendar:&lt;BR /&gt;NOCONCATENATE&lt;BR /&gt;LOAD Period&lt;BR /&gt;RESIDENT Data&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;// And the periods table is similary useless, since both&lt;BR /&gt;// the Data and Calendar tables have the same periods.&lt;BR /&gt;// But in a real application, this gives us a short&lt;BR /&gt;// list of periods instead of having to continue doing&lt;BR /&gt;// load distinct.&lt;BR /&gt;Periods:&lt;BR /&gt;NOCONCATENATE&lt;BR /&gt;LOAD DISTINCT Period&lt;BR /&gt;RESIDENT Calendar&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;AsOf:&lt;BR /&gt;LOAD&lt;BR /&gt; Period as AsOfPeriod&lt;BR /&gt;,Period&lt;BR /&gt;,'Current Period' as TimeFrame&lt;BR /&gt;RESIDENT Periods&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (AsOf)&lt;BR /&gt;LOAD&lt;BR /&gt; Period as AsOfPeriod&lt;BR /&gt;,date(addmonths(Period,-1),'YYYY PM') as Period&lt;BR /&gt;,'Previous Period' as TimeFrame&lt;BR /&gt;RESIDENT Periods&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (AsOf)&lt;BR /&gt;LOAD&lt;BR /&gt; Period as AsOfPeriod&lt;BR /&gt;,date(addmonths(Period,1-iterno()),'YYYY PM') as Period&lt;BR /&gt;,'YTD' as TimeFrame&lt;BR /&gt;RESIDENT Periods&lt;BR /&gt;WHILE iterno()&amp;lt;=month(Period)&lt;BR /&gt;;&lt;BR /&gt;CONCATENATE (AsOf)&lt;BR /&gt;LOAD&lt;BR /&gt; Period as AsOfPeriod&lt;BR /&gt;,date(addmonths(yearstart(Period,-1),iterno()-1),'YYYY PM') as Period&lt;BR /&gt;,'Previous Year' as TimeFrame&lt;BR /&gt;RESIDENT Periods&lt;BR /&gt;WHILE iterno()&amp;lt;=12&lt;BR /&gt;;&lt;BR /&gt;INNER JOIN (AsOf)&lt;BR /&gt;LOAD Period&lt;BR /&gt;RESIDENT Periods&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE Periods;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 19:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193515#M54760</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-24T19:21:17Z</dc:date>
    </item>
    <item>
      <title>YTD timeframe</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193516#M54761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;you are my Heroe &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;After a while of trying this, it's working for my case, too!&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 08:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-timeframe/m-p/193516#M54761</guid>
      <dc:creator />
      <dc:date>2010-11-26T08:50:11Z</dc:date>
    </item>
  </channel>
</rss>

