<?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: Add N/A condition to a calculated field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425276#M96084</link>
    <description>&lt;P&gt;Thank you for the quick solution, it&amp;nbsp;is much more practical to write this instead of if.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 12:21:38 GMT</pubDate>
    <dc:creator>Milaf</dc:creator>
    <dc:date>2024-02-29T12:21:38Z</dc:date>
    <item>
      <title>Add N/A condition to a calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425074#M96050</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am writing the following calculation to the KPI object and I multiplex this KPI object for each metric. When the user selects a team from the filter, the team's scores are displayed. Some metrics do not contain values for some teams and I want it to say 'N/A' for those KPIs.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;AVG({&amp;lt;IS_SCORE={'1'}, [MetricName]={'Truncate'}&amp;gt;}AGGR(SUM(SCORE),[Team],[MetricId]))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I add if at the beginning of the formula and write N/A at the end of the parentheses for the case of 0, but this time it returns 0.00%.&lt;/P&gt;
&lt;P&gt;What is the correct syntax?&lt;/P&gt;
&lt;P style="font-family: Inter, Arial, sans-serif;"&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425074#M96050</guid>
      <dc:creator>Milaf</dc:creator>
      <dc:date>2024-02-29T07:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add N/A condition to a calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425078#M96051</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The syntax looks of for me.&lt;/P&gt;
&lt;P&gt;Maybe you can try to use the &lt;STRONG&gt;Coalesce()&lt;/STRONG&gt; function.&lt;/P&gt;
&lt;P&gt;Maybe something like : Coalesce(Sum(Score),'N/A').&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Antoine&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425078#M96051</guid>
      <dc:creator>Antoine04</dc:creator>
      <dc:date>2024-02-29T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add N/A condition to a calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425276#M96084</link>
      <description>&lt;P&gt;Thank you for the quick solution, it&amp;nbsp;is much more practical to write this instead of if.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 12:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Add-N-A-condition-to-a-calculated-field/m-p/2425276#M96084</guid>
      <dc:creator>Milaf</dc:creator>
      <dc:date>2024-02-29T12:21:38Z</dc:date>
    </item>
  </channel>
</rss>

