<?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: Previous Quarter Year Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523184#M749339</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is this QuarterStart field in your set analysis that you are comparing to?&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;QuarterStart = {"$(=QuarterStart(Max(QuarterYear), -1))"}&amp;gt;} Measure)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2018 18:12:40 GMT</pubDate>
    <dc:creator>BootCam</dc:creator>
    <dc:date>2018-12-20T18:12:40Z</dc:date>
    <item>
      <title>Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523128#M749331</link>
      <description>&lt;P&gt;I have Quarter Year field in this format, 20183, 20182, 20181, 20174, 20173, 20172, 20171 and so on.&lt;/P&gt;&lt;P&gt;I would like to create a variable for the the previous quarter calculation.&lt;/P&gt;&lt;P&gt;So, When the user select 20183 they will see the current Quarter value and 20182 will be the previous Quarter value.&lt;/P&gt;&lt;P&gt;I was trying with this: =Left(QuarterYear,4)&amp;amp;(Right(QuarterYear,1)-1) but when i select 20181 its giving me 20180 rather than 20174.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523128#M749331</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2024-11-16T04:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523136#M749332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a selected date you can calculate the previous quarter as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 'Q' &amp;amp; If(Ceil(Month(Date)/3)-1=0,4,Ceil(Month(Date)/3)-1)&lt;/PRE&gt;&lt;P&gt;Ag+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523136#M749332</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2018-12-20T16:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523139#M749333</link>
      <description>&lt;P&gt;Hi Ag+,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply but its not giving the desired results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i select 20171, 20172, 20173 its showing quarter Q4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 16:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523139#M749333</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T16:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523143#M749334</link>
      <description>&lt;P&gt;Sorry, i&amp;nbsp;was thinking on standard quarter format ...&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If(Ceil(Month(Date)/3)-1=0
   ,Year(Date)-1 &amp;amp; 4
   ,Year(Date) &amp;amp; Ceil(Month(Date)/3)-1
)&lt;/PRE&gt;&lt;P&gt;Ag+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 17:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523143#M749334</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2018-12-20T17:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523152#M749335</link>
      <description>&lt;P&gt;Please see attached file. i am still not getting the desired results. In the text box i add your calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 17:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523152#M749335</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T17:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523155#M749336</link>
      <description>&lt;P&gt;I suggest using QuarterStart() function to create a quarter field which can then be used in set analysis.&lt;/P&gt;&lt;PRE&gt;LOAD QuarterStart(Date) as QuarterYear&lt;/PRE&gt;&lt;P&gt;and in your set analysis you can do this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;QuarterStart = {"$(=QuarterStart(Max(QuarterYear), -1))"}&amp;gt;} Measure)&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Dec 2018 17:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523155#M749336</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523159#M749337</link>
      <description>&lt;P&gt;Hi Sunny I do not have a Date field, I have a Quarter Year field only. The example values are as i mentioned in my previous post like&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;in this format, 20183, 20182, 20181, 20174, 20173, 20172, 20171 and so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BC&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 17:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523159#M749337</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T17:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523162#M749338</link>
      <description>&lt;P&gt;Create a QuarterYear field like this&lt;/P&gt;&lt;PRE&gt;=QuarterStart(MakeDate(Left(QuarterYear, 4), Right(QuarterYear, 1)*3)) as QuarterYear_New&lt;/PRE&gt;&lt;P&gt;and then use the set analysis on the QuarterYear_New field.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 17:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523162#M749338</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523184#M749339</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is this QuarterStart field in your set analysis that you are comparing to?&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;QuarterStart = {"$(=QuarterStart(Max(QuarterYear), -1))"}&amp;gt;} Measure)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523184#M749339</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T18:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523196#M749340</link>
      <description>&lt;P&gt;My bad... should be QuarterYear&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;&lt;FONT color="#FF0000"&gt;QuarterYear&lt;/FONT&gt; = {"$(=QuarterStart(Max(QuarterYear), -1))"}&amp;gt;} Measure)&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523196#M749340</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T18:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523200#M749341</link>
      <description>&lt;P&gt;Hi Sunny,&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you mentioned,&lt;/P&gt;&lt;P&gt;So if i create the new field as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;=QuarterStart(MakeDate(Left(QuarterYear, 4), Right(QuarterYear, 1)*3)) as QuarterYear_New&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Then the set analysis would be:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;&lt;FONT color="#FF0000"&gt;QuarterYear_new&lt;/FONT&gt; = {"$(=QuarterStart(Max(QuarterYear_nee), -1))"}&amp;gt;} Measure)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Is that right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523200#M749341</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T18:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523201#M749342</link>
      <description>&lt;P&gt;Yup, this&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;&lt;FONT color="#FF0000"&gt;QuarterYear_new&lt;/FONT&gt; = {"$(=QuarterStart(Max(QuarterYear_ne&lt;FONT color="#FF0000"&gt;w&lt;/FONT&gt;), -1))"}&amp;gt;} Measure)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 18:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523201#M749342</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T18:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523228#M749343</link>
      <description>&lt;P&gt;Thanks Sunny!&lt;/P&gt;&lt;P&gt;I am Not sure why but when i do sum(Measure) i get some value for example but with your calculation i get 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 19:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523228#M749343</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T19:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523229#M749344</link>
      <description>&lt;P&gt;Are you making selection in any date or time field?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 19:30:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523229#M749344</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T19:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523232#M749345</link>
      <description>&lt;P&gt;Yes, I am making selections on the QuarterYear field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 19:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523232#M749345</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T19:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523235#M749346</link>
      <description>&lt;P&gt;Then you need to ignore selection in that field because selection and set analysis are contradicting each other&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;QuarterYear_new = {"$(=QuarterStart(Max(QuarterYear_new), -1))"}, &lt;FONT color="#FF0000"&gt;QuarterYear&lt;/FONT&gt;&amp;gt;} Measure)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 19:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523235#M749346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T19:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523240#M749347</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;If i cant get values by That field selections then the solution wont be useful for my situation.&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://community.qlik.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 19:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523240#M749347</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T19:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523244#M749348</link>
      <description>My friend, have you even tried it? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; do everything as you would want to... but just use the new expression</description>
      <pubDate>Thu, 20 Dec 2018 20:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523244#M749348</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T20:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523245#M749349</link>
      <description>&lt;P&gt;Hi Sunny, I actually tried before replying to you.&amp;nbsp;&lt;img id="mantongue" class="emoticon emoticon-mantongue" src="https://community.qlik.com/i/smilies/16x16_man-tongue.png" alt="Man Tongue" title="Man Tongue" /&gt;&lt;BR /&gt;&lt;BR /&gt;But ignoring the selection field has no effect on the calculation. So how do i get any previous period based on the selection if i cant select the field?&lt;/P&gt;&lt;P&gt;I am confused though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BC&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 20:23:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523245#M749349</guid>
      <dc:creator>BootCam</dc:creator>
      <dc:date>2018-12-20T20:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Quarter Year Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523247#M749350</link>
      <description>&lt;P&gt;So, you select a single QuarterYear and use this expression&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;QuarterYear_new = {"$(=QuarterStart(Max(QuarterYear_new), -1))"}, QuarterYear&amp;gt;} Measure)&lt;/PRE&gt;&lt;P&gt;and nothing happens? What do you mean when you say nothing happens? See 0s? or nothing get filtered out?&lt;/P&gt;&lt;P&gt;Would you be able to share a sample to show the issue? This can be a small issue, but very difficult to know without something to look at.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 20:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-Quarter-Year-Calculation/m-p/1523247#M749350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-20T20:28:49Z</dc:date>
    </item>
  </channel>
</rss>

