Page 2 of 2 < 1 2
Topic Options
#8645 - 03/14/07 07:39 PM Re: Monthly Occupancy Stats [Re: Fullen]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10504
Loc: Canada
Hello Fullen,

No, you do not need the second FPERIOD() call.

The formula should be:
Code:

=E24/(((ADGET("gldates.END","P"&FPERIOD())-ADGET("gldates.START","P 1"))+1)*99) 


This formula subtracts the ending date for the current period last year (because you are using "P" before the period number - for the current year you'd use "C") from the starting date of last year's fiscal year.

(Presumably you have 99 rooms available each day, and E24 contains your total room revenue).
_________________________
Andrew Bates

Top
#8655 - 03/15/07 01:17 PM Re: Monthly Occupancy Stats [Re: Fullen]
Bruce Gardner Online   content
Adagio Wizard

Registered: 06/15/04
Posts: 3617
Loc: Toronto ON, Canada
No, you do not need the 2nd FPERIOD().

FPERIOD() returns the number of the Fiscal Period that you have selected (i.e. 1 through 12).

Andrew uses the first FPERIOD() to create the parameter to the function ADGET(). For instance, in period 12 you need "P12". It varies depending on the Period you choose.

But in the 2nd ADGET(), you already know that you want "P 1". It will never change. Therefore FPERIOD() is not needed.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
Page 2 of 2 < 1 2


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 54 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14484 Topics
70731 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