<?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: Year to Date based on current selection (including multiple Year selection) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361876#M134498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, but I´m not sure if this works selecting several YearMonth... usually I use it selecting only one period time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2º sum({&amp;lt;YearMonth={'&amp;gt;=$(=AddMonths(YearMonth,-12))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 13:54:37 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2012-06-21T13:54:37Z</dc:date>
    <item>
      <title>Year to Date based on current selection (including multiple Year selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361874#M134496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, i am trying to create a straight table - 3 expressions: &lt;/P&gt;&lt;P&gt;1st showing the current YearMonth selection's Sales, &lt;/P&gt;&lt;P&gt;2nd showing the same as 1st except 12 months prior, &lt;/P&gt;&lt;P&gt;3rd would be a variance % between the 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am familiar with using the only(Year) and max(Year) functions but this needs to be more dynamic. The client only has the Option to select YearMonth (201112, 201201, 201202 etc). &lt;/P&gt;&lt;P&gt;eg. If the client selects 201112 to 201203 the first collumn shows his current selection Sales, the 2nd (my problem) should show that selection's Sales value for 12 months before (201012 to 201103 Sales). Please let me know if i'm not being clear enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 08:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361874#M134496</guid>
      <dc:creator />
      <dc:date>2012-06-21T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date based on current selection (including multiple Year selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361875#M134497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try searching the forums for Set Analysis and you'll find plenty of examples of comparing data sets like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361875#M134497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-21T09:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date based on current selection (including multiple Year selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361876#M134498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, but I´m not sure if this works selecting several YearMonth... usually I use it selecting only one period time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2º sum({&amp;lt;YearMonth={'&amp;gt;=$(=AddMonths(YearMonth,-12))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 13:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361876#M134498</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-06-21T13:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date based on current selection (including multiple Year selection)</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361877#M134499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry this is much later than the original post but i've revisited this topic. I've come very close after hours of playing around with formats etc. I've come to this as the previous Year Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month=, Year=, YearMonth = {"&amp;gt;$(=Year(Date(Date#((min(YearMonth)),'YYYYMM'),'YYYYMM'))&amp;amp;num(Month(Date(Date#((min(YearMonth)),'YYYYMM'),'YYYYMM')),'00')) &amp;lt;= $(=Year(Date(Date#((max(YearMonth)),'YYYYMM'),'YYYYMM'))&amp;amp;num(Month(Date(Date#((max(YearMonth)),'YYYYMM'),'YYYYMM')),'00'))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The figure comes close (less than it should be) but i guess a miss is as good as a mile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you see anything here that shouldn't be.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 09:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-based-on-current-selection-including-multiple-Year/m-p/361877#M134499</guid>
      <dc:creator />
      <dc:date>2012-07-26T09:41:02Z</dc:date>
    </item>
  </channel>
</rss>

