<?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 monthly trend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978627#M468399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do as follows:&lt;/P&gt;&lt;P&gt;[Date]={"&amp;gt;=$(=$(vFrom))&amp;lt;=$(=$(vTo))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;create variable &lt;SPAN style="font-size: 13.3333px;"&gt;vFrom=&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;MonthStart(Max([Fiscal Date]), -1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vTo=&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;MonthEnd(Max([Fiscal Date])-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2015 10:07:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-07T10:07:43Z</dc:date>
    <item>
      <title>Set analysis monthly trend</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978623#M468395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;A name="_GoBack"&gt;&lt;/A&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a question regarding set analysis. I use this formula to get the revenue for the current or selected fiscal date:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sum({&amp;lt;[Fiscal Date]={'&amp;gt;=$(=MonthStart(Max([Fiscal Date]), ))&amp;lt;=$(=MonthEnd(Max([Fiscal Date])))'}&amp;gt;} [Revenue])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;My formula to get the revenue for the month before is this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;sum({&amp;lt;[Fiscal Date]={'&amp;gt;=$(=MonthStart(Max([Fiscal Date]), -1))&amp;lt;=$(=MonthEnd(Max([Fiscal Date])-1))'}&amp;gt;} [Recurring Revenue (Euro)])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;It works very well but once I selected more than one date in fiscal date (e.g. Oct 2014 and Nov 2014) I don´t get the correct value for the month before my selected date (in this case Sep 2014). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Has anyone a solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 16:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978623#M468395</guid>
      <dc:creator>keitel2015</dc:creator>
      <dc:date>2015-09-04T16:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis monthly trend</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978624#M468396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3157"&gt;Relative Calendar Fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first expression in that post is like your (if you want you can adapt changing the fields names) but then Henric solved the problem adding a field in the calendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 17:07:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978624#M468396</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-09-04T17:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis monthly trend</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978625#M468397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;A name="_GoBack"&gt;&lt;/A&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks for your input but unfortunately it isn´t a solution for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Let’s assume you have all months of 2013 and 2014. If you click on e.g. Jun and Jul 2014 then your data sets will be decrease on your selection. What I want is to show the sum of Jun and Jul 2014 and the value before my selected date (May 2014). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;What I currently have or what you suggested works fine if I only select single dates and no intervals (Jun AND Jul 2014). Because if you click on more than one date your data sets are only what you selected (Jun and Jul) so the formula will only consider Jun and Jul 2014 but not the entire data sets in my application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;For that reason I need a formula which identify the youngest selected date (Jun 2014) and then use the entire data sets to get the value before the youngest date.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978625#M468397</guid>
      <dc:creator>keitel2015</dc:creator>
      <dc:date>2015-09-07T08:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis monthly trend</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978626#M468398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;use selections fields in set analysis like below &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;sum({&amp;lt;[Fiscal Date]={'&amp;gt;=$(=MonthStart(Max([Fiscal Date]), -1))&amp;lt;=$(=MonthEnd(Max([Fiscal Date])-1))'},&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;MonthField=,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;[Fiscal Date]=,Qtrfield=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px; line-height: 1.5em;"&gt;&amp;gt;} [Recurring Revenue (Euro)])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 09:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978626#M468398</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-09-07T09:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis monthly trend</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978627#M468399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do as follows:&lt;/P&gt;&lt;P&gt;[Date]={"&amp;gt;=$(=$(vFrom))&amp;lt;=$(=$(vTo))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;create variable &lt;SPAN style="font-size: 13.3333px;"&gt;vFrom=&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;MonthStart(Max([Fiscal Date]), -1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vTo=&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;MonthEnd(Max([Fiscal Date])-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 10:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978627#M468399</guid>
      <dc:creator />
      <dc:date>2015-09-07T10:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis monthly trend</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978628#M468400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the variables into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthStart(&lt;STRONG&gt;Min&lt;/STRONG&gt;([Fiscal Date]), -1)&lt;/P&gt;&lt;P&gt;MonthEnd(&lt;STRONG&gt;Min&lt;/STRONG&gt;([Fiscal Date]), -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works for me, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 10:27:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-monthly-trend/m-p/978628#M468400</guid>
      <dc:creator>keitel2015</dc:creator>
      <dc:date>2015-09-07T10:27:06Z</dc:date>
    </item>
  </channel>
</rss>

