<?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 Counting events on a growing population - help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443227#M819310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikcommunity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am requesting your help for a problem I can' t solve myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 sets of data&lt;/P&gt;&lt;P&gt;One containing vehicle information, dimensions are : vehicle_id assembly_date country (+ other descriptive variables)&lt;/P&gt;&lt;P&gt;One containing events information, dimensions are : vehicle_id event_date (+ other descriptive variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to calculate per month the ratio : [number of events during the month] / [cumulative population so far]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem displaying these 2 calculations separately but when I try to create the ratio, I am facing 2 problems :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How to deal with the dimension, how to create a dimension showing months from first assembly date to today ?&lt;/P&gt;&lt;P&gt;- How to simulate the cumulative population in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to transform our data (see file enclosed) into something like this and display ratio per month &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174186" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174186_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Would you have suggestions to achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enclosed a data sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Hakim-A</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Counting events on a growing population - help</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443227#M819310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikcommunity,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am requesting your help for a problem I can' t solve myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 sets of data&lt;/P&gt;&lt;P&gt;One containing vehicle information, dimensions are : vehicle_id assembly_date country (+ other descriptive variables)&lt;/P&gt;&lt;P&gt;One containing events information, dimensions are : vehicle_id event_date (+ other descriptive variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to calculate per month the ratio : [number of events during the month] / [cumulative population so far]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no problem displaying these 2 calculations separately but when I try to create the ratio, I am facing 2 problems :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How to deal with the dimension, how to create a dimension showing months from first assembly date to today ?&lt;/P&gt;&lt;P&gt;- How to simulate the cumulative population in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to transform our data (see file enclosed) into something like this and display ratio per month &lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="174186" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174186_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Would you have suggestions to achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've enclosed a data sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443227#M819310</guid>
      <dc:creator>Hakim-A</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Counting events on a growing population - help</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443228#M819311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD vehicle_id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assembly_date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; country,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(assembly_date, IterNo() - 1), 'YYYY-M') as Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is population)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While MonthStart(assembly_date, IterNo() - 1) &amp;lt;= MonthStart(Today());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Events:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD vehicle_id, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; event_date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(event_date), 'YYYY-M') as Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;C&gt;&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is events);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT vehicle_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT event_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(DISTINCT event_date)/Count(DISTINCT vehicle_id)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174204_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 11:29:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443228#M819311</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-22T11:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Counting events on a growing population - help</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443229#M819312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thank you, the solution seems to work perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i understood you have duplicated the vehicle_id and store them in YYYY-M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a risk doing that with huge population (&amp;gt; 1 million) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:43:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443229#M819312</guid>
      <dc:creator>Hakim-A</dc:creator>
      <dc:date>2017-08-22T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting events on a growing population - help</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443230#M819313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView stores each distinct value once, so storing the same value once per month shouldn't significantly impact performance compared to storing it once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 13:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443230#M819313</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-08-22T13:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting events on a growing population - help</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443231#M819314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huge application size and it might take extra time to reload... but can't think of other better ways to do this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-events-on-a-growing-population-help/m-p/1443231#M819314</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-22T14:01:31Z</dc:date>
    </item>
  </channel>
</rss>

