<?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: Date calc issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422802#M486350</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you please attache the sample QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Apr 2013 06:19:16 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2013-04-05T06:19:16Z</dc:date>
    <item>
      <title>Date calc issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422800#M486348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: tahoma; font-size: 10pt;"&gt;The client wants to calculate something called Days in the Field.&amp;nbsp; Attached is the example of what they want to see - &lt;BR /&gt;which doesn't seem too complicated but in each formula attempt I keep getting null or 0 as a result.&amp;nbsp; Here's the formula I've been working on to display in both a straight table and a bar chart, possibly a combo chart as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;[Activity Working Days]&lt;/SPAN&gt;)),&lt;SPAN style="color: #800000;"&gt;[RSS Start Date]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[RSS Name]&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: tahoma; font-size: 10pt;"&gt;First, I was given a list of days off and embedded that into the calendar that gave us a set of Working Days Available.&amp;nbsp; Then &lt;/SPAN&gt;&lt;SPAN style="font-family: tahoma; font-size: 10pt;"&gt;I added the Start Date in the script based on their Create Date adding 90 days, so this needs to be included in the formula - in a context per say.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: tahoma; font-size: 10pt;"&gt;But, when I have tried setting up an AGGR function surrounding the working days to get the number of available Working Days before multiplying by .4795 - the clients' set ratio to be in the field.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: tahoma; font-size: 10pt;"&gt;Attached is an Excel sample of what I'm trying to accomplish. &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-family: tahoma; font-size: 10pt;"&gt;thanks in advance. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 13:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422800#M486348</guid>
      <dc:creator />
      <dc:date>2013-04-04T13:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date calc issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422801#M486349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further information.&amp;nbsp; I added a Year to the Start Date in the Script and now see numbers.&amp;nbsp; However, I'm trying to isolate the days based on the Start Date, which when I select Year in the sheet - that's not working yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;sum&lt;/SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;((&lt;SPAN style="color: #800000;"&gt;[Activity Working Days]&lt;/SPAN&gt;)),&lt;SPAN style="color: #800000;"&gt;[Employee Start Date]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Rep],[Employee Year]&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 15:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422801#M486349</guid>
      <dc:creator />
      <dc:date>2013-04-04T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date calc issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422802#M486350</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you please attache the sample QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 06:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-calc-issue/m-p/422802#M486350</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-05T06:19:16Z</dc:date>
    </item>
  </channel>
</rss>

