<?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: YTD calculation in QlikView - Simple Example needed.. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539709#M201670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, no dice still same result I am afraid..and formula is still quite complex, and has a number of wrong fields in it anyway e.g. I don;t have Sale or YearStart fields as per the attached spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading through chap 10 of "QlikView 11 for Developers" to see if this is any good however this is also proving to be hard going due to the arcane syntax.&lt;/P&gt;&lt;P&gt;it would be nice if we could 'debug' &amp;amp; step thru QV formulas - like current 4th gen languages!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 13:26:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-04T13:26:25Z</dc:date>
    <item>
      <title>YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539708#M201669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if there is a simple step by step example covering how to do YTD calculations using set analysis.&lt;/P&gt;&lt;P&gt;I've set up a mock data set that kinda replicates my data structure in the attached xlsx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a deliberately dumbed down example extracted from a far more complex DWH just so I can nut out how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously I am trying to retreive base numbers from both years as well as a MTD number for each month.&lt;/P&gt;&lt;P&gt;Currently trying to do what should be a reasonably simple YTD calculation on a single measure column and finding this impossibly difficult!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples I've looked at - (amongst others)&lt;/P&gt;&lt;P&gt;a) &lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/363423" title="http://community.qlik.com/message/363423"&gt;http://community.qlik.com/message/363423&lt;/A&gt;&lt;/P&gt;&lt;P&gt;b) &lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/docs/DOC-4321" title="http://community.qlik.com/docs/DOC-4321"&gt;http://community.qlik.com/docs/DOC-4321&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ATM I am trying the this formula from example b) above - &lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year = {$(=max(Year))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} MonthNumber))&amp;gt;$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} MonthNumber)-1)"}&amp;gt;}&amp;nbsp; Value)&lt;/P&gt;&lt;P&gt;which btw seems incredibly convoluted for something like this but then again being new to this possibly this is just 'culture shock'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is there an easy way to learn this - syntax seems incredibly difficult to understand for the more complex cases!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must also add I am using the Free edition of QV Desktop for evaluation purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(quick screen shot below of actual / desired results) &lt;/P&gt;&lt;P&gt;I am not posting the qvw since I wanted to figure out the best way to do this rather than a altered version of my (flawed) attempt!&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43621" class="jive-image" alt="_Requirements.png" src="https://community.qlik.com/legacyfs/online/43621__Requirements.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 07:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539708#M201669</guid>
      <dc:creator />
      <dc:date>2013-07-04T07:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539709#M201670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, no dice still same result I am afraid..and formula is still quite complex, and has a number of wrong fields in it anyway e.g. I don;t have Sale or YearStart fields as per the attached spreadsheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am reading through chap 10 of "QlikView 11 for Developers" to see if this is any good however this is also proving to be hard going due to the arcane syntax.&lt;/P&gt;&lt;P&gt;it would be nice if we could 'debug' &amp;amp; step thru QV formulas - like current 4th gen languages!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539709#M201670</guid>
      <dc:creator />
      <dc:date>2013-07-04T13:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539710#M201671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CY&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;=num(sum({$&amp;lt;Year = {$(=max(Year))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} LineSalesAmount), '$#,##0;($#,##0)')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;LY &lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;=num(sum({$&amp;lt;Year = {$(=max(Year-1))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} LineSalesAmount), '$#,##0;($#,##0)')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;Try This and let me know if any other help is required&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;Himanshu&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;Skype id&amp;nbsp; himanshu_sethi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539710#M201671</guid>
      <dc:creator />
      <dc:date>2013-07-04T13:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539711#M201672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're using the month as a dimension in your chart. That means set analysis expressions are not really an option. You can try using an AsOf table. Read this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-size: 12px; color: #007fc0; text-decoration: initial; font-family: Arial;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 13:37:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539711#M201672</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-04T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539712#M201673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I'll give this &amp;amp; &lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;Himanshu's suggestions&lt;/SPAN&gt; a shot and read thru the document you link to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your experience there fore is the above pivot even possible to create in QlikView - this is actually an attempt to port a SSRS 2005(!) report to QlikView, and honestly I did not expect this to be as complicated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 00:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539712#M201673</guid>
      <dc:creator />
      <dc:date>2013-07-05T00:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539713#M201674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;having looked through the examples and the code, I don;t think the accumulations beyond month 4 are working on any of the examples? see screenshot below from &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/4252-9-61480/rolling 3 months.qvw"&gt;rolling 3 months.qvw&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Whether this is some sort of set up issue particular to my situation I am not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, where can I get the salestodate.xls spreadsheet referred to in the AsofTables example? or is this something we need to mock up..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43654" class="jive-image-thumbnail jive-image" height="257" onclick="" alt="IssueWithSoln.png" src="https://community.qlik.com/legacyfs/online/43654_IssueWithSoln.png" width="607" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 02:56:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539713#M201674</guid>
      <dc:creator />
      <dc:date>2013-07-05T02:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539714#M201675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; I don;t think the accumulations beyond month 4 are working on any of the examples?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's because the example concerns a 3-month rolling total, not an accumulate-forever-after total. The &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/4252-9-63245/AsOf Table Examples.qvw" style="font-size: 12px; margin: 0 3px 0 0; color: #007fc0; text-decoration: initial; font-family: Arial;"&gt;AsOf Table Examples.qvw &lt;/A&gt;document contains a YTD example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spreadsheet you asked for: &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/2004-70878-303669-53923/salestodate.xls"&gt;salestodate.xls&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2013 12:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539714#M201675</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-05T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: YTD calculation in QlikView - Simple Example needed..</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539715#M201676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this YTD Calculatios for any data..&lt;/P&gt;&lt;P&gt;if suppose i want my data like gross weight,net amount like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please sugggest me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 09:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-calculation-in-QlikView-Simple-Example-needed/m-p/539715#M201676</guid>
      <dc:creator />
      <dc:date>2015-01-13T09:58:36Z</dc:date>
    </item>
  </channel>
</rss>

