<?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 Calculating a year previous using set analysis and alternate states in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-a-year-previous-using-set-analysis-and-alternate/m-p/1890896#M1217281</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm hoping that someone might be able to help me. I'm trying to build an expression to calculate an aggregation based on a year previous. So far I've got this but it doesn't work. The alternate states part is included due to another object we're planning (however it may be dropped!).&lt;/P&gt;
&lt;P&gt;=NUM(sum({$&amp;lt;[ReportDate]= [State 1]::[ReportDate]-365,[Fees]={'EU','Home','RUK (Nursing)'},[Level]={'UG','PG Taught'},[SFC Funded]={'Yes'}&amp;gt;}FTE),'0.0')&lt;/P&gt;
&lt;P&gt;ReportDate is our date field. In a text box I trialled the following code which worked:&lt;/P&gt;
&lt;P&gt;=date(ReportDate-365)&lt;/P&gt;
&lt;P&gt;I can't think of a way of adding this to the above set analysis in a was that will work. Does anyone have any ideas?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 10:46:49 GMT</pubDate>
    <dc:creator>mattphillip</dc:creator>
    <dc:date>2022-02-09T10:46:49Z</dc:date>
    <item>
      <title>Calculating a year previous using set analysis and alternate states</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-year-previous-using-set-analysis-and-alternate/m-p/1890896#M1217281</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm hoping that someone might be able to help me. I'm trying to build an expression to calculate an aggregation based on a year previous. So far I've got this but it doesn't work. The alternate states part is included due to another object we're planning (however it may be dropped!).&lt;/P&gt;
&lt;P&gt;=NUM(sum({$&amp;lt;[ReportDate]= [State 1]::[ReportDate]-365,[Fees]={'EU','Home','RUK (Nursing)'},[Level]={'UG','PG Taught'},[SFC Funded]={'Yes'}&amp;gt;}FTE),'0.0')&lt;/P&gt;
&lt;P&gt;ReportDate is our date field. In a text box I trialled the following code which worked:&lt;/P&gt;
&lt;P&gt;=date(ReportDate-365)&lt;/P&gt;
&lt;P&gt;I can't think of a way of adding this to the above set analysis in a was that will work. Does anyone have any ideas?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;/P&gt;
&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 10:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-year-previous-using-set-analysis-and-alternate/m-p/1890896#M1217281</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2022-02-09T10:46:49Z</dc:date>
    </item>
  </channel>
</rss>

