<?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 Set Analysis in Dimension - Date &amp; Previous Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dimension-Date-Previous-Date/m-p/267385#M496530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each Date selected (DateID), I have a selection of Stocks (StockID) which I use as a dimension for a chart.&lt;BR /&gt;I would like to have not only the StockID for the selected date, but also the ones for the previous DateID.&lt;/P&gt;&lt;P&gt;I think I should use set analysis, but not sure how to do this in a Dimension...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2012 18:24:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-11T18:24:51Z</dc:date>
    <item>
      <title>Set Analysis in Dimension - Date &amp; Previous Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dimension-Date-Previous-Date/m-p/267385#M496530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each Date selected (DateID), I have a selection of Stocks (StockID) which I use as a dimension for a chart.&lt;BR /&gt;I would like to have not only the StockID for the selected date, but also the ones for the previous DateID.&lt;/P&gt;&lt;P&gt;I think I should use set analysis, but not sure how to do this in a Dimension...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 18:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dimension-Date-Previous-Date/m-p/267385#M496530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-11T18:24:51Z</dc:date>
    </item>
    <item>
      <title>Set Analysis in Dimension - Date &amp; Previous Date</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dimension-Date-Previous-Date/m-p/267386#M496531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Zadig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The general syntax for showing privious month and year with selcted month and year is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿ex:-&amp;nbsp; sum({$&amp;lt;YearID+={$(=MAX(Year)-1)}&amp;gt;}Sales)&amp;nbsp; -&amp;gt;It will give you the sum of sales for selected year and its previous year ;&amp;nbsp; You can use it for month instead of year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;DateID+={$(=MAX(DateID)-1)}&amp;gt;}StockID)﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 10:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-Dimension-Date-Previous-Date/m-p/267386#M496531</guid>
      <dc:creator />
      <dc:date>2012-01-12T10:16:00Z</dc:date>
    </item>
  </channel>
</rss>

