<?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: How to combine sum &amp; monthsstart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362869#M575138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Above file is corrupted. Not sure if you can open it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 09:11:01 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-05-23T09:11:01Z</dc:date>
    <item>
      <title>How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362864#M575133</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'm the beginner and need your help.&lt;/P&gt;&lt;P&gt;I would show in the one chart sales for current and previous months and don't know how to prepare script.&lt;/P&gt;&lt;P&gt;(Sum({$}[Sales 1])) - I used that one for present selected month.&lt;/P&gt;&lt;P&gt;What script should I use for presenting data tied with previous than selected month. I tried to use "MonthsStart(1,Period,-1)" but can not combine it with one above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 09:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362864#M575133</guid>
      <dc:creator />
      <dc:date>2012-05-22T09:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362865#M575134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Arek,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;How about using Set Analysis to get the previous month sales numbers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;sum( {$&amp;lt;MyMonth= {$(=Only(MyMonth)-1)}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I'm attaching a simple Set Analysis tutorial for your reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Good luck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 09:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362865#M575134</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-22T09:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362866#M575135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak,&lt;/P&gt;&lt;P&gt;Thanks for your quick reply.&lt;/P&gt;&lt;P&gt;Using the code you already posted I get the same data (selected month) in both bars Actual &amp;amp; Previous...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 10:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362866#M575135</guid>
      <dc:creator />
      <dc:date>2012-05-22T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362867#M575136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Arek - I should have been more specific. That was just an idea on how you can use the same in Set Analysis. Please can you post the same QVW file? I'm sure it's something to do with the date formats. I'll work with your example if you can provide...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers - DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 10:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362867#M575136</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-22T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362868#M575137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 09:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362868#M575137</guid>
      <dc:creator />
      <dc:date>2012-05-23T09:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362869#M575138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Above file is corrupted. Not sure if you can open it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 09:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362869#M575138</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-23T09:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362870#M575139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you open that one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Arek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 09:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362870#M575139</guid>
      <dc:creator />
      <dc:date>2012-05-23T09:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362871#M575140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Arek- Here you go. You will see previous month's data only when there is selection on Month Field. If you have multiple Year's data then you need to improve this expression to handle the January to December conversion for Previous Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;This is the expression :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;SUM({&amp;lt;Month = {$(&lt;EM style="color: #800000;"&gt;=Month(MakeDate(Year,Num(Month)-1)))&lt;/EM&gt;}&amp;gt;} Revenue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;And I'm also attaching the QVW file for your reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;I hope this makes sense.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://qlikshare.com/"&gt;www.QlikShare.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362871#M575140</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-05-23T10:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine sum &amp; monthsstart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362872#M575141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect solution:)&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-combine-sum-monthsstart/m-p/362872#M575141</guid>
      <dc:creator />
      <dc:date>2012-05-23T10:53:46Z</dc:date>
    </item>
  </channel>
</rss>

