<?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: year and quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248937#M867747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what i wrote to get month, i want the same logic for the year and quarter fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 20:21:02 GMT</pubDate>
    <dc:creator>dandaanilreddy</dc:creator>
    <dc:date>2016-12-12T20:21:02Z</dc:date>
    <item>
      <title>year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248935#M867745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;!Hwllo Qlik Developers&lt;/P&gt;&lt;P&gt;I have a pivot table in which i have 3 dimensions year, quarter and Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display data from 2015 last quarter to 2017 2nd quarter. For the date dimension i wrote the calculated dimension as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(MonthName(UnitActuals.ReportedDate) &amp;gt;= addmonths(today(),-13)&lt;/P&gt;&lt;P&gt;and MonthName(UnitActuals.ReportedDate) &amp;lt;= addmonths(today(),+6), MonthName(UnitActuals.ReportedDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried the same way for year and quarter but its not working. Can someone help me please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248935#M867745</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248936#M867746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this. This would work if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UnitActuals.ReportedDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;is in date format&lt;/P&gt;&lt;P&gt;=if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UnitActuals.ReportedDate&lt;/SPAN&gt; &amp;gt;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;addmonths(today(),-13)&lt;/SPAN&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;UnitActuals.ReportedDate&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;= addmonths(today(),6), MonthName(UnitActuals.ReportedDate))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 20:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248936#M867746</guid>
      <dc:creator>sangeess21</dc:creator>
      <dc:date>2016-12-12T20:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248937#M867747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what i wrote to get month, i want the same logic for the year and quarter fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 20:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248937#M867747</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-12-12T20:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248938#M867748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is quite tough to achieve that as a field.&lt;/P&gt;&lt;P&gt;What you can do is write a set expression taking your months field and only take last quarter from 2015, year =2016 and year =2017, Q2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression might look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {2015}, Quarter = {'Q4}&amp;gt;+&amp;lt; Year={2016}, Quarter&amp;gt;+&amp;lt; Year={2017}, Quarter={'Q1','Q2'} }&amp;gt;}Yourdimension)&lt;/P&gt;&lt;P&gt;I'm not sure if this will work or not...but you'll have to do this in front end.&lt;/P&gt;&lt;P&gt;In script you can create Flags for quarter or month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 20:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248938#M867748</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T20:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248939#M867749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if(InQuarter(TempDate, today(),+1), 1, 0) as FutureQ1trFlag, &amp;lt;&amp;lt;&amp;lt; Q1 Flag for 2017&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(InQuarter(TempDate, today(),+2), 1, 0) as FutureQ2trFlag, &amp;lt;&amp;lt;&amp;lt;&amp;lt;Q2 Flag for 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(InQuarter(TempDate, today(),-4), 1, 0) as PYQtrFlag, &amp;lt;&amp;lt;&amp;lt;&amp;lt;Q4 Flag for 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And 2016 you can use full Quarter as field, no need to use flags.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FutureQ1trFlag={1},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;FutureQ2trFlag={1},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PYQtrFlag={1}&amp;gt;+&amp;lt;Year={2016}, Quarter&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt; }&amp;gt;}Yourdimension)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This can be your expression...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Which combines 2015 Q4, 2016 full year and 2017 Q1, Q2.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248939#M867749</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T21:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248940#M867750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but its not working. I am attaching the app on the main discussion. Please take a look &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248940#M867750</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-12-12T21:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248941#M867751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I cannot reload the app as it is a SQL query.&lt;/P&gt;&lt;P&gt;Best is try what I've said in my latest reply ( I created flags) maybe that will work?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248941#M867751</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T21:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248942#M867752</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;I tried your solution i created the fields in backend and in chart i wrote the the below expression but i am getting error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;UnitActuals.FutureQ1trFlag={1},UnitActuals.FutureQ2trFlag={1},UnitActuals.PYQtrFlag={1}&amp;gt;+&amp;lt;UnitActuals.ReportedYear={2016}, UnitActuals.ReportedQuarter }&amp;gt;}&lt;SPAN style="font-size: 10pt;"&gt;UnitActuals.ReportedDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248942#M867752</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-12-12T21:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248943#M867753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any new fields for flags.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: My expression might be wrong, not an expert in Set Analysis&lt;/STRONG&gt; but with those flags it will be very helpful for you to get what you want.&lt;/P&gt;&lt;P&gt;Upload latest qvw with all the flags loaded?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248943#M867753</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T22:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248944#M867754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have uploaded a new qvw with flags on main discussion. Please take a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248944#M867754</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-12-12T22:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248945#M867755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Where do you want to implement this expression and what output you expecting?&lt;/P&gt;&lt;P&gt;Any figures you've from db?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248945#M867755</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T22:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248946#M867756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the front end i have a chart in which i am displaying the quarters data for current year. My requirement is i want to show data from 2015 4th quarter to 2017 second quarter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248946#M867756</guid>
      <dc:creator>dandaanilreddy</dc:creator>
      <dc:date>2016-12-12T22:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248947#M867757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be your expression (I might be wrong)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;ProductGroup,UnitActuals.FutureQ1trFlag={1},UnitActuals.FutureQ2trFlag={1},UnitActuals.PYQtrFlag={1}&amp;gt;+&amp;lt;&lt;/P&gt;&lt;P&gt;UnitActuals.ReportedYear={2016}, UnitActuals.ReportedQuarter &amp;gt;}BillingRegionType )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Count({&amp;lt;ProductGroup,UnitActuals.FutureQ1trFlag={1},UnitActuals.FutureQ2trFlag={1},UnitActuals.PYQtrFlag={1}&amp;gt;}BillingRegionType )+&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;UnitActuals.ReportedYear={2016}, UnitActuals.ReportedQuarter &amp;gt;}BillingRegionType )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I'm not sure if you want to use SUM or COUNT. Depends on your requirement again. With SUM it's giving 0 and with COUNT it's giving 6K...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know what dimensions to consider but I've checked the Flags are working fine and giving you required quarters from 2017 and 2015 only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/10670"&gt;maxgro&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/34352"&gt;awhitfield&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe someone with expertise level can help you in this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248947#M867757</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T22:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: year and quarter</title>
      <link>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248948#M867758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I could do.&lt;/P&gt;&lt;P&gt;Not sure if that is the output you looking for....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:40:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/year-and-quarter/m-p/1248948#M867758</guid>
      <dc:creator>MK9885</dc:creator>
      <dc:date>2016-12-12T22:40:30Z</dc:date>
    </item>
  </channel>
</rss>

