<?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: Daily Year over Year in text object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437688#M805344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Delivery_Date={"&amp;gt;=$(=yearstart(vLastYear))&amp;lt;=$(=(vLastYear))"}&lt;SPAN style="color: #ff0000;"&gt;, Year&lt;/SPAN&gt;&amp;gt;} Delivery_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2017 13:42:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-08T13:42:58Z</dc:date>
    <item>
      <title>Daily Year over Year in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437687#M805343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;am trying to get a year over year analysis to work both by year/quarter/month/week selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And also working in selected StartDate/EndDate calendar object.&lt;/P&gt;&lt;P&gt;So I can select any time interval by &lt;SPAN style="font-size: 13.3333px;"&gt;StartDate/EndDate calendar.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables for year over year I used below:&lt;/P&gt;&lt;P&gt;vLastYear=&lt;SPAN style="text-decoration: underline;"&gt;addmonths(MaxString(Delivery_Date),-12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vCurrentYear=&lt;SPAN style="text-decoration: underline;"&gt;if(GetSelectedCount(Year)=0,max(Year),Year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The value of Delivery_Date column is started from 1/1/2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to get a year over year value into text object:&lt;/P&gt;&lt;P&gt;Current Year Sales:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;=sum({&amp;lt;Year={$(vCurrentYear)}&amp;gt;} Delivery_Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Last Year Sales:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;=sum({&amp;lt;Delivery_Date={"&amp;gt;=$(=yearstart(vLastYear))&amp;lt;=$(=(vLastYear))"}&amp;gt;} Delivery_Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is when I don't select Year, the Last Year Sales is correct, but if I select 2017 in Year &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;selections,&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;the Last Year Sales is 0.&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;If the time interval of Last Year Sales is out of Year selection or not?&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;&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;Can anybody help me to correct the &lt;SPAN style="font-size: 13.3333px;"&gt;variables or extensions?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; 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-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ming&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437687#M805343</guid>
      <dc:creator>limingthefirst</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Daily Year over Year in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437688#M805344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({&amp;lt;Delivery_Date={"&amp;gt;=$(=yearstart(vLastYear))&amp;lt;=$(=(vLastYear))"}&lt;SPAN style="color: #ff0000;"&gt;, Year&lt;/SPAN&gt;&amp;gt;} Delivery_Amount)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437688#M805344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-08T13:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Daily Year over Year in text object</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437689#M805345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's you! thank Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-Year-over-Year-in-text-object/m-p/1437689#M805345</guid>
      <dc:creator>limingthefirst</dc:creator>
      <dc:date>2017-11-08T13:47:45Z</dc:date>
    </item>
  </channel>
</rss>

