<?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: Total distinct count for different date ranges in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Total-distinct-count-for-different-date-ranges/m-p/1931451#M76740</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the following expressions in the KPIs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;={&lt;/STRONG&gt;&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;"&amp;lt;=$(=Today())&amp;gt;=$(=Date(Today()-30))"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30,75%,60%);"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;={&lt;/STRONG&gt;&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;"&amp;lt;=$(=Date(Today()-31))&amp;gt;=$(=Date(Today()-60))"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30,75%,60%);"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;{"&amp;lt;=$(=Date(Today()-61))"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the outcome:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/d7e3f6bf-3f2d-4c92-bb1f-d1cfe937a4df.default.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see it counts only distinct values for the range that you have mentioned!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;&lt;I&gt;&lt;STRONG&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 07:02:25 GMT</pubDate>
    <dc:creator>Andrei_Cusnir</dc:creator>
    <dc:date>2022-05-17T07:02:25Z</dc:date>
    <item>
      <title>Total distinct count for different date ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Total-distinct-count-for-different-date-ranges/m-p/1931438#M76739</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;
&lt;P&gt;Hope every one is doing good.&lt;/P&gt;
&lt;P&gt;i am having 2 years of data in table and need to create the 3 KPI's which are belongs to different&amp;nbsp; date ranges&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. i want get total distinct count&amp;nbsp; from 0 to 30 days in KPI&lt;/P&gt;
&lt;P&gt;2. want to total distinct count from 31 to 60 days&lt;/P&gt;
&lt;P&gt;want to get the count for &amp;gt;60 days&amp;nbsp; in 3 kpis.&lt;/P&gt;
&lt;P&gt;Can you please help me on priority.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 06:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-distinct-count-for-different-date-ranges/m-p/1931438#M76739</guid>
      <dc:creator>vschowdary</dc:creator>
      <dc:date>2022-05-17T06:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Total distinct count for different date ranges</title>
      <link>https://community.qlik.com/t5/App-Development/Total-distinct-count-for-different-date-ranges/m-p/1931451#M76740</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the following expressions in the KPIs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color:hsl(210, 75%, 60%);"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;={&lt;/STRONG&gt;&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;"&amp;lt;=$(=Today())&amp;gt;=$(=Date(Today()-30))"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30,75%,60%);"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;={&lt;/STRONG&gt;&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;"&amp;lt;=$(=Date(Today()-31))&amp;gt;=$(=Date(Today()-60))"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color:hsl(210,75%,60%);"&gt;&lt;STRONG&gt;DISTINCT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30,75%,60%);"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color:hsl(120, 75%, 60%);"&gt;&lt;STRONG&gt;{"&amp;lt;=$(=Date(Today()-61))"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;}&amp;gt;}&lt;/STRONG&gt;&lt;SPAN style="color:hsl(30, 75%, 60%);"&gt;&lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the outcome:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/d7e3f6bf-3f2d-4c92-bb1f-d1cfe937a4df.default.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see it counts only distinct values for the range that you have mentioned!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:hsl(0, 0%, 60%);"&gt;&lt;I&gt;&lt;STRONG&gt;I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members.&amp;nbsp;&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 07:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Total-distinct-count-for-different-date-ranges/m-p/1931451#M76740</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2022-05-17T07:02:25Z</dc:date>
    </item>
  </channel>
</rss>

