Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, i currently have a mastercalendar that shows calendar yr from my invoice dates, how do i get it to display as our accounting year rather than calendar yr? Do i amend the Mastercalendar tab attached, or go through the listbox properties of the monthly calendar?
yes, we have data from Sept13-today
Its working perfectly fine.could you please share a application with a dummy data?
I think what has happened is that it has just changed/called Jan Sept, Feb-Oct etc as Jan here shows only 20 days therefore is May
Help!
oh.sorry.I just noticed that.I will work on this and get back to you.Meanwhile kindly check the experts advice(above)
ok, ive gone back to do it your way Hic, from the link. a few questions though:
1.where does this sit with what i already have? ie do i need to add the variable above the mastercalendar? Do i even need all the current calendar text? (this is what i had originally) Capture.JPG.jpg
2."Create a variable that contains the month number of the first month...."
could you start me off with what this needs to say, ie is it - LET ???
Your master calendar could contain fields for both financial year and normal year. I would put the following lines in front of your existing master calendar definition. You need to have the fields Date, Month and Year defined already (as standard month, etc.).
Set vFM = 4 ; // First month of fiscal year
Calendar:
Load Dual(fYear-1 &'/'& fYear, fYear) as FYear, // Dual fiscal year
Dual(Month, fMonth) as FMonth, // Dual fiscal month
*;
Load Year + If(Month>=$(vFM), 1, 0) as fYear, // Numeric fiscal year
Mod(Month-$(vFM), 12)+1 as fMonth, // Numeric fiscal month
*;
The variable that contains the month number of the first month is the "Set" statement.
HIC
thanks Hic, sorry if this is basic stuff, so:
SET Month = ('Sep' = 1), ('Oct' = 2), etc;
would that be the start of the variable?
should it not be an 'IF' statement?
If(fMonth = 1, 'Sep') etc?
If you want September to be the first month, you should use
Set vFM = 9 ;
Then the formulas in the Load statements will use this value and automatically convert all months to get the right numbers.
HIC
thanks Hic, yes it has so all i need to do now is say If(fMonth = 1, 'Sep') etc