<?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: Distinct count in Dashboards &amp; Analytics Discussions</title>
    <link>https://community.incorta.com/t5/dashboards-analytics-discussions/distinct-count/m-p/5747#M685</link>
    <description>&lt;P&gt;Is your data at the grain of invoice number?&amp;nbsp; &amp;nbsp;If so, then you can use:&lt;/P&gt;&lt;P&gt;sum(case(inv_amt &amp;lt;&amp;gt; 0, 1, 0 ) )&lt;/P&gt;&lt;P&gt;If it's not ( e.g. your reporting is at the invoice line level ) then you want something like:&lt;/P&gt;&lt;P&gt;sum(case(inv_amt &amp;lt;&amp;gt; 0, 1, 0 ), groupby(inv_number) )&lt;/P&gt;&lt;P&gt;If you are doing a KPI insight then just distinct(inv_no)&amp;nbsp; and then filter out amounts = 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH - if it doesn't get you there you can reply w/ more detailed info about your use case and we'll get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 14:07:01 GMT</pubDate>
    <dc:creator>RADSr</dc:creator>
    <dc:date>2024-05-15T14:07:01Z</dc:date>
    <item>
      <title>Distinct count</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/distinct-count/m-p/5746#M684</link>
      <description>&lt;P&gt;can someone advise me a formulae for below case, i want to count the&amp;nbsp; no.of invoices with invoice amount &amp;lt;&amp;gt;0&lt;/P&gt;&lt;P&gt;case(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Invoice Amount &amp;gt;&amp;nbsp;0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Invoice Number),&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;'0'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 11:06:07 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/distinct-count/m-p/5746#M684</guid>
      <dc:creator>MT10</dc:creator>
      <dc:date>2024-05-15T11:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct count</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/distinct-count/m-p/5747#M685</link>
      <description>&lt;P&gt;Is your data at the grain of invoice number?&amp;nbsp; &amp;nbsp;If so, then you can use:&lt;/P&gt;&lt;P&gt;sum(case(inv_amt &amp;lt;&amp;gt; 0, 1, 0 ) )&lt;/P&gt;&lt;P&gt;If it's not ( e.g. your reporting is at the invoice line level ) then you want something like:&lt;/P&gt;&lt;P&gt;sum(case(inv_amt &amp;lt;&amp;gt; 0, 1, 0 ), groupby(inv_number) )&lt;/P&gt;&lt;P&gt;If you are doing a KPI insight then just distinct(inv_no)&amp;nbsp; and then filter out amounts = 0&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH - if it doesn't get you there you can reply w/ more detailed info about your use case and we'll get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 14:07:01 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/distinct-count/m-p/5747#M685</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2024-05-15T14:07:01Z</dc:date>
    </item>
  </channel>
</rss>

