<?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: Calculate Difference between Dates for KPI Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665978#M728265</link>
    <description>&lt;P&gt;Makes a lot of sense, thanks a lot!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 20:46:46 GMT</pubDate>
    <dc:creator>anelmorales</dc:creator>
    <dc:date>2020-01-15T20:46:46Z</dc:date>
    <item>
      <title>Calculate Difference between Dates for KPI Count</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665581#M728261</link>
      <description>&lt;P&gt;Hello all, currently I'm trying to do a Count of the number of Events which Start Date has been delayed.&lt;/P&gt;&lt;P&gt;I have two fields: &lt;STRONG&gt;Start Date&lt;/STRONG&gt; and &lt;STRONG&gt;Actual Start Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to built a KPI&amp;nbsp; like this : Count(If &lt;STRONG&gt;Start Date&lt;/STRONG&gt; - &lt;STRONG&gt;Actual Start Date&lt;/STRONG&gt; &amp;gt; 30, Event_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is not working, I need to count events that are 30 days later than the Start Date.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665581#M728261</guid>
      <dc:creator>anelmorales</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference between Dates for KPI Count</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665583#M728262</link>
      <description>&lt;P&gt;try&amp;nbsp; below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count( aggr(If&amp;nbsp;(&lt;/SPAN&gt;&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Actual Start Date&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt; 30, Event_ID),Event_ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count({&amp;lt;Event_ID={"=&lt;STRONG&gt;Start Date&lt;/STRONG&gt;&amp;nbsp;-&amp;nbsp;&lt;STRONG&gt;Actual Start Date&lt;/STRONG&gt;&amp;nbsp;&amp;gt; 30"}&amp;gt;}Event_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would suggest to use set analysis one if it's working as expected&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 21:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665583#M728262</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-14T21:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference between Dates for KPI Count</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665593#M728263</link>
      <description>&lt;P&gt;Hello Kush, thank you, this worked for me as I expected &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used both and they worked, I will use the one with the Set Analysis.&lt;/P&gt;&lt;P&gt;count({&amp;lt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;event_id&lt;/STRONG&gt;&lt;/FONT&gt;={&lt;FONT color="#339966"&gt;"=&lt;STRONG&gt;Actual_Start_Date&lt;/STRONG&gt; - &lt;STRONG&gt;Start_Date&lt;/STRONG&gt; &amp;gt; 30"&lt;/FONT&gt;}&amp;gt;}&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;event_id&lt;/STRONG&gt;&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;I have one doubt, in this Set Analysis when we have &lt;FONT color="#993366"&gt;&lt;STRONG&gt;event_id&lt;/STRONG&gt;&lt;/FONT&gt; =&amp;nbsp;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Actual_Start_Date&lt;/STRONG&gt;&lt;/FONT&gt; - &lt;FONT color="#993366"&gt;&lt;STRONG&gt;Start_Date&lt;/STRONG&gt;&lt;/FONT&gt; &amp;gt; 30&amp;nbsp;&lt;/P&gt;&lt;P&gt;To my understanding in this part of a set analysis we must input a value that should be true or false in order to return the Count(event_id). How does Qlik handles the result of the two dates difference? I hope this question makes sense.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 22:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665593#M728263</guid>
      <dc:creator>anelmorales</dc:creator>
      <dc:date>2020-01-14T22:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference between Dates for KPI Count</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665703#M728264</link>
      <description>&lt;P&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Actual_Start_Date&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993366"&gt;&lt;STRONG&gt;Start_Date&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt; 30&amp;nbsp; condition in set analysis works like a true or false only. For each eventid, it performs checks that where date difference is &amp;gt;30 and wherever the condition returns true aggregation functions counts the eventid. It is faster because instead of checking row by row condition, it applies the indexes wherever condition match and use that indexes to perform count&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 09:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665703#M728264</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-15T09:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Difference between Dates for KPI Count</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665978#M728265</link>
      <description>&lt;P&gt;Makes a lot of sense, thanks a lot!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 20:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Difference-between-Dates-for-KPI-Count/m-p/1665978#M728265</guid>
      <dc:creator>anelmorales</dc:creator>
      <dc:date>2020-01-15T20:46:46Z</dc:date>
    </item>
  </channel>
</rss>

