<?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 Day comparisons for a month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204558#M61417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John Witherspoon seems to have solved this eternal issue, give this a read:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/20915.aspx"&gt;http://community.qlik.com/forums/t/20915.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2009 21:33:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-01T21:33:40Z</dc:date>
    <item>
      <title>Day comparisons for a month</title>
      <link>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204557#M61416</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;To fully understand my problem please look at the following sample data&lt;/P&gt;&lt;P&gt;Calendar table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DateKey Comparable Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2008-01-21 2007-01-20&lt;/P&gt;&lt;P&gt;2008-01-22 2007-01-21&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;Sales table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date Key Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2007-01-20 100&lt;/P&gt;&lt;P&gt;2007-01-21 200&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;2008-01-21 50&lt;/P&gt;&lt;P&gt;2008-01-22 70&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to be able to do is get a straight table when i select a year and month that looks like the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DateKey CurrentSales PreviousSales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2008-01-21 50 100&lt;/P&gt;&lt;P&gt;2008-01-22 70 200&lt;/P&gt;&lt;P&gt;Not sure what kind of formula or set analysis to use for this. Any suggestions would be much appreciated thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 21:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204557#M61416</guid>
      <dc:creator />
      <dc:date>2009-10-01T21:29:29Z</dc:date>
    </item>
    <item>
      <title>Day comparisons for a month</title>
      <link>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204558#M61417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John Witherspoon seems to have solved this eternal issue, give this a read:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/t/20915.aspx"&gt;http://community.qlik.com/forums/t/20915.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 21:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204558#M61417</guid>
      <dc:creator />
      <dc:date>2009-10-01T21:33:40Z</dc:date>
    </item>
    <item>
      <title>Day comparisons for a month</title>
      <link>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204559#M61418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New and simpler version of my solution just posted in the referenced thread. As far as your specific data, you would rearrange your tables like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;DateKey Date Type Record ID&lt;BR /&gt;2008-01-21 Previous 1&lt;BR /&gt;2008-01-22 Previous 2&lt;BR /&gt;2008-01-21 Current 3&lt;BR /&gt;2008-01-22 Current 4&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Record ID Sales&lt;BR /&gt;1 100&lt;BR /&gt;2 200&lt;BR /&gt;3 50&lt;BR /&gt;4 70&lt;/P&gt;&lt;P&gt;Then you just create a pivot table with DateKey and DateType as dimensions. Use sum(Sales) as the expression. Override the label for DateType to call it Sales. You should end up with this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;DateKey Sales Current Previous&lt;BR /&gt;2008-01-21 50 100&lt;BR /&gt;2008-01-22 70 200&lt;/P&gt;&lt;P&gt;Note that each record ID will be associated with TWO DateKeys, which isn't obvious from your specific data. Which ID you use (and thus which date you're looking at) depends on the Date Type. By the same token, each DateKey is associated with TWO days of data, so you may need to use set analysis to narrow down to one Date Type when you don't want to see both.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 00:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Day-comparisons-for-a-month/m-p/204559#M61418</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-10-02T00:28:39Z</dc:date>
    </item>
  </channel>
</rss>

