<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335903#M123883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yah tat rights, after adding Year condition the expression will be all right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks paliwal &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 05:49:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-04T05:49:16Z</dc:date>
    <item>
      <title>YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335900#M123880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; i have month wise data , and i want to apply YTD using bar chart. and m nt able to understand what vl b expression for YTD condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 02:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335900#M123880</guid>
      <dc:creator />
      <dc:date>2012-04-04T02:20:41Z</dc:date>
    </item>
    <item>
      <title>YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335901#M123881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;Hi yojassamarth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a new variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; varMaxMonth&amp;nbsp;&amp;nbsp; = Max(MONTH)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;Sum({$&amp;lt;MONTH={"&amp;lt;=$(varMaxMonth)"}&amp;gt;} Amount)&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message-abuse!input.jspa?objectID=124505&amp;amp;objectType=2" style="color: #636363; display: inline-block;"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 05:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335901#M123881</guid>
      <dc:creator />
      <dc:date>2012-04-04T05:15:55Z</dc:date>
    </item>
    <item>
      <title>YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335902#M123882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Expression which Anant has given should work but it may need a little modification.&lt;/P&gt;&lt;P&gt;To make it work properly if you have data for more than 1 year, you also need to pass year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; varMaxMonth&amp;nbsp;&amp;nbsp; = Max(MONTH)&lt;/P&gt;&lt;P&gt; varMaxYear&amp;nbsp;&amp;nbsp; = Max(YEAR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;Sum({$&amp;lt;YEAR = {&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;$(varMaxYear)&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;}, MONTH={"&amp;lt;=$(varMaxMonth)"}&amp;gt;} Amount)&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 05:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335902#M123882</guid>
      <dc:creator />
      <dc:date>2012-04-04T05:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335903#M123883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yah tat rights, after adding Year condition the expression will be all right,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks paliwal &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 05:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335903#M123883</guid>
      <dc:creator />
      <dc:date>2012-04-04T05:49:16Z</dc:date>
    </item>
    <item>
      <title>YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335904#M123884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; but in my main table m havin period field instead of year and month. and its in d format of,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apr09&lt;/P&gt;&lt;P&gt;Mar11&lt;/P&gt;&lt;P&gt;jan12...........&lt;/P&gt;&lt;P&gt;and i connected this period field with my main calender's field and in ur expression i used my calender fields as year and month then m nt getting ny data........ y it so??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yojas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335904#M123884</guid>
      <dc:creator />
      <dc:date>2012-04-04T08:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335905#M123885</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try using the modified expression as below. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;&amp;nbsp; Sum({$&amp;lt;YEAR = {&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;$(varMaxYear)&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;}, MONTH={"&amp;lt;=$(#varMaxMonth)"}&amp;gt;} Amount).&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or somthing like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;YEAR = {&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;$(varMaxYear)&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;}, MONTH={"&amp;lt;=$(#=varMaxMonth)"}&amp;gt;} Amount).&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hudson&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335905#M123885</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2012-04-04T08:41:07Z</dc:date>
    </item>
    <item>
      <title>YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335906#M123886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Monthfield&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Apr09&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Mar11&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;jan12...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left(Monthfield),3 as Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(20&amp;amp;right(Monthfield,2)) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline [&lt;/P&gt;&lt;P&gt;Month,MonthNo&lt;/P&gt;&lt;P&gt;Jan,1&lt;/P&gt;&lt;P&gt;Feb,2&lt;/P&gt;&lt;P&gt;Mar,3&lt;/P&gt;&lt;P&gt;Apr,4&lt;/P&gt;&lt;P&gt;May,5&lt;/P&gt;&lt;P&gt;Jun,6&lt;/P&gt;&lt;P&gt;Jul,7&lt;/P&gt;&lt;P&gt;Aug,8&lt;/P&gt;&lt;P&gt;Sep,9&lt;/P&gt;&lt;P&gt;Oct,10&lt;/P&gt;&lt;P&gt;Nov,11&lt;/P&gt;&lt;P&gt;Dec,12&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use below formula&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;varMaxMonth&amp;nbsp;&amp;nbsp; = Max(&lt;STRONG&gt;MonthNo&lt;/STRONG&gt;)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;varMaxYear&amp;nbsp;&amp;nbsp; = Max(YEAR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;Sum({$&amp;lt;YEAR = {&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;$(varMaxYear)&lt;/CODE&gt;&lt;CODE class="jive-code" style="font-size: 1.2em;"&gt;}, MONTH={"&amp;lt;=$(varMaxMonth)"}&amp;gt;} Amount)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:59:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335906#M123886</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2012-04-04T08:59:22Z</dc:date>
    </item>
    <item>
      <title>YTD</title>
      <link>https://community.qlik.com/t5/QlikView/YTD/m-p/335907#M123887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 10:37:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD/m-p/335907#M123887</guid>
      <dc:creator />
      <dc:date>2012-04-04T10:37:11Z</dc:date>
    </item>
  </channel>
</rss>

