<?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: The Before function and Sort Groups in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/The-Before-function-and-Sort-Groups/m-p/1049572#M925553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Year in a horizontal dimension (i.e. pivoted to the top)? If not, you need to use Above() instead of Before().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how many dimensions are you using? Could you upload a small sample QVW or at least a screenshot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 17:25:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-04T17:25:30Z</dc:date>
    <item>
      <title>The Before function and Sort Groups</title>
      <link>https://community.qlik.com/t5/QlikView/The-Before-function-and-Sort-Groups/m-p/1049570#M925551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi every one, I am currently having an issue with the Before function, when I use the function I am not getting the previous data that I expect to receive back, ex: &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Before&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;Spend&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 1), actually I am receiving Null values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a little research and found that this function seems&amp;nbsp; only to work&amp;nbsp; with in each sort group and will not see values outside of the group.&amp;nbsp; Currently my data is grouped by a year range, so my questions is if I cannot use the before function to get the data from a different sort group for a specific value how can this be done in Qlikview,??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of the expression I am looking to create: &lt;/P&gt;&lt;P&gt;if((Spend &amp;lt;&amp;gt; 0 OR Spend &amp;lt;&amp;gt; NULL()) OR (Before(Spend, 1) &amp;lt;&amp;gt; 0 OR Before(Spend, 1) &amp;lt;&amp;gt; NULL()),Spend/Before(Spend, 1)-1) &lt;/P&gt;&lt;P&gt;The before spend is located in a different group from where&amp;nbsp; I am running the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&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/The-Before-function-and-Sort-Groups/m-p/1049570#M925551</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: The Before function and Sort Groups</title>
      <link>https://community.qlik.com/t5/QlikView/The-Before-function-and-Sort-Groups/m-p/1049571#M925552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Before&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(TOTAL &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;Spend&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;, 1) &lt;/SPAN&gt;to cross the dimension borders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 17:17:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Before-function-and-Sort-Groups/m-p/1049571#M925552</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-04T17:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: The Before function and Sort Groups</title>
      <link>https://community.qlik.com/t5/QlikView/The-Before-function-and-Sort-Groups/m-p/1049572#M925553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using Year in a horizontal dimension (i.e. pivoted to the top)? If not, you need to use Above() instead of Before().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And how many dimensions are you using? Could you upload a small sample QVW or at least a screenshot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 17:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/The-Before-function-and-Sort-Groups/m-p/1049572#M925553</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-04T17:25:30Z</dc:date>
    </item>
  </channel>
</rss>

