<?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 How can we get a previous field values from a field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811530#M286467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table name Quarter with field values&amp;nbsp; Q 1, Q 2, Q 3, Q 4. If i select the Q 4 i should get Q 3 ,if i select Q 3 i should get Q 2,if i select Q 1 i should get Q 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please anyone can help me out from this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance,&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 10:49:41 GMT</pubDate>
    <dc:creator>sridhar423</dc:creator>
    <dc:date>2015-02-16T10:49:41Z</dc:date>
    <item>
      <title>How can we get a previous field values from a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811530#M286467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table name Quarter with field values&amp;nbsp; Q 1, Q 2, Q 3, Q 4. If i select the Q 4 i should get Q 3 ,if i select Q 3 i should get Q 2,if i select Q 1 i should get Q 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please anyone can help me out from this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance,&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 10:49:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811530#M286467</guid>
      <dc:creator>sridhar423</dc:creator>
      <dc:date>2015-02-16T10:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can we get a previous field values from a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811531#M286468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use Above/Below function to achieve what you are trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 10:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811531#M286468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-16T10:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can we get a previous field values from a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811532#M286469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 11:11:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811532#M286469</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-16T11:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can we get a previous field values from a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811533#M286470</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 usually add a month sequence field to deal with the same problem with months. A QuarterSequence would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Month(Date) / 3) As Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Year(Date) * 4) + Ceil(Month(Date) / 3) As QuarterSequence,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select a Quarter, then Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;QuarterSequence) - 1 will reference the previous quarter. You could use this in a set expression like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;QuarterSequence = {"$(=Max(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;QuarterSequence&lt;/SPAN&gt;) - 1)"}&amp;gt;} ....)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to do this in a table/chart with Quarter as a dimension, then Above() or Above(Total ) would be a better option as the set expression will not work in this context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 11:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-get-a-previous-field-values-from-a-field/m-p/811533#M286470</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-02-16T11:13:12Z</dc:date>
    </item>
  </channel>
</rss>

