<?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 does not work on chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833899#M293395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use num(Month) to get the corresponding number for each month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 16:01:32 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-27T16:01:32Z</dc:date>
    <item>
      <title>YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833894#M293390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an excel file with sales for each single article. This file contains also month and year of transaction. It was very easy to put everything on a straight table where I can select which year, month and family of article I want to analyse.&lt;/P&gt;&lt;P&gt;Then I added a column to visualize YTD data by the following expression:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;=rangesum(above(sum(vSold), 0 , 12)) &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;which works perfectly. I can also select less then 12 months and I still have the right YTD. (Note: at this stage it works only if the selected months are consecutive. But it is not a big issue)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Anyhow, when I tried to turn this table into a bar chart, the YTD value does not work even if I used same dimensions and same expressions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there any way I can have the YTD on chart?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;very important: YTD has to be separate for each family of article as it is on the straight table.&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&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833894#M293390</guid>
      <dc:creator />
      <dc:date>2015-04-27T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833895#M293391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this document: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833895#M293391</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-27T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833896#M293392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you post your QVW please? And the xls if possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 14:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833896#M293392</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-27T14:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833897#M293393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already found this document. The problem is my months are named as text (i.e. GEN; FEB; MAR;....) so when I tried to use the script (replacing Month with Mese and SalesData with my table name), it results a null field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: verdana, geneva; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;AsOfMonth:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Month_AsOf&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; + 1 - &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;IterNo&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;() &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Resident&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; SalesData&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;while&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;IterNo&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;() &amp;lt;= 3;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;right&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;join&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Month&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt;Resident&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN lang="en"&gt; SalesData;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking that the problem is that in here months have to be numbers and not name.&lt;/P&gt;&lt;P&gt;Furthermore I am looking at YTD not rolling period. I suppose the example is into the file you attached but I am using a free version of QV so I cannot read any other file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 15:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833897#M293393</guid>
      <dc:creator />
      <dc:date>2015-04-27T15:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833898#M293394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Andrew but these data are sensible and I cannot post them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 15:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833898#M293394</guid>
      <dc:creator />
      <dc:date>2015-04-27T15:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833899#M293395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use num(Month) to get the corresponding number for each month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:01:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833899#M293395</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-27T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: YTD does not work on chart</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833900#M293396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that bit of code you posted needs numbers. But you can create the table in other ways. For example in excel and load it from the excel file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure you understand the AsOf table concept. Perhaps after reading that part of the document again you'll understand better how it works. Then you should have no problem applying the technique to create a YTD AsOf table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 16:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-does-not-work-on-chart/m-p/833900#M293396</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-27T16:56:32Z</dc:date>
    </item>
  </channel>
</rss>

