<?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 - Previous Month Values in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203449#M60773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you upload a QVW with an example of your information?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2009 00:18:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-01T00:18:54Z</dc:date>
    <item>
      <title>Set Analysis - Previous Month Values in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203448#M60772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I seem to have a problem, i've tried searching the forum and applying previous answers to my problem, but I cannot somehow get any of them to work correctly. I am trying to display the Sum Dollar Total of the&lt;/P&gt;&lt;P&gt;I have a variable SelDate which is a user chosen date with the property 'Always One Selected Value'.&lt;/P&gt;&lt;P&gt;I calculate SelDate at the time of script loading deriving it from ToDate:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;FormattedDate:&lt;BR /&gt;LOAD ToDate,&lt;BR /&gt;Date(MonthStart(ToDate), 'MMM YYYY') as SelDate&lt;BR /&gt;RESIDENT DataSet;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This sets every item in the dataset to have a date of the 1st of the respective month and year, eg. 01/01/2009, 01/04/2009.&lt;/P&gt;&lt;P&gt;In my pivot table I am trying to use an expression like this, however it does not appear to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Sum({1&amp;lt;SelDate={$(=(AddMonths(SelDate,-1)))}&amp;gt;} DollarAmount)&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It just returns dashes, any ideas as to what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 23:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203448#M60772</guid>
      <dc:creator />
      <dc:date>2009-09-30T23:31:37Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Month Values in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203449#M60773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you upload a QVW with an example of your information?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 00:18:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203449#M60773</guid>
      <dc:creator />
      <dc:date>2009-10-01T00:18:54Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Previous Month Values in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203450#M60774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="margin:0px;"&gt;Sum({1&amp;lt;SelDate={"$(=(AddMonths(SelDate,-1)))"}&amp;gt;} DollarAmount)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2009 00:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Previous-Month-Values-in-Pivot-Table/m-p/203450#M60774</guid>
      <dc:creator />
      <dc:date>2009-10-01T00:35:09Z</dc:date>
    </item>
  </channel>
</rss>

