<?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: Using set analysis to get a value of previous period in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2139373#M92604</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/td-p/2138757" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/td-p/2138757&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 12:49:29 GMT</pubDate>
    <dc:creator>whiteymcaces</dc:creator>
    <dc:date>2023-11-20T12:49:29Z</dc:date>
    <item>
      <title>Using set analysis to get a value of previous period</title>
      <link>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122475#M91373</link>
      <description>&lt;DIV dir="auto"&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;I have a dataset with the fields:&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;Account-id, account_score, year-quarter, YearQuarterKey&amp;nbsp;(which is a running sequencial number for every year-quarter combination).&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;I want to use set analysis in a table presentation on my app, and to add the field previous-quarter-score&amp;nbsp; to the table, according the field YearQuarterKey&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;I tried:&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;
&lt;DIV dir="auto"&gt;=max( {&amp;lt; YearQuarterKey = {"$(=(YearQuarterKey-1))"} &amp;gt;} account_score)&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;It did not work&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir="auto"&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122475#M91373</guid>
      <dc:creator>a2ztests</dc:creator>
      <dc:date>2023-09-26T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to get a value of previous period</title>
      <link>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122506#M91376</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/245179"&gt;@a2ztests&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Maybe this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=sum( {&amp;lt; YearQuarterKey = {"$(=Max(YearQuarterKey)-1)"} &amp;gt;} account_score)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope it can helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 13:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122506#M91376</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2023-09-26T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to get a value of previous period</title>
      <link>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122790#M91392</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;I want to show for every row! in the table the previous score so i think comparing it to&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$(=Max(YearQuarterKey)-1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Will not do what i want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Any other thoughts?&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 06:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122790#M91392</guid>
      <dc:creator>a2ztests</dc:creator>
      <dc:date>2023-09-27T06:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to get a value of previous period</title>
      <link>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122856#M91396</link>
      <description>&lt;P&gt;You can try using Above( Sum(&lt;SPAN&gt;account_score) )&amp;nbsp; if your table is sorted by&amp;nbsp;YearQuarterKey&amp;nbsp;field.&lt;BR /&gt;That expression give you the&amp;nbsp;Sum(account_score) of the previous table row.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 08:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2122856#M91396</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2023-09-27T08:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using set analysis to get a value of previous period</title>
      <link>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2139373#M92604</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/td-p/2138757" target="_blank"&gt;https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/td-p/2138757&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 12:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-set-analysis-to-get-a-value-of-previous-period/m-p/2139373#M92604</guid>
      <dc:creator>whiteymcaces</dc:creator>
      <dc:date>2023-11-20T12:49:29Z</dc:date>
    </item>
  </channel>
</rss>

