<?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 expression help- quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944350#M952114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM(rank(-(aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;} UnitSales) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;} TotalSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum({&amp;lt;MonthYear =,Date= {'&amp;gt;=$(=Date(MONTHSTART(AddMonths(vMaxSalesDate, -1))))&amp;lt;=$(=Date(MONTHEND(AddMonths(vMaxSalesDate, -1))))'} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;UnitSales&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear =,Date= {'&amp;gt;=$(=Date(MONTHSTART(AddMonths(vMaxSalesDate, -1))))&amp;lt;=$(=Date(MONTHEND(AddMonths(vMaxSalesDate, -1))))'} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;TotalSales&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Branch))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression calculates rank of sales % - Current month vs Previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this woks fine for monthly selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when a quarter is selected, the value is not getting changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex., if i click on Q4, the expression shows rank for current month and not for the quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i change the expression for a quarterly view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 11:05:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-03T11:05:21Z</dc:date>
    <item>
      <title>expression help- quarter</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944350#M952114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NUM(rank(-(aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;} UnitSales) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=date(MonthStart(vMaxSalesDate)))&amp;lt;=$(=date(vMaxSalesDate))"}&amp;gt;} TotalSales))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Sum({&amp;lt;MonthYear =,Date= {'&amp;gt;=$(=Date(MONTHSTART(AddMonths(vMaxSalesDate, -1))))&amp;lt;=$(=Date(MONTHEND(AddMonths(vMaxSalesDate, -1))))'} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;UnitSales&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;MonthYear =,Date= {'&amp;gt;=$(=Date(MONTHSTART(AddMonths(vMaxSalesDate, -1))))&amp;lt;=$(=Date(MONTHEND(AddMonths(vMaxSalesDate, -1))))'} &amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;TotalSales&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;, Branch))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression calculates rank of sales % - Current month vs Previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this woks fine for monthly selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when a quarter is selected, the value is not getting changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex., if i click on Q4, the expression shows rank for current month and not for the quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i change the expression for a quarterly view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944350#M952114</guid>
      <dc:creator />
      <dc:date>2015-12-03T11:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: expression help- quarter</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944351#M952115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Becoz you have bypassed the &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Date= &lt;/STRONG&gt;and quarter you have created on Date field&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;, I hope so..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944351#M952115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-03T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: expression help- quarter</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944352#M952116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for the reply&lt;/P&gt;&lt;P&gt;sorry i dont understand&lt;/P&gt;&lt;P&gt;Can you please help me with the expression change for quarter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944352#M952116</guid>
      <dc:creator />
      <dc:date>2015-12-03T11:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: expression help- quarter</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944353#M952117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls somebody give suggestions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 13:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944353#M952117</guid>
      <dc:creator />
      <dc:date>2015-12-03T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: expression help- quarter</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944354#M952118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;NUM(rank(-(aggr(&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;(Sum({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=QuarterStart($(vMaxSalesDate)))&amp;lt;=$(vMaxSalesDate)"}&amp;gt;} UnitSales)&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({&amp;lt;MonthYear =,Date=&amp;nbsp; {"&amp;gt;=$(=&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;QuarterStart&lt;/STRONG&gt;($(vMaxSalesDate)))&amp;lt;=$(vMaxSalesDate)"}&amp;gt;} TotalSales))&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;-&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;(Sum({&amp;lt;MonthYear =,Date= {'&amp;gt;=$(=&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;QuarterStart($&lt;/STRONG&gt;(vMaxSalesDate), -1))&amp;lt;$(=&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;QuarterStart&lt;/STRONG&gt;($(vMaxSalesDate)))'} &amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;UnitSales&lt;/SPAN&gt;)&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;/&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({&amp;lt;MonthYear =,Date= {'&amp;gt;=$(=&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;QuarterStart&lt;/STRONG&gt;($(vMaxSalesDate), -1))&amp;lt;$(=&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;QuarterStart&lt;/STRONG&gt;($(vMaxSalesDate)))'} &amp;gt;} &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;TotalSales&lt;/SPAN&gt;))&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;, Branch))&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;STRONG style="font-style: inherit; font-family: inherit;"&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 18:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944354#M952118</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-03T18:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: expression help- quarter</title>
      <link>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944355#M952119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually for a quarter, i shouldnt change the calculation as current quarter - prev quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i should do quarter with logic curr month - prev month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have posted sample in thread 926337.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help me on that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2015 14:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-help-quarter/m-p/944355#M952119</guid>
      <dc:creator />
      <dc:date>2015-12-04T14:46:15Z</dc:date>
    </item>
  </channel>
</rss>

