<?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: Previous Value - Set Analysis - Drill Down in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Value-Set-Analysis-Drill-Down/m-p/455305#M568325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is a case that would be better to do in the load script creating a table with that values already calculated because inter-register functions work only over rows and columns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 17:27:59 GMT</pubDate>
    <dc:creator>chematos</dc:creator>
    <dc:date>2012-10-31T17:27:59Z</dc:date>
    <item>
      <title>Previous Value - Set Analysis - Drill Down</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Value-Set-Analysis-Drill-Down/m-p/455304#M568324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got two questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1) What is the best way to figure out how to understand Set Analysis syntax? I have used the Help and Wizard and they have been difficult to understand especially since I have applied the examples and don't necessarily get what it says. Especially in a drill down situation. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2) How do you get the previous value using set analysis for drill down on a Pivot or Table Chart?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Using the Trial and Error approach to figure out the syntax to this Set Analysis and just can't make this code work or anycode work for that matter.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ABOVE or BELOW, but it isnt the same and doesnt drill down well because it doesnt accomdate for the level up. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to bring the values of the previous value to compare against and create a variance in this situation below. I have 10 cycles in a month and days in each cycle which I want to compare against. So I would love to be able to see&lt;/P&gt;&lt;P&gt;Cycle 1 vs Cycle 2 and then drill down and get Cycle 1 Month 1 Day1 vs Cycle 2 Month 2 Day 1 and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the codes I tried to figure this one out:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[CYCLE]={$(#=(Cycle)-1)}&amp;gt;}Cycle_COUNT)&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[CYCLE_DATE]={$(=(Cycle_DATE)-1)}&amp;gt;}Cycle_COUNT)&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[CYCLE_DATE]={$(=(vCDATE)-1)}&amp;gt;}Cycle_COUNT) - Variable Version ( Where gets current selection date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 629px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7; background-color: #dce6f1;" width="104"&gt;Row Labels&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7; background-color: #dce6f1;" width="104"&gt;Sum of Counts1&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7; background-color: #dce6f1;" width="104"&gt;Sum of Counts2&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7; background-color: #dce6f1;" width="111"&gt;Sum of Amount1&lt;/TD&gt;&lt;TD style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7; background-color: #dce6f1;" width="111"&gt;Sum of Amount2&lt;/TD&gt;&lt;TD class="xl67" width="95"&gt;Previous Value Amt1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;30&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;30&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;2650&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;1600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;1/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;100&lt;/TD&gt;&lt;TD&gt;---&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;1/2/2012&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;150&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD&gt;---&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;1/3/2012&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD&gt;---&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;1/4/2012&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD&gt;---&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;2/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;200&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;200&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;2/2/2012&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;250&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;2/3/2012&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;2/4/2012&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20"&gt;3/1/2012&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;300&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;3/2/2012&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;350&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;3/3/2012&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;3/4/2012&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;30&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;30&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;1800&lt;/TD&gt;&lt;TD align="right" style="font-size: 11pt; color: black; font-weight: bold; font-family: Calibri; border-style: none none solid; border-bottom-width: 0.5pt; border-bottom-color: #95b3d7;"&gt;2300&lt;/TD&gt;&lt;TD align="right" class="xl70"&gt;2650&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for your help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 18:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Value-Set-Analysis-Drill-Down/m-p/455304#M568324</guid>
      <dc:creator />
      <dc:date>2012-10-25T18:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Value - Set Analysis - Drill Down</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Value-Set-Analysis-Drill-Down/m-p/455305#M568325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this is a case that would be better to do in the load script creating a table with that values already calculated because inter-register functions work only over rows and columns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 17:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Value-Set-Analysis-Drill-Down/m-p/455305#M568325</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-10-31T17:27:59Z</dc:date>
    </item>
  </channel>
</rss>

