<?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 Calendar: Days Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-Days-Calculation/m-p/1302023#M405708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;i have loaded my budget as concatenation of my sales table.&lt;/P&gt;&lt;P&gt;The budget for every month is loaded with the last day of the month&lt;/P&gt;&lt;P&gt;e.g. Budget of may 2017 is 31/05/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;On my dashboard i have to compare the sales with the budget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine that i select as day of analysis the 10th of May2017 - i don't want to have comparison between the MTD Actual vs TOTAL BUDGET OF THE MONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recalculate the budget as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUDGET OF MAY (Sum({&amp;lt;Quarter=, Day=,Invoice_Date=&amp;gt;} BudgetUSD)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;divided by total number of working day for May2017&amp;nbsp; and multiplied by the number of working days till the day selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this i created on the master calendar a field WorkingDay that basically it's a flag that tells me if the day is working or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me on this? I guess i should use the COUNT function?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 15:13:49 GMT</pubDate>
    <dc:creator>qlikviewaf</dc:creator>
    <dc:date>2017-06-29T15:13:49Z</dc:date>
    <item>
      <title>Calendar: Days Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Days-Calculation/m-p/1302023#M405708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;i have loaded my budget as concatenation of my sales table.&lt;/P&gt;&lt;P&gt;The budget for every month is loaded with the last day of the month&lt;/P&gt;&lt;P&gt;e.g. Budget of may 2017 is 31/05/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;On my dashboard i have to compare the sales with the budget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Imagine that i select as day of analysis the 10th of May2017 - i don't want to have comparison between the MTD Actual vs TOTAL BUDGET OF THE MONTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to recalculate the budget as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUDGET OF MAY (Sum({&amp;lt;Quarter=, Day=,Invoice_Date=&amp;gt;} BudgetUSD)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;divided by total number of working day for May2017&amp;nbsp; and multiplied by the number of working days till the day selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this i created on the master calendar a field WorkingDay that basically it's a flag that tells me if the day is working or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me on this? I guess i should use the COUNT function?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 15:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Days-Calculation/m-p/1302023#M405708</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2017-06-29T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar: Days Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-Days-Calculation/m-p/1302024#M405709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;(Sum({&amp;lt;Quarter=, Day=,Invoice_Date=, Month = {'$(=Max(Month))'}&amp;gt;} BudgetUSD)/1000) / (Count({&amp;lt;Month = {'$(=Max(Month))'}&amp;gt;}&amp;nbsp; TOTAL Day) * Count({&amp;lt;Day = {"&amp;gt;=$(=Min(Day)) &amp;lt;=$(=Max(Day))"}&amp;gt;}Day))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Sum({&amp;lt;Quarter=, Day=,Invoice_Date=, Month = {'$(=Max(Month))'}&amp;gt;} BudgetUSD)/1000) / (Count({&amp;lt;Month = {'$(=Max(Month))'}&amp;gt;}&amp;nbsp; TOTAL Day) * Count({&amp;lt;DateField = {"&amp;gt;=$(=Min(DateField)) &amp;lt;=$(=Max(DateField))"}&amp;gt;}Day))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:17:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-Days-Calculation/m-p/1302024#M405709</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-29T17:17:51Z</dc:date>
    </item>
  </channel>
</rss>

