<?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 month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689789#M249740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this expression you have no duplicate field selections (Year=Value, disregard sel MonthYear).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the Month=Sel, Month= in set expression and the combination will disregard the Month=Sel with Month=. Have you tried my suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 10:20:34 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-10-24T10:20:34Z</dc:date>
    <item>
      <title>previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689783#M249734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a problem with the previous month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vPrevMonth2 =&amp;nbsp; =Month(AddMonths(Date(Today()),-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Month={'$(vPrevMonth2)'},Year=,Month=,Day=&amp;gt;}IF((SALESPRICE)*QTYORDERED=0,' ',SALESPRICE*QTYORDERED))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(IF((SALESPRICE)*QTYORDERED=0,' ',SALESPRICE)*QTYORDERED)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are the results in my pivot in both coluns the same? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689783#M249734</guid>
      <dc:creator />
      <dc:date>2014-10-24T08:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689784#M249735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's because the set expression is broken in some way.&lt;/P&gt;&lt;P&gt;You might just need an = sign here:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(=vPrevMonth2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you test&amp;nbsp; that this works correctly?&lt;/P&gt;&lt;P&gt;{$&amp;lt;Month={'$(=Month(AddMonths(Today()-1)))'}, Year=, Month=, Day=&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the field Month in the same format and language as that returned by the Month function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 08:43:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689784#M249735</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-10-24T08:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689785#M249736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need = sign but nothing happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select a special month for exampel Sep in the second column the result is right and in the first column nothing changes, it shows the whole numbers...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689785#M249736</guid>
      <dc:creator />
      <dc:date>2014-10-24T09:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689786#M249737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...and when i test my variable in a text box i get the right result...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689786#M249737</guid>
      <dc:creator />
      <dc:date>2014-10-24T09:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689787#M249738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that in your set expression you first define Month to be a specific month, and later disregard that selction again by saying Month=,. Remove the Month=, so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({$&amp;lt;Month={'$(vPrevMonth2)'},Year=,Day=&amp;gt;}IF((SALESPRICE)*QTYORDERED=0,' ',SALESPRICE*QTYORDERED))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 09:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689787#M249738</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-24T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689788#M249739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with this formula it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'$(vPrevMonthYear)'},Month={'$(vPrevMonth)'},TCMSALESORDERDATE=,MonthYear=&amp;gt;}IF((NAME_ECORESATTRIBUTE)&lt;/P&gt;&lt;P&gt;='Produktserie',SALESPRICE*QTYORDERED))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 10:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689788#M249739</guid>
      <dc:creator />
      <dc:date>2014-10-24T10:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: previous month</title>
      <link>https://community.qlik.com/t5/QlikView/previous-month/m-p/689789#M249740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this expression you have no duplicate field selections (Year=Value, disregard sel MonthYear).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the Month=Sel, Month= in set expression and the combination will disregard the Month=Sel with Month=. Have you tried my suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 10:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/previous-month/m-p/689789#M249740</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-24T10:20:34Z</dc:date>
    </item>
  </channel>
</rss>

