<?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 Fixed YTD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981521#M949601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to calculate YTD sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m using the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, MonthYear =,Date= {"&amp;gt;=$(=date(YearStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;where vMaxSalesDate = Max(Date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the expression is correct and working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;it is giving sales from year start till date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the problem is when i select a month in the middle, ex: if i select Sep 2015. the sales value changes as year start till sep 2015 end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but my requirement is to keep YTD fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Whatever calendarmonth or calendar date may be selected, the YTD value should be fixed as Jan2015 till 9/12/2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;how can i do this. pls help me on the expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 15:21:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-09T15:21:58Z</dc:date>
    <item>
      <title>Fixed YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981521#M949601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to calculate YTD sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m using the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;Year=, MonthYear =,Date= {"&amp;gt;=$(=date(YearStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;}sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;where vMaxSalesDate = Max(Date)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the expression is correct and working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;it is giving sales from year start till date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;the problem is when i select a month in the middle, ex: if i select Sep 2015. the sales value changes as year start till sep 2015 end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but my requirement is to keep YTD fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Whatever calendarmonth or calendar date may be selected, the YTD value should be fixed as Jan2015 till 9/12/2015.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;how can i do this. pls help me on the expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 15:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981521#M949601</guid>
      <dc:creator />
      <dc:date>2015-12-09T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981522#M949602</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;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-9144" title="https://community.qlik.com/docs/DOC-9144"&gt;https://community.qlik.com/docs/DOC-9144&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-8574" title="https://community.qlik.com/docs/DOC-8574"&gt;https://community.qlik.com/docs/DOC-8574&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-12719"&gt;YTD,MTD,FTD,QTD&lt;/A&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;hope this helps you&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 15:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981522#M949602</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2015-12-09T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981523#M949603</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;can you please help me on my expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 15:45:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981523#M949603</guid>
      <dc:creator />
      <dc:date>2015-12-09T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981524#M949604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be change your variable expression like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max ({1}Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;The above expression for till date..&lt;/P&gt;&lt;P&gt;You can directly apply this in your expression because you are using same variable in both criteria..like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year=, MonthYear =,Date= {"&amp;gt;=$(=date(YearStart(vMaxSalesDate)))&amp;lt;=$(=date(max ({1}Date)))"}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where vMaxSalesDate Max (Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981524#M949604</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-12-09T16:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fixed YTD</title>
      <link>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981525#M949605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {$(=max(Year)}, MonthYear =, Date =&amp;gt;}sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fixed-YTD/m-p/981525#M949605</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2015-12-09T16:44:54Z</dc:date>
    </item>
  </channel>
</rss>

