<?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: Applying a date in KPI calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178664#M382354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating 2 variables for the dates (Respond and Arrival) and linking both to a master calendar might also work. These 2 variables can be used with set analysis in your expressions to get the desired results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 06:12:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-06T06:12:54Z</dc:date>
    <item>
      <title>Applying a date in KPI calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178659#M382349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario where there are two Dates. One is responded date and the Other Arrival date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arrival Date could be today but the responded dates could be Today and Yesterday.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Arrival Date = 06-07-2016 12:05:00 AM &lt;/P&gt;&lt;P&gt;Responded Date = &lt;SPAN style="font-size: 13.3333px;"&gt;05-07-2016 11:55:00 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Arrival Date = 06-07-2016 12:55:00 AM &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Responded Date = &lt;SPAN style="font-size: 13.3333px;"&gt;06-07-2016 12:15:00 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In both the above scenarios I have one Arrival Date, i.e 06-07-2016.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;However, I have only Responded Date filter selection for the user to avoid confusion. But I want the KPI to be calculated using the value of the Responded date selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If user selects 05-07-2016 as the responded date then my KPI(TOC) should use&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count({&amp;lt;Arrival Date = 05-07-2016&amp;gt;}Measure).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Please find the attached Document for more details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Shyam.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 00:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178659#M382349</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-07-06T00:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a date in KPI calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178660#M382350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using Triggers in the document and it seems something is working.&lt;/P&gt;&lt;P&gt;However, I am wondering if there are any unknown flaws in this approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before this fix:&lt;/P&gt;&lt;P&gt;When I select 28-06-2016 in Responded Date the value TOC = 26.48&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;With the fix,(Using triggers):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When I select 28-06-2016 in Responded Date the Arrived Date gets selected and the value TOC = 25.80&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached fixed application and suggest.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 02:21:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178660#M382350</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-07-06T02:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a date in KPI calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178661#M382351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue with my fix in my earlier application.&lt;/P&gt;&lt;P&gt;When I make a selection on other filters like RT_PK_ID i am losing the filter on Arrived Date.&lt;/P&gt;&lt;P&gt;I have applied a trigger on Actual Date Field (Responded Date) OnChange to clear the Arrived Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there is no additional filter to select back the Arrived Date, now I am stuck with my approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any better ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if any of my posts does not make any sense &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 03:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178661#M382351</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-07-06T03:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a date in KPI calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178662#M382352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that alternative states is your choice. Using alt. states you can have several filters for one field and apply filters via set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 04:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178662#M382352</guid>
      <dc:creator>maksim_senin</dc:creator>
      <dc:date>2016-07-06T04:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a date in KPI calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178663#M382353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I need alternate States.&lt;/P&gt;&lt;P&gt;What all I want is to apply the Respond Date field selection value to the Arrived Date in calculation.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Sum({&amp;lt;DIMDATE_ARRIVEDESTINATION.ArriveDestination_Date="$(vResponseDate)"},Actual_Date&amp;gt;}MeasureField)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Where &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; font-size: 13.3333px;"&gt;vResponseDate = =Responded_Date&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But I do not get correct results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 04:26:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178663#M382353</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2016-07-06T04:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Applying a date in KPI calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178664#M382354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating 2 variables for the dates (Respond and Arrival) and linking both to a master calendar might also work. These 2 variables can be used with set analysis in your expressions to get the desired results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 06:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-a-date-in-KPI-calculation/m-p/1178664#M382354</guid>
      <dc:creator />
      <dc:date>2016-07-06T06:12:54Z</dc:date>
    </item>
  </channel>
</rss>

