<?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: If with count in KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687317#M52365</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have got the solution. I just used the below expression and it worked.&lt;/P&gt;&lt;P&gt;Count({&amp;lt;fYear={"&amp;lt;=$(vMaxYear)"},FYear&amp;gt;}distinct customer_id)&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2020 13:49:46 GMT</pubDate>
    <dc:creator>sunainapawar</dc:creator>
    <dc:date>2020-03-24T13:49:46Z</dc:date>
    <item>
      <title>If with count in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687215#M52349</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to display the count of customer id's w.r.t Fyear in KPI. If current Financial Year is selected , then&amp;nbsp; count of customer_id's should be count of all Financial Year, if previous year is selected then it should show count of customer_id's for that particluar year.&lt;/P&gt;&lt;P&gt;I tried to use if expression, but its not working. Please find the expression i used below,&lt;/P&gt;&lt;P&gt;=if(&lt;BR /&gt;fYear=$(vMaxYear),&lt;BR /&gt;(count({&amp;lt;fYear={"*"}&amp;gt;}distinct customer_id)),(Count(distinct customer_id))).&lt;/P&gt;&lt;P&gt;Our Fyear is considered from Apr till Mar.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to check.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 08:58:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687215#M52349</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-24T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: If with count in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687274#M52355</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(&lt;/SPAN&gt;&lt;SPAN&gt;fYear=$(=vMaxYear),&lt;/SPAN&gt;&lt;SPAN&gt;(count({&amp;lt;fYear=&amp;gt;}distinct customer_id)),(Count(distinct customer_id)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687274#M52355</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-03-24T11:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: If with count in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687278#M52356</link>
      <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;Thanks for the reply. This is working upon selection of fyear 2019. It is showing count of customer_id for 2019. But when i select 2020 it is showing only for fyear 2020, but rather it should show count of customer id's for both 2019 and 2020.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687278#M52356</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-24T11:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: If with count in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687285#M52357</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if($(=max(&lt;/SPAN&gt;&lt;SPAN&gt;fYear))=$(=max({&amp;lt;fyear=&amp;gt;}fyear)),&lt;/SPAN&gt;&lt;SPAN&gt;(count({&amp;lt;fYear=&amp;gt;}distinct customer_id)),(Count(distinct customer_id)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687285#M52357</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-03-24T12:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: If with count in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687289#M52358</link>
      <description>&lt;P&gt;Hi Kashyap,&lt;/P&gt;&lt;P&gt;It is same as previous result.&lt;/P&gt;&lt;P&gt;For current year selection, its not summing up the count of 2019,2020. Its only showing for 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 12:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687289#M52358</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-24T12:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: If with count in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687317#M52365</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have got the solution. I just used the below expression and it worked.&lt;/P&gt;&lt;P&gt;Count({&amp;lt;fYear={"&amp;lt;=$(vMaxYear)"},FYear&amp;gt;}distinct customer_id)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 13:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-with-count-in-KPI/m-p/1687317#M52365</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-03-24T13:49:46Z</dc:date>
    </item>
  </channel>
</rss>

