<?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: Set analysis to retrieve YtD total in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578484#M215097</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;Try this&lt;/P&gt;&lt;P&gt;Current Year YTD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;DATETIME={'&amp;lt;=$Date(Max (DATETIME)))&amp;gt;=$(=Date(YearStart(max(DATETIME))))'},Month=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Last Year YTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;DATETIME={'&amp;lt;=$Date(addYears(Max (DATETIME),-1)))&amp;gt;=$(=Date(YearStart(max(DATETIME),-1)))'},Year=&amp;gt;}PRICE)&lt;/SPAN&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;"&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;"&gt;Or You can try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Current Year YTD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;DATETIME={'&amp;lt;=$Timestamp(Max (DATETIME)))&amp;gt;=$(=Timestamp(Date(YearStart(max(DATETIME)))))'},Month=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Last Year YTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;DATETIME={'&amp;lt;=$&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Timestamp&lt;/SPAN&gt;(Date(addYears(Max (DATETIME),-1))))&amp;gt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Timestamp&lt;/SPAN&gt;(Date(YearStart(max(DATETIME),-1))))'},Year=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2014 09:53:19 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2014-03-15T09:53:19Z</dc:date>
    <item>
      <title>Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578482#M215095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have researched various Qlikview platforms and books but can't find out what I am doing wrong. I have a text field where I would like to show my YtD sales. This is the formula I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year={$(Year(Max (DATETIME)))},DATETIME={'&amp;lt;=$(Max (DATETIME))'},Month=, Day=,Hour=,Week=,Weekday=&amp;gt;}PRICE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not give any data back or an error. So I have no clue where to start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dorine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 09:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578482#M215095</guid>
      <dc:creator />
      <dc:date>2014-03-15T09:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578483#M215096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dorine,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;A bit of syntax:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;Year={$(=Year(Max (DATETIME)))}, DATETIME={'&amp;lt;=$(=Date(Max(DATETIME)))'},Month=, Day=,Hour=,Week=,Weekday=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Note that if you have already selected the maximum datetime, then you need not to select the highest year.&lt;/P&gt;&lt;P&gt;On the other hand, if DATETIME is a date field, not a numeric field, then you need to convert it using the Date() function.&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 09:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578483#M215096</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-03-15T09:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578484#M215097</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;Try this&lt;/P&gt;&lt;P&gt;Current Year YTD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;DATETIME={'&amp;lt;=$Date(Max (DATETIME)))&amp;gt;=$(=Date(YearStart(max(DATETIME))))'},Month=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Last Year YTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;DATETIME={'&amp;lt;=$Date(addYears(Max (DATETIME),-1)))&amp;gt;=$(=Date(YearStart(max(DATETIME),-1)))'},Year=&amp;gt;}PRICE)&lt;/SPAN&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;"&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;"&gt;Or You can try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Current Year YTD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;DATETIME={'&amp;lt;=$Timestamp(Max (DATETIME)))&amp;gt;=$(=Timestamp(Date(YearStart(max(DATETIME)))))'},Month=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Last Year YTD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;DATETIME={'&amp;lt;=$&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Timestamp&lt;/SPAN&gt;(Date(addYears(Max (DATETIME),-1))))&amp;gt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Timestamp&lt;/SPAN&gt;(Date(YearStart(max(DATETIME),-1))))'},Year=&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 09:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578484#M215097</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-15T09:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578485#M215098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATETIME is a numeric timestamp field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copy paste your code but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 10:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578485#M215098</guid>
      <dc:creator />
      <dc:date>2014-03-15T10:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578486#M215099</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: 12px; background-color: #f6f6f6;"&gt;If the code is correct, then&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: 12px; background-color: #f6f6f6;"&gt;=sum({1&amp;lt;Year={$(=Max(Year(DATETIME)))}, DATETIME={'&amp;lt;=$(=Date(Max(DATETIME)))'},Month=, Day=,Hour=,Week=,Weekday=&amp;gt;}PRICE)&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: 12px; background-color: #f6f6f6;"&gt;Miguel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 10:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578486#M215099</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2014-03-15T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578487#M215100</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;Your second option works!!!!!! Thanks!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dorine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 11:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578487#M215100</guid>
      <dc:creator />
      <dc:date>2014-03-15T11:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578488#M215101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more question Max, your second option works perfect for the current YtD. Last year YtD however, gives the sum of 2013 and 2014 in stead of only 2013.&lt;/P&gt;&lt;P&gt;Any idea of what I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 12:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578488#M215101</guid>
      <dc:creator />
      <dc:date>2014-03-15T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to retrieve YtD total</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578489#M215102</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;don't nullify Year field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;DATETIME={'&amp;lt;=$&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Timestamp&lt;/SPAN&gt;(Date(addYears(Max (DATETIME),-1))))&amp;gt;=$(=&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Timestamp&lt;/SPAN&gt;(Date(YearStart(max(DATETIME),-1))))'}&amp;gt;}PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 12:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-retrieve-YtD-total/m-p/578489#M215102</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-03-15T12:16:23Z</dc:date>
    </item>
  </channel>
</rss>

