<?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 How to calculate MonthStart to Today + LYMonthToday to MonthEnd? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-MonthStart-to-Today-LYMonthToday-to-MonthEnd/m-p/1400118#M424555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this calculation, I need the data from the current month's first day to current day, plus the data from last year of the same month and day until the end of the month. &lt;SPAN style="font-size: 13.3333px;"&gt;It cannot be static, meaning when the current date changes, so must the aggregation of the data sets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, (December 1, 2017 - December 13, 2017) + (December 13, 2016 - December 31, 2016)&lt;/P&gt;&lt;P&gt;And in a week (December 1, 2017 - December 20, 2017) + (December 20, 2016 + December 31, 2016)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have two variables to represent the two sets of criteria&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTRIRCurrentMonth: '&amp;gt;=$(monthstart(dte))&amp;lt;=$(vToday())'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTRIRMonthLY: '&amp;gt;=$(vPreviousYearMonth=Today())&amp;lt;=$(vPreviousYearMonth=MonthEnd)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting results when I combine in the expression for the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2017 22:01:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-13T22:01:52Z</dc:date>
    <item>
      <title>How to calculate MonthStart to Today + LYMonthToday to MonthEnd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-MonthStart-to-Today-LYMonthToday-to-MonthEnd/m-p/1400118#M424555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this calculation, I need the data from the current month's first day to current day, plus the data from last year of the same month and day until the end of the month. &lt;SPAN style="font-size: 13.3333px;"&gt;It cannot be static, meaning when the current date changes, so must the aggregation of the data sets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, (December 1, 2017 - December 13, 2017) + (December 13, 2016 - December 31, 2016)&lt;/P&gt;&lt;P&gt;And in a week (December 1, 2017 - December 20, 2017) + (December 20, 2016 + December 31, 2016)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have two variables to represent the two sets of criteria&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTRIRCurrentMonth: '&amp;gt;=$(monthstart(dte))&amp;lt;=$(vToday())'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vTRIRMonthLY: '&amp;gt;=$(vPreviousYearMonth=Today())&amp;lt;=$(vPreviousYearMonth=MonthEnd)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting results when I combine in the expression for the chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 22:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-MonthStart-to-Today-LYMonthToday-to-MonthEnd/m-p/1400118#M424555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-13T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate MonthStart to Today + LYMonthToday to MonthEnd?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-MonthStart-to-Today-LYMonthToday-to-MonthEnd/m-p/1400119#M424556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;And For Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DateFields= {"&amp;gt;=$(=Date(MonthStart(Today()))) &amp;lt;=$(=Date(WeekEnd(Today())))"}&amp;gt;} Sales) + &lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;DateFields= {"&amp;gt;=$(=Date(AddYears(Today(),-1))) &amp;lt;=$(=Date(AddYears(MonthEnd(Today()),-1)))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px; text-decoration: underline;"&gt;And For week&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;DateFields= {"&amp;gt;=$(=Date(MonthStart(Today()))) &amp;lt;=$(=Date(Today()))"}&amp;gt;} Sales) + &lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;DateFields= {"&amp;gt;=$(=Date(AddYears(WeekEnd(Today()),-1))) &amp;lt;=$(=Date(AddYears(MonthEnd(Today()),-1)))"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 02:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-MonthStart-to-Today-LYMonthToday-to-MonthEnd/m-p/1400119#M424556</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-12-14T02:23:41Z</dc:date>
    </item>
  </channel>
</rss>

