<?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: Last Month Units - Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090510#M940422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well spotted Sunny T but it hasn't solved the problem unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2016 10:55:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-28T10:55:55Z</dc:date>
    <item>
      <title>Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090508#M940420</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;&lt;/P&gt;&lt;P&gt;I'm trying to show the number of units sold for last month using set analysis. My expression I have is below which I thought would work but doesn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;UNIT.SOLD_MONTH = {"$(=month(addmonths(today),-1))"}&amp;gt;} UNIT.TOTALSOLD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090508#M940420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T10:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090509#M940421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are missing open and close parenthesis for Today() function. Try this:&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; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;UNIT.SOLD_MONTH = {"$(=Month(AddMonths(Today(),-1)))"}&amp;gt;} UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090509#M940421</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-28T10:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090510#M940422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well spotted Sunny T but it hasn't solved the problem unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 10:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090510#M940422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T10:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090511#M940423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was also missing parenthesis at the end. Have you tried copy pasting the expression I have posted above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090511#M940423</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-28T11:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090512#M940424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I've copied and pasted your expression it's still blank?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090512#M940424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T11:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090513#M940425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the values within &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.SOLD_MONTH&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090513#M940425</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-28T11:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090514#M940426</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;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.SOLD_MONTH &lt;/STRONG&gt;is Text or Number?&lt;/P&gt;&lt;P&gt;did you check it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090514#M940426</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-01-28T11:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090515#M940427</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;Unit.Sold_Month is in the format MMM-YY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090515#M940427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090516#M940428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this...&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;UNIT.SOLD_MONTH = {"$(=Date(AddMonths(Today(),-1),'MMM-YY'))"}&amp;gt;} UNIT.TOTALSOLD)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090516#M940428</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-01-28T11:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090517#M940429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;UNIT.SOLD_MONTH = {"$(=&lt;SPAN style="font-size: 13.3333px;"&gt;Date(AddMonths(Today(),-1),'MMM-YY')&lt;/SPAN&gt;)"}&amp;gt;} UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090517#M940429</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-01-28T11:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090518#M940430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below expression&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UNIT.SOLD_MONTH&lt;/SPAN&gt;= {"$(=Month(AddMonths(Today(),-1)))"}, &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UNIT.SOLD_YEAR&lt;/SPAN&gt;= {"$(=Year(AddMonths(Today(),-1)))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; UNIT.TOTALSOLD&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090518#M940430</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-01-28T11:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090519#M940431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above is assuming that &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.SOLD_MONTH &lt;/STRONG&gt;is a field which is date field as well. I would check if that's true by checking if Num(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.SOLD_MONTH&lt;/STRONG&gt;) in a list box gives you number. If it does than Mayil and Pradeep's expression should work for you. Else fix the &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UNIT.SOLD_MONTH &lt;/STRONG&gt;in the script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:16:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090519#M940431</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-28T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090520#M940432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Try to take one separate field for month and use the same in the expression&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt; Month_field = {"$(=Month(AddMonths(Today(),-1)))"}&amp;gt;} UNIT.TOTALSOLD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or&amp;nbsp; &lt;/P&gt;&lt;P&gt;exp is like :&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;UNIT.SOLD_MONTH = {"$(=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Date(AddMonths(Today(),-1),'MMM-YY')&lt;/SPAN&gt;)"}&amp;gt;} UNIT.TOTALSOLD)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090520#M940432</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2016-01-28T11:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last Month Units - Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090521#M940433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much for everyone's help and advice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Last-Month-Units-Set-Analysis/m-p/1090521#M940433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-28T11:21:37Z</dc:date>
    </item>
  </channel>
</rss>

