<?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: Current Year Qtr and previous year with Qtr in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84590#M13903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yours is text field. Ideally this should have been created in the script as a dual field. However, to deal with this in the UI there would be many ways like using complex if..then..else along with string functions. I used another way of parsing the date and then to apply date functions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Ceil(Month(AddMonths(MakeDate(Right(Period,4),left(Period,1)*3),-3))/3) &amp;amp;'Q ' &amp;amp; Year(AddMonths(MakeDate(Right(Period,4),left(Period,1)*3),-3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 11:14:56 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2018-02-12T11:14:56Z</dc:date>
    <item>
      <title>Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84585#M13898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I have a Period of format '4q 2017' and i want to go to '3q 2017' . by maxstring(period) i get '4q 2017' but how should i reach to '3q 2017'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I tried maxstring&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(period)-1 but it doesnt work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Any solution on this??&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84585#M13898</guid>
      <dc:creator>amita1621</dc:creator>
      <dc:date>2018-02-12T06:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84586#M13899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you create this field in the script? Could you post that statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:24:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84586#M13899</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T06:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84587#M13900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I textbox i wrote&lt;/P&gt;&lt;P&gt;=MaxString(Period)&lt;/P&gt;&lt;P&gt;which provided output as 4Q 2017 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for secondtextbox i wrote &lt;/P&gt;&lt;P&gt;=MaxString(Period)-1&lt;/P&gt;&lt;P&gt;which gives blank result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84587#M13900</guid>
      <dc:creator>amita1621</dc:creator>
      <dc:date>2018-02-12T06:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84588#M13901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information. However, that didn't answer my query above. Could you post your sample qvw? You have to understand how maxstring() works; what the field type you are applying this expression to get the expected output. If you want one quarter back value by simply subtracting 1, then your field has to be created in the script accordingly; and that is probably a dual field and not just as a string. If you can share your sample app, we may help you suggesting a solution fits for your case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 06:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84588#M13901</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T06:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84589#M13902</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;PFA the sample Qv file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 10:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84589#M13902</guid>
      <dc:creator>amita1621</dc:creator>
      <dc:date>2018-02-12T10:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84590#M13903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yours is text field. Ideally this should have been created in the script as a dual field. However, to deal with this in the UI there would be many ways like using complex if..then..else along with string functions. I used another way of parsing the date and then to apply date functions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Ceil(Month(AddMonths(MakeDate(Right(Period,4),left(Period,1)*3),-3))/3) &amp;amp;'Q ' &amp;amp; Year(AddMonths(MakeDate(Right(Period,4),left(Period,1)*3),-3))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 11:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84590#M13903</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T11:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84591#M13904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesnt work in my data . Only Q is shown as result. and its working in the sample data provided&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84591#M13904</guid>
      <dc:creator>amita1621</dc:creator>
      <dc:date>2018-02-12T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84592#M13905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Amita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That mostly like means, your sample data is not really representative sample of your actual data. And without knowing that (how your actual data is), it would be very hard for us to keep guessing and suggesting a probable solution. I would rather suggest you to provide more information about your data, or get the logic what I suggested above and try to solve yourself from there onward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84592#M13905</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-02-12T12:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Current Year Qtr and previous year with Qtr</title>
      <link>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84593#M13906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Current-Year-Qtr-and-previous-year-with-Qtr/m-p/84593#M13906</guid>
      <dc:creator>amita1621</dc:creator>
      <dc:date>2018-02-12T12:09:48Z</dc:date>
    </item>
  </channel>
</rss>

