<?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: Round up date calculation to whole number (for text objects) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927679#M320989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. I ended up going with the below....your advice was helpful!!&lt;/P&gt;&lt;P&gt;=num(($(=$(vWeeksConsumed)) / num(vTotalWeeks)),'##.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 13:29:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-18T13:29:41Z</dc:date>
    <item>
      <title>Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927675#M320985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a variable with the below formula: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=vTotalWeeks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(Date#([Project End Date], 'MMM DD, YYYY') - Date#([Project Start Date], 'MMM DD, YYYY')) / 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It calculates correctly, but I need this to always round up to the next highest integer. So, 8.642343 should become 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I am using text objects so I can't leverage the Number tab of a chart object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 21:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927675#M320985</guid>
      <dc:creator />
      <dc:date>2015-11-17T21:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927676#M320986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the Ceil() function&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;=&lt;SPAN style="color: #ff0000;"&gt;Ceil(&lt;/SPAN&gt;(Date#([Project End Date], 'MMM DD, YYYY') - Date#([Project Start Date], 'MMM DD, YYYY')) / 7&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 21:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927676#M320986</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-17T21:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927677#M320987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny this worked. Just one more follow up if i could.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added another formula: &lt;SPAN style="font-size: 13.3333px;"&gt;=vWeeksConsumed / vTotalWeeks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is made up of the below formula. I need this to return % with 2 decimals. 54.95% for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=([Week End] - [Project Start Date]) / ([Project End Date] - [Project Start Date])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 21:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927677#M320987</guid>
      <dc:creator />
      <dc:date>2015-11-17T21:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927678#M320988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want still round it up??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then try:&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;=Num(Ceil(([Week End] - [Project Start Date]) / ([Project End Date] - [Project Start Date]), 0.01), '##.00%')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&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;=&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Num(&lt;/STRONG&gt;Round(([Week End] - [Project Start Date]) / ([Project End Date] - [Project Start Date]), 0.01)&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, '##.00%')&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 22:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927678#M320988</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-17T22:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927679#M320989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. I ended up going with the below....your advice was helpful!!&lt;/P&gt;&lt;P&gt;=num(($(=$(vWeeksConsumed)) / num(vTotalWeeks)),'##.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 13:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927679#M320989</guid>
      <dc:creator />
      <dc:date>2015-11-18T13:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927680#M320990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, as long as I am helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927680#M320990</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-18T14:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927681#M320991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, if you are still available I had one follow up to this direct item. &lt;/P&gt;&lt;P&gt;=Ceil((Date#([Project End Date], 'MMM DD, YYYY') - Date#([Project Start Date], 'MMM DD, YYYY')) / 7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula is working most of the times, but I have encountered an issue where I believe I need to amend this.&lt;/P&gt;&lt;P&gt;I have an example where Project Start Date = 10/26/15 and Project End Date = 11/30/15....This works out to 36 days which divided by 7 = 5.14. This formula is returning 5 and for my purposes, I need it return 6 weeks. &lt;/P&gt;&lt;P&gt;Do you have any suggestions to accomodate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 19:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927681#M320991</guid>
      <dc:creator />
      <dc:date>2015-11-25T19:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927682#M320992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ceil usually takes it to the next nearest integer So something like this Ceil(36/7) = 6.&amp;nbsp; Is it not doing that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 19:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927682#M320992</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-25T19:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927683#M320993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you can see the snapshot below but the Total Weeks is returning 5 for this project and I was expecting 6 [36 / 7]. This in turn impacts the % Weeks Consumed and Remaining which are referencing this formula (variable).&lt;/P&gt;&lt;P&gt;I have reviewed a ton of info on the community especially around date calculations and just can't figure this one out.&lt;/P&gt;&lt;P&gt;One other question if I could. Below for % Budget Remaining, my output is .802943....I need this to be 80.29%. This is my first time trying the below type formula; I obviously have something just slightly wrong for it not to respect the ##.00%. Again, any advice is appreciated. You've been very helpful!&lt;/P&gt;&lt;P&gt;=1.00 - (num($(=$(vActualRev)) / sum([Original Rev Est]),'##.00%'))&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv app.png" class="jive-image image-1" src="/legacyfs/online/107188_qv app.png" style="height: 308px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 20:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927683#M320993</guid>
      <dc:creator />
      <dc:date>2015-11-25T20:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927684#M320994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check what you get when you do a simple Subtraction of the two dates:&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;Num(Date#([Project End Date], 'MMM DD, YYYY') - Date#([Project Start Date], 'MMM DD, YYYY')), '#,##0.000000')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feeling that this might give you 35 or less than 35. I think once we know what we are getting, we might need to add a 1 here to make sure we get the right number we are hoping for:&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;=Ceil((Date#([Project End Date], 'MMM DD, YYYY') - Date#([Project Start Date], 'MMM DD, YYYY') + 1) / 7)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is pure speculation right now and will have to be tested out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you get and we can proceed from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 21:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927684#M320994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-25T21:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927685#M320995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, I tried your suggestion and you're right, it did return 35. Since the actual days are really 36, I then tried your next suggestion of adding 1 and this did end up returning my expected results for this one specific project. Thank you. I will monitor this for other projects with various project dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last question if I could. Below formula is yielding .80294#######. I need it to return 80.29%. This is my 1st attempt at appending "1.00" at the beginning, so I know i am doing something just slightly wrong to not get the correct % format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=1.00 - (num($(=$(vActualRev)) / sum([Original Rev Est]),'##.00%'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 14:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927685#M320995</guid>
      <dc:creator />
      <dc:date>2015-11-30T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Round up date calculation to whole number (for text objects)</title>
      <link>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927686#M320996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To keep the formatting, you need to the Num() function around the complete calculations. Try something like this may be:&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;=Num(1.00 - ($(=$(vActualRev)) / Sum([Original Rev Est])),'##.00%')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the parenthesis because I might have messed that up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 17:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Round-up-date-calculation-to-whole-number-for-text-objects/m-p/927686#M320996</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-30T17:09:57Z</dc:date>
    </item>
  </channel>
</rss>

