<?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 Prognosis calculation in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271054#M26124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a budget table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BudgetDate&lt;/P&gt;&lt;P&gt;Actual&lt;/P&gt;&lt;P&gt;Budget&lt;/P&gt;&lt;P&gt;DayThisWeek&lt;/P&gt;&lt;P&gt;WeekDay&lt;/P&gt;&lt;P&gt;DayThisMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a different table I have "PaidOutAmount"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate a prognosis based on dividing Sum of PaidOutAmount by the # of day this month and then multiply by the Max Amount of Days This Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a picture of the Budget Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="budg.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145510_budg.JPG" style="height: 94px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for today (02.2012.2016) it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum(PaidOutAmonut) / (Value which is on that row from "DagDenneMåneden"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Max(DagDenneMåneden) - &lt;SPAN style="font-size: 13.3333px;"&gt;(Value which is the highest this month from "DagDenneMåneden) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now what I am trying to understand is how can I get the value which is on the row in "DagDenneMåneden" from Todays date so that the prognosis grows as this increases? Monday the value would 3 instead of 2 and prognosis would be adjusted accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Suggestions?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 13:46:57 GMT</pubDate>
    <dc:creator>bwisealiahmad</dc:creator>
    <dc:date>2016-12-02T13:46:57Z</dc:date>
    <item>
      <title>Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271054#M26124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a budget table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BudgetDate&lt;/P&gt;&lt;P&gt;Actual&lt;/P&gt;&lt;P&gt;Budget&lt;/P&gt;&lt;P&gt;DayThisWeek&lt;/P&gt;&lt;P&gt;WeekDay&lt;/P&gt;&lt;P&gt;DayThisMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a different table I have "PaidOutAmount"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate a prognosis based on dividing Sum of PaidOutAmount by the # of day this month and then multiply by the Max Amount of Days This Month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a picture of the Budget Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="budg.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/145510_budg.JPG" style="height: 94px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for today (02.2012.2016) it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum(PaidOutAmonut) / (Value which is on that row from "DagDenneMåneden"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Max(DagDenneMåneden) - &lt;SPAN style="font-size: 13.3333px;"&gt;(Value which is the highest this month from "DagDenneMåneden) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now what I am trying to understand is how can I get the value which is on the row in "DagDenneMåneden" from Todays date so that the prognosis grows as this increases? Monday the value would 3 instead of 2 and prognosis would be adjusted accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Suggestions?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 13:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271054#M26124</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2016-12-02T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271055#M26125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I completely understand, do you have a sample you can share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271055#M26125</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271056#M26126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the example calculation is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum(PaidOutAmount))/Max(DaysThisMonthUntilThisDate] )* Max ([DaysThisMonth)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue is that I don't know how to get the value which is the highest # of days on the current day (today) into the expression. The only field I have is DaysThisMonth but if I use the Max for that it would be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum(PaidOutAmount) / 22)&lt;/P&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct calculation would be (for todays date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(PaidOutAmount / 2)&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;22 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but on Monday it would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(PaidOutAmoiunt / 3)&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Makes sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271056#M26126</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2016-12-02T14:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271057#M26127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about 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;Max({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PaidOutAmount = {'*'}&lt;/SPAN&gt;&amp;gt;}[DaysThisMonth)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271057#M26127</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T14:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271058#M26128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Max({&amp;lt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DaysThisMonth&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;= {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(PaidOutAmount) &amp;gt; 0&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;}[DaysThisMonth)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271058#M26128</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T14:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271059#M26129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's almost as if I need a mix of Max(DaysThisMonth) and a CYTD Flag I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 14:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271059#M26129</guid>
      <dc:creator>bwisealiahmad</dc:creator>
      <dc:date>2016-12-02T14:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Prognosis calculation in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271060#M26130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So none of the above expressions worked for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2016 03:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Prognosis-calculation-in-Qlik-Sense/m-p/1271060#M26130</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-03T03:12:00Z</dc:date>
    </item>
  </channel>
</rss>

