<?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: Set analysis: Year to previous monthend calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585956#M456677</link>
    <description>&lt;P&gt;Thanks... Working fine...&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 07:35:44 GMT</pubDate>
    <dc:creator>ranganadh1979</dc:creator>
    <dc:date>2019-05-29T07:35:44Z</dc:date>
    <item>
      <title>Set analysis: Year to previous monthend calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585617#M456674</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am struggling to calculate year to previous monthend sales in set analysis expression.&lt;/P&gt;&lt;P&gt;Example, If i select a date, it should calculate from year start to previous monthend sum of sales.&lt;/P&gt;&lt;P&gt;if i select any date in the month of Jan, it should calculate from 1st of Jan to 31st of Jan in that selected date.&lt;/P&gt;&lt;P&gt;This is the expression i am working on:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;year=, Quarter=, Month=, Week=, [End Date]=, End_Dt_Number={"&amp;gt;=$(=Num(YearStart(Max(End_Dt_Number))))&amp;lt;=$(=Num(Monthend(AddMonths(Max(End_Dt_Number),-1))))"}&amp;gt;} Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:27:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585617#M456674</guid>
      <dc:creator>ranganadh1979</dc:creator>
      <dc:date>2024-11-16T03:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: Year to previous monthend calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585647#M456675</link>
      <description>&lt;P&gt;I believe you are saying one thing and calculating another.&amp;nbsp; If you pick any day in Jan,&lt;/P&gt;&lt;P&gt;End_Dt_Number &amp;gt;= 01-Jan-2019 and End_Dt_Number &amp;lt;= 31-Dec-2018&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 13:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585647#M456675</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2019-05-28T13:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: Year to previous monthend calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585648#M456676</link>
      <description>&lt;P&gt;your expression looks good.&amp;nbsp;&lt;BR /&gt;to solve your january problem I would define a variable&lt;BR /&gt;vNoOfMonth = if (num(month(End_Dt_Number)=1,0,-1)&amp;nbsp; // hold 0 in january and -1 in other months&lt;BR /&gt;then use this variable in your expression&lt;BR /&gt;&amp;lt;=$(=Num(Monthend(AddMonths(Max(End_Dt_Number)&lt;STRONG&gt;,vNoOfMonth))))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 13:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585648#M456676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-28T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis: Year to previous monthend calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585956#M456677</link>
      <description>&lt;P&gt;Thanks... Working fine...&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 07:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Year-to-previous-monthend-calculation/m-p/1585956#M456677</guid>
      <dc:creator>ranganadh1979</dc:creator>
      <dc:date>2019-05-29T07:35:44Z</dc:date>
    </item>
  </channel>
</rss>

