<?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 If condition in KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-condition-in-KPI/m-p/1687241#M52351</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to display the count of customer_id's wrt to Fyear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: If we have FY17/18 , FY18/19 &amp;amp; FY19/20 data set&lt;BR /&gt;Then, if current year selected FY19/20 = it should show data of FY19/20 + FY18/19 + FY17/18&lt;BR /&gt;if any previous year selected let say FY18/19 then it should show data only of FY18/19 &amp;amp; FY17/18&lt;BR /&gt;&amp;nbsp;ANDif year FY17/18 selected then it should show data only of FY17/18.&lt;/P&gt;&lt;P&gt;I tried to achieve this with below expression, but its not working. Whenever i select 2020, it shows data correctly for all years, but when i select previous year say 2019, it should show 2019 count only, but it returns count of all customer_id's. Its not evaluating the 2nd expression.&lt;/P&gt;&lt;P&gt;=if(&lt;BR /&gt;fYear=$(vMaxYear),&lt;BR /&gt;count({&amp;lt;fYear={"*"}&amp;gt;}distinct customer_id),&lt;BR /&gt;Count({&amp;lt;fYear={'$(vPrevYear)'}&amp;gt;}distinct customer_id))&lt;/P&gt;&lt;P&gt;Here, fyear is in 2019,2020 format. And in front end we have Financial Year selection as FY 18/19,FY 19/20..&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:53:53 GMT</pubDate>
    <dc:creator>sunainapawar</dc:creator>
    <dc:date>2024-11-16T18:53:53Z</dc:date>
    <item>
      <title>If condition in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-condition-in-KPI/m-p/1687241#M52351</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to display the count of customer_id's wrt to Fyear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: If we have FY17/18 , FY18/19 &amp;amp; FY19/20 data set&lt;BR /&gt;Then, if current year selected FY19/20 = it should show data of FY19/20 + FY18/19 + FY17/18&lt;BR /&gt;if any previous year selected let say FY18/19 then it should show data only of FY18/19 &amp;amp; FY17/18&lt;BR /&gt;&amp;nbsp;ANDif year FY17/18 selected then it should show data only of FY17/18.&lt;/P&gt;&lt;P&gt;I tried to achieve this with below expression, but its not working. Whenever i select 2020, it shows data correctly for all years, but when i select previous year say 2019, it should show 2019 count only, but it returns count of all customer_id's. Its not evaluating the 2nd expression.&lt;/P&gt;&lt;P&gt;=if(&lt;BR /&gt;fYear=$(vMaxYear),&lt;BR /&gt;count({&amp;lt;fYear={"*"}&amp;gt;}distinct customer_id),&lt;BR /&gt;Count({&amp;lt;fYear={'$(vPrevYear)'}&amp;gt;}distinct customer_id))&lt;/P&gt;&lt;P&gt;Here, fyear is in 2019,2020 format. And in front end we have Financial Year selection as FY 18/19,FY 19/20..&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-condition-in-KPI/m-p/1687241#M52351</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2024-11-16T18:53:53Z</dc:date>
    </item>
  </channel>
</rss>

