<?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: Compare previous year data in KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1833785#M68837</link>
    <description>&lt;P&gt;Hi, maybe adding a condition to check if the firts year has been selected, something like:&lt;/P&gt;&lt;P&gt;If(max(fiscal_year)=min({1} fiscal_year), 'text note to display', [YourCurrentExpression])&lt;/P&gt;</description>
    <pubDate>Sat, 04 Sep 2021 08:15:06 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-09-04T08:15:06Z</dc:date>
    <item>
      <title>Compare previous year data in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1833332#M68793</link>
      <description>&lt;P&gt;I am working to create a KPI that compares the previous years results to the current selected year.&amp;nbsp; The user will be able to pick a fiscal year from a filter pane and see the results. However I am having trouble when the first available year is picked (ex 2005) does not have a previous year to compare it to (no data for 2004) .&amp;nbsp;Can the KPI display a text note when a previous year comparison is not available?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current expression&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;fiscal_year={$(=max(fiscal_year))}&amp;gt;} Tons) - Sum({$&amp;lt;fiscal_year={$(=max(fiscal_year)-1)}&amp;gt;} Tons)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 17:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1833332#M68793</guid>
      <dc:creator>Darren1</dc:creator>
      <dc:date>2021-09-02T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare previous year data in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1833785#M68837</link>
      <description>&lt;P&gt;Hi, maybe adding a condition to check if the firts year has been selected, something like:&lt;/P&gt;&lt;P&gt;If(max(fiscal_year)=min({1} fiscal_year), 'text note to display', [YourCurrentExpression])&lt;/P&gt;</description>
      <pubDate>Sat, 04 Sep 2021 08:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1833785#M68837</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-09-04T08:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compare previous year data in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1834427#M68889</link>
      <description>&lt;P&gt;Thank you for your response. Your expression help did the trick!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 16:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Compare-previous-year-data-in-KPI/m-p/1834427#M68889</guid>
      <dc:creator>Darren1</dc:creator>
      <dc:date>2021-09-07T16:44:37Z</dc:date>
    </item>
  </channel>
</rss>

