<?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: Set Analysis Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096712#M936992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help. I just need the last piece of the pie from you. Lets say I want to compare 2016 Q1 to 2015 Q4. Will it be possible with the above Jagan formula? Currently my formula doesn't include this part. It only provides me with the &lt;SPAN style="font-size: 13.3333px;"&gt;difference of quarters if it's the same year. What I'm humbly requesting is a &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;rolling quarter&lt;/EM&gt;&lt;/STRONG&gt; change where if I click on Q1 2016 it will provide me with the difference of Q1 2016 - Q4 2015. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Money((Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum))"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount) -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount)) * 4 /&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({[Book2]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.expenses))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115784_Capture.PNG" style="height: auto;" /&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/115785_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Feb 2016 13:30:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-24T13:30:54Z</dc:date>
    <item>
      <title>Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096701#M936981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=&lt;STRONG style="font-size: 12pt;"&gt;Sum({$&amp;lt;Quarter={'Q4'},{Book1})&amp;gt; - sum({$&amp;lt;Quarter={'Q3'},{Book1} &amp;gt;} grossamount * 4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please guide me towards the correct way of doing this SET expression. I have created a Bookmark called Book1 for the accounts needed for revenue calculation. I want to find the difference of income between the two quarters and times it by 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirements: Difference of income (book1 represents income accounts) between Quarter 4 and Quarter 3 times it by four.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please shade some light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 17:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096701#M936981</guid>
      <dc:creator />
      <dc:date>2016-02-23T17:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096702#M936982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;May be this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;=(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum({[Book1]&amp;lt;Quarter={'Q4'}&amp;gt;} grossamount) - Sum({[Book1]&amp;lt;Quarter={'Q3'}&amp;gt;} grossamount)) * 4&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 18:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096702#M936982</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-23T18:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096703#M936983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula works great, thanks. The formula is stagnant and solid and doesn't change if I make selections. Is there anyone I can automate this formula and make it dynamic so whenever the end user clicks on a year and the quarter the formula changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have 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;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=money(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum({[Book1]&amp;lt;Quarter={'Selected Quarter'}&amp;gt;} grossamount) - Sum({[Book1]&amp;lt;Quarter={'Previous Quarter}&amp;gt;} grossamount)) * 4&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;I have also tried converting the textbox to money but isn't working.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;Thanks in Advance,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115685_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096703#M936983</guid>
      <dc:creator />
      <dc:date>2016-02-23T19:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096704#M936984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not 100% sure, but try 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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=money(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum({[Book1]&amp;lt;Quarter={'Selected Quarter'}, [MC.DimYear] ={"$(=Max({$}[&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;MC.DimYear&lt;/STRONG&gt;]))"}&amp;gt;} grossamount) - Sum({[Book1]&amp;lt;Quarter={'Previous Quarter}&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;, [MC.DimYear] ={"$(=Max({$}[&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;MC.DimYear&lt;/STRONG&gt;]))"}&lt;/STRONG&gt;&amp;gt;} grossamount)) * 4&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096704#M936984</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-23T19:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096705#M936985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it's difficult to get the formula right without having the data to practice with, I thank you for your hardwork. This formula might be it but the 'Selected Quarter' and "Previous Quarter' aren't actual fields in my dataset. Selected Quarter can be any quarter chosen by the end user after he/she have chosen the year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Let's say the user selects 2014 and Third Quarter, the formula should look 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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;=money(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum({[Book1]&amp;lt;Quarter={'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;Q3&lt;/EM&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;'}, [MC.DimYear] ={"$(=Max({$}[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;MC.DimYear&lt;/SPAN&gt;]))"}&amp;gt;} grossamount) - Sum({[Book1]&amp;lt;Quarter={&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;EM&gt;'Q2'&lt;/EM&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;, [MC.DimYear] ={"$(=Max({$}[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt;"&gt;MC.DimYear&lt;/SPAN&gt;]))"}&lt;/SPAN&gt;&amp;gt;} grossamount)) * 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thanks Sunny!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 19:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096705#M936985</guid>
      <dc:creator />
      <dc:date>2016-02-23T19:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096706#M936986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create another field in the script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Ceil(Month(Date)/3) as QuarterNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try this expression:&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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;=Money(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum({[Book1]&amp;lt;QuarterNum={"$(=Max({$}QuarterNum))"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-size: 10pt; font-style: inherit;"&gt;}, [MC.DimYear] ={"$(=Max({$}[&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;MC.DimYear&lt;/SPAN&gt;]))"}&amp;gt;} grossamount) - Sum({[Book1]&amp;lt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;QuarterNum={"$(=Max({$}QuarterNum)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; color: #3d3d3d;"&gt;}, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;[MC.DimYear] ={"$(=Max({$}[&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;MC.DimYear&lt;/SPAN&gt;]))"}&lt;/SPAN&gt;&amp;gt;} grossamount)) * 4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096706#M936986</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-23T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096707#M936987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny I already have a Quarter field called the DimQuarter and DimYear for Year field. This formula can actually do it but for some odd reason it gives me a zero for all the filters, just zero even though the formula has no mistake whatsoever. I wish I can send you this file but I have my hands shackled.&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115687_Capture.PNG" style="height: auto;" /&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/115694_Capture1.PNG" style="height: 19px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096707#M936987</guid>
      <dc:creator />
      <dc:date>2016-02-23T21:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096708#M936988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the Quarter you have is a text and the one I mentioned above is going to be a number. You cannot find Max(Quarter), but you can find Max(QuarterNum).&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;LOAD Ceil(Month(Date)/3) as QuarterNum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you 1, 2, 3, 4 instead of Q1, Q2, Q3, Q4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096708#M936988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-23T21:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096709#M936989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome Sunny it seems to be working. Still I can't get the formula to display the dollar sign. And also I want to divide the whole formula now by the expenses I have outlined the expense accounts in my Bookmark 2 called Book 2 for the &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;previous quarter&lt;/EM&gt;&lt;/STRONG&gt; so would my expression at the bottom work in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Money(Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum))"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount) - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount)) * 4 /&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({[Book2]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.expenses)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096709#M936989</guid>
      <dc:creator />
      <dc:date>2016-02-23T21:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096710#M936990</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;Try this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Money((Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum))"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount) - &lt;/P&gt;&lt;P&gt;Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount)) * 4 / &lt;/P&gt;&lt;P&gt;Sum({[Book2]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.expenses))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 03:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096710#M936990</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2016-02-24T03:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096711#M936991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make the dollar sign work in your previous expression, you would do 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;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;=Money(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Sum&lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;({[Book1]&amp;lt;QuarterNum={"$(=Max({$}QuarterNum))"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}, [MC.DimYear] ={"$(=Max({$}[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;MC.DimYear&lt;/SPAN&gt;]))"}&amp;gt;} grossamount) - Sum({[Book1]&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;QuarterNum={"$(=Max({$}QuarterNum)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;}, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;[MC.DimYear] ={"$(=Max({$}[&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;MC.DimYear&lt;/SPAN&gt;]))"}&lt;/SPAN&gt;&amp;gt;} grossamount)) * 4&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically wrapping Money() function around the whole thing (including the 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for your second request, may be as &lt;A href="https://community.qlik.com/qlik-users/23109"&gt;jagan&lt;/A&gt;‌ prescribed. Let us know if that doesn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 09:18:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096711#M936991</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T09:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096712#M936992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help. I just need the last piece of the pie from you. Lets say I want to compare 2016 Q1 to 2015 Q4. Will it be possible with the above Jagan formula? Currently my formula doesn't include this part. It only provides me with the &lt;SPAN style="font-size: 13.3333px;"&gt;difference of quarters if it's the same year. What I'm humbly requesting is a &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;rolling quarter&lt;/EM&gt;&lt;/STRONG&gt; change where if I click on Q1 2016 it will provide me with the difference of Q1 2016 - Q4 2015. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Money((Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum))"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount) -&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount)) * 4 /&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({[Book2]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum)-1)"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.expenses))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115784_Capture.PNG" style="height: auto;" /&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/115785_Capture1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 13:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096712#M936992</guid>
      <dc:creator />
      <dc:date>2016-02-24T13:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096713#M936993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Money((Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=Max({$}MC.QuarterNum))"}, [MC.DimYear] ={"$(=Max({$}[MC.DimYear]))"}&amp;gt;} MC.grossamount) -&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({[Book1]&amp;lt;MC.QuarterNum={"$(=&lt;SPAN style="color: #ff0000;"&gt;If(Max({$}MC.QuarterNum) - 1 = 0, 4,&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max({$}MC.QuarterNum)-1&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;)"}, [MC.DimYear] ={"$(=&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(Max({$}MC.QuarterNum) - 1 = 0, &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;Max({$}[MC.DimYear]) - 1,&lt;/SPAN&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max({$}[MC.DimYear])&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;)"}&amp;gt;} MC.grossamount)) * 4 /&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum({[Book2]&amp;lt;MC.QuarterNum={"$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;SPAN style="color: #ff0000;"&gt;If(Max({$}MC.QuarterNum) - 1 = 0, 4, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max({$}MC.QuarterNum)-1&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;)"}, [MC.DimYear] ={"$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(Max({$}MC.QuarterNum) - 1 = 0, &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max({$}[MC.DimYear]) - 1, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Max({$}[MC.DimYear])&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;)"}&amp;gt;} MC.expenses))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 17:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096713#M936993</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T17:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096714#M936995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you briefly explain to me the formula itself and the reasons for &lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt; - 1 = 0, 4 and -1 = 0? Does it tell the formula to look for the numbers for the previous quarter even if the quarter might be from another year(e.g. Q4 of 2015)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ALL your help Sunny!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 18:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096714#M936995</guid>
      <dc:creator />
      <dc:date>2016-02-24T18:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096715#M936999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is saying if QuarterNum selected is 1 then instead of showing 0, show 4 for the QuarterNum and same logic for the year. If the QuarterNum is 1, we need to go back one year and use the 4th quarter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 18:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096715#M936999</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-24T18:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096716#M937000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan and thanks a bunch Sunny. Without your help I would have not been able to tackle this formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Feb 2016 19:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help/m-p/1096716#M937000</guid>
      <dc:creator />
      <dc:date>2016-02-24T19:21:31Z</dc:date>
    </item>
  </channel>
</rss>

