I have this code in my querythat quartely. My financial year is July to June how do I ammend this code to reflect my financial year so that my first quarter will be july?Code:Quarter: DatePart("q",[Date Paid])
I have this code in my querythat quartely. My financial year is July to June how do I ammend this code to reflect my financial year so that my first quarter will be july?Code:Quarter: DatePart("q",[Date Paid])
Try:
Quarter: DatePart("q",DateAdd("m",6,[Date Paid]))
Thanks it works but my headings still read jan, feb, march for the first quarter instead of july aug september
How are you identifying your headings now?
You have to adjust for the offset of fiscal year (6 months).
Sounds like where you normally have quarter 1 (months 1,2,3) you have to add 6 (7,8,9) Fiscal qtr months.
Headings??? You didn't mention anything about headings.Thanks it works but my headings still read jan, feb, march for the first quarter instead of july aug september
Are they the result of some formula? If so, what is the formula?
This is the codeit gives the month of the quarterCode:MonthOfQuarter: (Month([Date Paid]) Mod 6)
I really don't understand what you are trying to do with this. This will just return a number from 0-5.MonthOfQuarter: (Month([Date Paid]) Mod 6)
Regardless of which quarter you are in, if you are just trying to extract the month name from a date, you just need the MONTH function, and nothing else.
What exactly are you trying to do?
Maybe if you work us through a simple example, it will make more sense.
thanks fixed, just needed to be patient