<?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: Problem with SetAnalysis - Quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697506#M1061750</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about a pivot with ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimensions&lt;/P&gt;&lt;P&gt;Location&lt;/P&gt;&lt;P&gt;QuarterYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and expression&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp;&amp;nbsp; {$ &amp;lt;SoldDate={"&amp;gt;=$(=AddMonths(MonthStart(max(SoldDate)),-11))"}&amp;gt; }&amp;nbsp; Sold) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change -11 with the number of months you need&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67651_1.png" style="width: 620px; height: 93px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 14:38:52 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-09-25T14:38:52Z</dc:date>
    <item>
      <title>Problem with SetAnalysis - Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697504#M1061748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a help for a problem with Set Analysis.&lt;/P&gt;&lt;P&gt;This is my problem:&lt;/P&gt;&lt;P&gt;I would like to build a Pivot table with the Set Analysis where in rows I have the location and in the columns&lt;/P&gt;&lt;P&gt;I have sold in the last quarter, the quarter before last in the second column, and so on.&lt;/P&gt;&lt;P&gt;My idea, as you can see from table 3 of the attached file, is to consider&lt;/P&gt;&lt;P&gt;the maximum value of the data then take the first day of the month and build me a value similar&lt;/P&gt;&lt;P&gt;to the variable "QuarterYear" script loading:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sum ({&amp;lt;QuarterYear = {"$ (= (Year (monthstart (max (SoldDate), 0)) &amp;amp; '/' &amp;amp; Ceil (Month (monthstart (max (SoldDate), 0)) / 3)))"}&amp;gt; Sold})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second quarter of the previous column I would use a formula like this:&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;QuarterYear = {"$ (= (Year (monthstart (max (SoldDate) - 3)) &amp;amp; '/' &amp;amp; Ceil (Month (monthstart (max (SoldDate) - 3)) / 3)))" }&amp;gt;} Sold)&lt;/P&gt;&lt;P&gt;where to find the previous quarter subtract three months from the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Thank All&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697504#M1061748</guid>
      <dc:creator />
      <dc:date>2014-09-25T14:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SetAnalysis - Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697505#M1061749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marino, I removed the extra espaces in set analysis and it worked.&lt;/P&gt;&lt;P&gt;From previous months you'll need tho put the '-3' outside the monthstart function, so it substract from month, not from max(date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697505#M1061749</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-25T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SetAnalysis - Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697506#M1061750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about a pivot with ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimensions&lt;/P&gt;&lt;P&gt;Location&lt;/P&gt;&lt;P&gt;QuarterYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and expression&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp;&amp;nbsp; {$ &amp;lt;SoldDate={"&amp;gt;=$(=AddMonths(MonthStart(max(SoldDate)),-11))"}&amp;gt; }&amp;nbsp; Sold) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change -11 with the number of months you need&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/67651_1.png" style="width: 620px; height: 93px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697506#M1061750</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-25T14:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SetAnalysis - Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697507#M1061751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Ruben. &lt;/P&gt;&lt;P&gt;Very Nice. &lt;/P&gt;&lt;P&gt;But I do not understand what is the difference with my solution. &lt;/P&gt;&lt;P&gt;Please you tell me the differences?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697507#M1061751</guid>
      <dc:creator />
      <dc:date>2014-09-25T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with SetAnalysis - Quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697508#M1061752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You had a blank space between '$' and '(', also before closing the double quotes was another empty space:&lt;/P&gt;&lt;P&gt;Sum(&amp;nbsp; {&amp;lt;QuarterYear={"$&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/x.png" /&gt;(=(Year(monthstart(max(SoldDate),0)) &amp;amp;'/' &amp;amp;Ceil(Month(monthstart(max(SoldDate),0))/3)))&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/x.png" /&gt;"}&amp;gt; }&amp;nbsp; Sold)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing those it worked.&lt;/P&gt;&lt;P&gt;Glad to help. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:56:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SetAnalysis-Quarter/m-p/697508#M1061752</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2014-09-25T14:56:41Z</dc:date>
    </item>
  </channel>
</rss>

