<?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 month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989147#M963421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format of data within PERIOD_NAME field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2015 15:36:09 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-10-15T15:36:09Z</dc:date>
    <item>
      <title>YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989146#M963420</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;I have table which has a date field ,&lt;/P&gt;&lt;P&gt;and i want to achaive the sum of all the values till previous month of the current selected month .&lt;/P&gt;&lt;P&gt;Iam trying with this below expression but its not working .Can someone please correct it .?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;PERIOD_NAME={$(=Max(PERIOD_NAME)-1)},[PERIOD_NAME]&amp;gt;}VALUE )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989146#M963420</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2015-10-15T15:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989147#M963421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format of data within PERIOD_NAME field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989147#M963421</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989148#M963422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Maybe like this:&lt;BR /&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; font-size: 13px;"&gt;=Sum({$&amp;lt;PERIOD_NAME=, MyDate={'&amp;gt;=$(=YearStart(Max(MyDate)))&amp;lt;$(=MonthStart(Max(MyDate)))'}&amp;gt;}VALUE )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989148#M963422</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-15T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989149#M963423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is most likely related to the format of the field PERIOD_NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If it's a string value, then you can't calculate Max value and subtract 1 from it.&lt;/P&gt;&lt;P&gt;- If it's a Dual value then the result of the calculation &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max(PERIOD_NAME)-1 is a number, while the field itself is Dual. This mismatch doesn't work well in Set Analys.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your field is Dual, then you can overcome the issue by using the Advance Search syntax, something like this:&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; font-size: 13px;"&gt;=Sum({$&amp;lt;PERIOD_NAME={"=num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PERIOD_NAME&lt;/SPAN&gt;)&amp;lt;=$(=Max(PERIOD_NAME)-1)"}&amp;gt;}VALUE )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&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; font-size: 13px;"&gt;Check out my new book &lt;EM&gt;QlikView Your Business&lt;/EM&gt;. In the book, I describe in detail how to use Dates in Set Analysis and how to use Advanced Search functionality for a variety of analytical solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&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; font-size: 13px;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Oleg Troyansky&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=HEF4KYLLE22XIQH2" style="font-size: 10pt; line-height: 1.5em;"&gt;QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989149#M963423</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-10-15T15:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989150#M963424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might change a little bit of the expression for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PERIOD_NAME&lt;/SPAN&gt;= {$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PERIOD_NAME&lt;/SPAN&gt;) – 1)}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to chenge the value of the expression if another user makes selection in for example Year, Quarter, Month and/or Period you can change the expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;= {$(=Max(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PERIOD_NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) – 1)}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Year = , &lt;/SPAN&gt;Quarter = , Month = , Period = &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;VALUE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&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; font-size: 13px;"&gt;Hope it helps! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989150#M963424</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2015-10-15T15:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989151#M963425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have year in my table , there are two date fields one is Date (30-01-2014) and the Period_Name(jan-2014).&lt;/P&gt;&lt;P&gt;In this format i have the date .&lt;/P&gt;&lt;P&gt;Gysbert I tried the expression but its not working , May be I am missing something , There is no master calendar in this . all i have is the two date fields &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:46:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989151#M963425</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2015-10-15T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: YTD month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989152#M963426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&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; font-size: 13px;"&gt;&lt;STRONG&gt;=Sum({$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD.MM.YYYY') &amp;amp; '&amp;lt;' Date(MonthStart(Max(Date)), 'DD.MM.YYYY')))"}, Period_Name = &amp;gt;} VALUE)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things to make sure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) QlikView is case sensitive and there is a difference between PERIOD_NAME and Period_Name. Make sure to use the correct field name&lt;/P&gt;&lt;P&gt;2) Check if this -&amp;gt; &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD.MM.YYYY') &amp;amp; '&amp;lt;' Date(MonthStart(Max(Date)), 'DD.MM.YYYY'))&lt;/STRONG&gt; in a text box object give you correct format and correct date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 15:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-month/m-p/989152#M963426</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-15T15:57:34Z</dc:date>
    </item>
  </channel>
</rss>

