<?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 values as of time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855121#M70580</link>
    <description>&lt;P&gt;Would the accumulation option within the measure modifier be an option? Or using an accumulation technique?&lt;/P&gt;
&lt;P&gt;Essentially you are looking for count(distinct Value) grouped by Time. Time is the dimension, count distinct is the measure.&lt;/P&gt;
&lt;P&gt;The only difference is that you are trying to accumulate the distinct count over time. Is that correct?&lt;/P&gt;
&lt;P&gt;This link shows using the rangesum(above( technique as an alternative approach but I think it may still be a viable path if you wanted.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Visualizations/Table/table-example.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Visualizations/Table/table-example.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 13:15:41 GMT</pubDate>
    <dc:creator>CurtDaughtryBP</dc:creator>
    <dc:date>2021-11-03T13:15:41Z</dc:date>
    <item>
      <title>Distinct values as of time</title>
      <link>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855094#M70575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to create a graph showing the number of distinct values (y-axis) over time (x-axis) for a dataset.&lt;/P&gt;
&lt;P&gt;Say:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Time, Value&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1,A&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2,A&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3,B&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;4,C&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;5,A&lt;/STRONG&gt;&lt;BR /&gt;6,Q&lt;BR /&gt;etc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the graph shows the total number of distinct value as of that time. At time=1 it is "1" and at time=6 it is "4" in the above example.&amp;nbsp; After plenty of searches, I have concluded that this is only possible to do during the loading phase (in the script), and that no runtime script solution exists to this problem.&amp;nbsp; I'm I right, or wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 12:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855094#M70575</guid>
      <dc:creator>johanfo2</dc:creator>
      <dc:date>2021-11-03T12:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values as of time</title>
      <link>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855108#M70578</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May be try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;aggr(rangesum(&lt;/P&gt;
&lt;P&gt;above(&lt;/P&gt;
&lt;P&gt;sum(&lt;/P&gt;
&lt;P&gt;aggr(&lt;/P&gt;
&lt;P&gt;count(distinct "Value")&lt;/P&gt;
&lt;P&gt;,"Value")&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;,0,RowNo())),Time,(Numeric))&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 12:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855108#M70578</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2021-11-03T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Distinct values as of time</title>
      <link>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855121#M70580</link>
      <description>&lt;P&gt;Would the accumulation option within the measure modifier be an option? Or using an accumulation technique?&lt;/P&gt;
&lt;P&gt;Essentially you are looking for count(distinct Value) grouped by Time. Time is the dimension, count distinct is the measure.&lt;/P&gt;
&lt;P&gt;The only difference is that you are trying to accumulate the distinct count over time. Is that correct?&lt;/P&gt;
&lt;P&gt;This link shows using the rangesum(above( technique as an alternative approach but I think it may still be a viable path if you wanted.&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Recipe-for-a-Pareto-Analysis/ba-p/1468497&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Visualizations/Table/table-example.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Visualizations/Table/table-example.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Distinct-values-as-of-time/m-p/1855121#M70580</guid>
      <dc:creator>CurtDaughtryBP</dc:creator>
      <dc:date>2021-11-03T13:15:41Z</dc:date>
    </item>
  </channel>
</rss>

