Topic Options
#31874 - 05/16/12 11:35 AM Gridview Formula
SusanTennier Offline
Adagio Maestro

Registered: 02/22/08
Posts: 1247
Loc: Ontario, Canada
Is there a formula that can do this in a calculated column:

{Sold YTD} divided by the number of months since April 1st

For example if we sold 100 so far this year and based on the date, we've only completed 2 months this fiscal year, then we've sold on average 50 per month.
_________________________
Susan Tennier
TDL Canada
Trenton, Ontario

Top
#31875 - 05/16/12 11:51 AM Re: Gridview Formula [Re: SusanTennier]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11565
Loc: Vancouver, BC Canada
Hi Susan,

Sounds reasonable to do.

First calculate the number of months since April 1:
MONTH(TODAY()) - 4 + 1 (4 is the month of April, and add 1 to correctly calculate the number of months)

Or if you need to consider when this is printed in January 2013 and include the year:
YEARL(TODAY()) - 2012 + MONTH(TODAY()) - 3

Then do the division:
{Amt Sold YTD} / (YEARL(TODAY()) - 2012 + MONTH(TODAY()) - 3)

And you could use the FISCALSTART() function to determine the first day of the fiscal year (as defined in your GridView Defaults) to have a formula calculate the month and year instead of hard-coding 2012 and +4:

{Amt Sold YTD} / (YEARL(TODAY()) - YEARL(FISCALSTART()) + MONTH(TODAY()) - MONTH(FISCALSTART()) +1)
_________________________
Regards,
Softrak Tech Support

Top
#31876 - 05/16/12 11:58 AM Re: Gridview Formula [Re: Softrak Support]
Wally_Kunz Offline
Adagio Enthusiast

Registered: 04/02/12
Posts: 22
Loc: BC
Don't you also need to multiply the year difference by 12 months/year?
_________________________
Wally Kunz

Top
#31877 - 05/16/12 12:02 PM Re: Gridview Formula [Re: Wally_Kunz]
Softrak Support Offline

Adagio Action Team

Registered: 03/09/99
Posts: 11565
Loc: Vancouver, BC Canada
Oops - yes, the Year difference part should be multiplied by 12. Too soon after AOC... smile
_________________________
Regards,
Softrak Tech Support

Top
#31884 - 05/16/12 08:34 PM Re: Gridview Formula [Re: Softrak Support]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3616
Loc: Toronto ON, Canada
Support:
Whereas for Wally, AOC seems to have improved his programming skills! Who knew? smile
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top


Moderator:  Christa_Meissner 
Who's Online
1 registered (Samuel Kopstick), 99 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14478 Topics
70713 Posts

Max Online: 432 @ 01/20/25 10:17 PM
May
Su M Tu W Th F Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31