<?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: How to Avoid Counting Nulls in a DISTINCT Expression in Administrative Discussions</title>
    <link>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/4681#M189</link>
    <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/15"&gt;@amit_kothari&lt;/a&gt;&amp;nbsp;- Can you please let me know how to handle it if we are doing a distinct of a string value. We have datatype mismatch issue.&lt;/P&gt;&lt;P&gt;Eg-&amp;nbsp;&lt;SPAN&gt;Table1.Order_number is a string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DISTINCT(IF(Test.Table1.OrderStatus='Open',Table1.Order_number,null(0.0) ))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 14:38:33 GMT</pubDate>
    <dc:creator>natarajasokan</dc:creator>
    <dc:date>2023-07-13T14:38:33Z</dc:date>
    <item>
      <title>How to Avoid Counting Nulls in a DISTINCT Expression</title>
      <link>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/951#M17</link>
      <description>&lt;DIV class="cfa topic__text formatted"&gt;
&lt;P&gt;Using DISTINCT() with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;an IF() in a formula expression leads&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to incorrect computation as nulls are not handled by default for an on-premise Incorta environment.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Apr 2022 15:57:23 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/951#M17</guid>
      <dc:creator>amit_kothari</dc:creator>
      <dc:date>2022-04-08T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid Counting Nulls in a DISTINCT Expression</title>
      <link>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/952#M18</link>
      <description>&lt;P&gt;To avoid counting nulls in a &amp;nbsp;formula using an IF expression returning numbers &amp;nbsp;add a default of null(0.0) , for eg -DISTINCT(IF(Test.Table1.OrderStatus='Open',1,null(0.0) ))&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps for Incorta Cloud cluster from 2022.12.0 onwards&lt;/STRONG&gt; :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Set this null handling option in cmc and restart the services&amp;nbsp; - &lt;A href="https://docs.incorta.com/cloud/whats-new-2022-12-0#handling-null-values" target="_blank" rel="noopener"&gt;https://docs.incorta.com/cloud/whats-new-2022-12-0#handling-null-values&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Steps for On premise install of Incorta&lt;/STRONG&gt; :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Navigate to &amp;lt;incorta home&amp;gt;/IncortaNode/services folder.&lt;/LI&gt;
&lt;LI&gt;Run the command in linux : cat services.index&lt;/LI&gt;
&lt;LI&gt;See which is the folder for Analytic services&lt;/LI&gt;
&lt;LI&gt;Navigate to &amp;lt;Analytic services&amp;gt;/incorta folder&lt;/LI&gt;
&lt;LI&gt;Edit&amp;nbsp;the engine.properties file to add the line:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;engine.disable_null_handling=false&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Save the file and navigate to the CMC&amp;nbsp; url and restart the Analytic service.&lt;/LI&gt;
&lt;LI&gt;Verify the dashboard.&lt;BR /&gt;---&lt;BR /&gt;Or to do it via the analyzer, follow this video tutorial:&amp;nbsp;&lt;A href="https://youtu.be/QG-AJJh0OHM" target="_blank" rel="nofollow noopener noreferrer"&gt;https://youtu.be/QG-AJJh0OHM&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 07 Mar 2023 18:59:00 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/952#M18</guid>
      <dc:creator>amit_kothari</dc:creator>
      <dc:date>2023-03-07T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Avoid Counting Nulls in a DISTINCT Expression</title>
      <link>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/4681#M189</link>
      <description>&lt;P&gt;&lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/15"&gt;@amit_kothari&lt;/a&gt;&amp;nbsp;- Can you please let me know how to handle it if we are doing a distinct of a string value. We have datatype mismatch issue.&lt;/P&gt;&lt;P&gt;Eg-&amp;nbsp;&lt;SPAN&gt;Table1.Order_number is a string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DISTINCT(IF(Test.Table1.OrderStatus='Open',Table1.Order_number,null(0.0) ))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:38:33 GMT</pubDate>
      <guid>https://community.incorta.com/t5/administrative-discussions/how-to-avoid-counting-nulls-in-a-distinct-expression/m-p/4681#M189</guid>
      <dc:creator>natarajasokan</dc:creator>
      <dc:date>2023-07-13T14:38:33Z</dc:date>
    </item>
  </channel>
</rss>

