<?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: Single date selection - date and same day last year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143815#M374488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did not return the desired results.&lt;/P&gt;&lt;P&gt;It did point me in the right direction...&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;=sum({$&amp;lt; Year={"$(=Year(Addyears(MfgDate,-1)))"},MfgDate&amp;gt;} Yards)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;returns data for the entire month of the prior year., but the Year and Month selectors no longer work.&lt;/P&gt;&lt;P&gt;How do I use Addyears only if there is a selection in the MfgDate selection list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 17:29:47 GMT</pubDate>
    <dc:creator>nancymarmat</dc:creator>
    <dc:date>2016-05-13T17:29:47Z</dc:date>
    <item>
      <title>Single date selection - date and same day last year</title>
      <link>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143813#M374486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 date selection boxes: Year, Month and Mfg Date.&amp;nbsp; They are all based on a single field, MfgDate.&lt;/P&gt;&lt;P&gt;My pivot table contains data for Current Year and Prior Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt; Year={$(=Only(Year))}&amp;gt;} Yards)&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;sum({$&amp;lt; Year={$(=Only(Year)-1)}&amp;gt;} Yards)&lt;/P&gt;&lt;P&gt;This works when I select Year and Month. However when I select an individual day in the Mfg Date selection box, I lose the data for Prior Year.&lt;/P&gt;&lt;P&gt;How can I override the year and month if I have made a selection for Mfg Date?&lt;/P&gt;&lt;P&gt;When I make a selection in Mfg Date, I would like the selected date plus the same day last year automatically. It will display both dates if I select them both from the list.&amp;nbsp; Is it possible in Qlikview to make one date selection and in the expression use the same day for the prior year?&lt;/P&gt;&lt;P&gt;Thank you for any ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 15:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143813#M374486</guid>
      <dc:creator>nancymarmat</dc:creator>
      <dc:date>2016-05-13T15:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Single date selection - date and same day last year</title>
      <link>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143814#M374487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=sum({$&amp;lt; Year={"$(=Year(Addyears(MfgDate,-1)))"},Month&amp;gt;} Yards)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 16:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143814#M374487</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-05-13T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Single date selection - date and same day last year</title>
      <link>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143815#M374488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It did not return the desired results.&lt;/P&gt;&lt;P&gt;It did point me in the right direction...&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;=sum({$&amp;lt; Year={"$(=Year(Addyears(MfgDate,-1)))"},MfgDate&amp;gt;} Yards)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;returns data for the entire month of the prior year., but the Year and Month selectors no longer work.&lt;/P&gt;&lt;P&gt;How do I use Addyears only if there is a selection in the MfgDate selection list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 17:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143815#M374488</guid>
      <dc:creator>nancymarmat</dc:creator>
      <dc:date>2016-05-13T17:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Single date selection - date and same day last year</title>
      <link>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143816#M374489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this workaround - I added the Day field to the script and changed the MfgDate selection to Day selection.&amp;nbsp; When the three selections, Year, Month and Day are used together the existing expressions work perfectly.&lt;/P&gt;&lt;P&gt;Thank you for your suggestions.&amp;nbsp; I learned about a new function &lt;EM&gt;&lt;STRONG&gt;Addyears&lt;/STRONG&gt;&lt;/EM&gt; which will be very helpful in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 18:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Single-date-selection-date-and-same-day-last-year/m-p/1143816#M374489</guid>
      <dc:creator>nancymarmat</dc:creator>
      <dc:date>2016-05-13T18:17:53Z</dc:date>
    </item>
  </channel>
</rss>

