<?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: YTD exclude current month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033622#M642594</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;may be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Month in expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month={'&amp;lt;$(=Max(Month(Date)))'} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&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;POPER_NEW=&lt;SPAN style="font-size: 13.3333px;"&gt;{'&amp;lt;$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;POPER_NEW&lt;/SPAN&gt;)'} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 07:18:23 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2016-01-20T07:18:23Z</dc:date>
    <item>
      <title>YTD exclude current month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033619#M642591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having below expression , which is working fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum([Act Planned Production Hours]) = 0, avg([Act OEE]),&lt;/P&gt;&lt;P&gt;sum([Act OEE]*[Act Planned Production Hours])/sum([Act Planned Production Hours]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need YTD expression by using above expression and&amp;nbsp; YTD should not include current month data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calander fields are Year , Month= POPER_NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum({$&amp;lt;Date={"&amp;gt;=$(=YearStart(Date))&amp;lt;=$(=Max(Date))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act Planned Production Hours]) = 0, avg({$&amp;lt;Date={"&amp;gt;=$(=YearStart(Date))&amp;lt;=$(=Max(Date))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act OEE]),&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Date={"&amp;gt;=$(=YearStart(Date))&amp;lt;=$(=Max(Date))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act OEE]*[Act Planned Production Hours])/sum({$&amp;lt;Date={"&amp;gt;=$(=YearStart(Date))&amp;lt;=$(=Max(Date))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act Planned Production Hours]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033619#M642591</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-01-20T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: YTD exclude current month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033620#M642592</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;Instead of Max(Date) , You can use &lt;/P&gt;&lt;P&gt;Date(Monthstart(Max(Date))-1) to get till previous monthend date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033620#M642592</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-01-20T07:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: YTD exclude current month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033621#M642593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just focusing on this part -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{$&amp;lt;Date={"&amp;gt;=$(=YearStart(Date))&amp;lt;=$(=Max(Date))"} &lt;/STRONG&gt;may be I would add Date function here so that the format of date and the stuff on the right side of the equation are in same format -&amp;gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{$&amp;lt;Date={"&amp;gt;=$(=Date(YearStart(Date), 'FormatHere'))&amp;lt;=$(=Date(Max(Date), 'FormatHere))"}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, if you are looking for up untill last month, may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;Date={"&amp;gt;=$(=Date(YearStart(Date), 'FormatHere'))&amp;lt;=$(=Date(MonthEnd(AddMonths(Max(Date), -1)), 'FormatHere))"}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033621#M642593</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-20T07:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: YTD exclude current month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033622#M642594</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;may be like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Month in expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month={'&amp;lt;$(=Max(Month(Date)))'} &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&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;POPER_NEW=&lt;SPAN style="font-size: 13.3333px;"&gt;{'&amp;lt;$(=Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;POPER_NEW&lt;/SPAN&gt;)'} &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033622#M642594</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-01-20T07:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: YTD exclude current month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033623#M642595</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;=If(&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM({$&amp;lt;Date={"&amp;gt;=$(=Date(YearStart(Max(Date))))&amp;lt;=$(=Date(MonthEnd(Max(Date),-1)))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act Planned Production Hours]) = 0, &lt;/P&gt;&lt;P&gt;&amp;nbsp; avg({$&amp;lt;Date={"&amp;gt;=$(=Date(YearStart(Max(Date))))&amp;lt;=$(=Date(MonthEnd(Max(Date),-1)))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act OEE]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({$&amp;lt;Date={"&amp;gt;=$(=Date(YearStart(Max(Date))))&amp;lt;=$(=Date(MonthEnd(Max(Date),-1)))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act OEE]*[Act Planned Production Hours])&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({$&amp;lt;Date={"&amp;gt;=$(=Date(YearStart(Max(Date))))&amp;lt;=$(=Date(MonthEnd(Max(Date),-1)))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act Planned Production Hours])&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033623#M642595</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-01-20T07:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: YTD exclude current month</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033624#M642596</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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum({$&amp;lt;Date={"&amp;gt;=$(=YearStart(Today()))&amp;lt;=$(=MonthEnd(Today(), -1))"},Year=,POPER_NEW=,Date=&amp;gt;}[Act Planned Production Hours]) = 0, avg({$&amp;lt;Date={"&amp;gt;=$(=YearStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Today()&lt;/SPAN&gt;))&amp;lt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthEnd(Today(), -1)&lt;/SPAN&gt;)"},Year=,POPER_NEW=,Date=&amp;gt;}[Act OEE]),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({$&amp;lt;Date={"&amp;gt;=$(=YearStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Today()&lt;/SPAN&gt;))&amp;lt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthEnd(Today(), -1)&lt;/SPAN&gt;)"},Year=,POPER_NEW=,Date=&amp;gt;}[Act OEE]*[Act Planned Production Hours])/sum({$&amp;lt;Date={"&amp;gt;=$(=YearStart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Today()&lt;/SPAN&gt;))&amp;lt;=$(=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthEnd(Today(), -1)&lt;/SPAN&gt;)"},Year=,POPER_NEW=,Date=&amp;gt;}[Act Planned Production Hours]))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps you.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 07:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-exclude-current-month/m-p/1033624#M642596</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-01-20T07:32:18Z</dc:date>
    </item>
  </channel>
</rss>

