i know what i want to do, i just dont know how 
basically i am making a statment report for an accounts database. I want to do an aged analysis on the statment. for instance, it totals up what the customer owes current, 30, 60, 90 and "over" days.
If the invoice date is in the same month as the statment date (statment date will be the current date) then the invoice total goes into group "Current"
If the invoice date is in the month before the statment date then the invoice total goes in group "OneMonth"
If the invoice date is 2 months before the statment date then the invoice total goes in group "TwoMonths"
If the invoice date is 3 months before the statment date then the invoice total goes in group "ThreeMonths"
Any thing greater than 4 months goes in the "OverDue" group.
Is there a way to do this in expression builder in the the query builder? so the query will output 4 totals, current, onemonth, twomonths, theemonths and overdue
Any help would be greatly appriceted.
basically i am making a statment report for an accounts database. I want to do an aged analysis on the statment. for instance, it totals up what the customer owes current, 30, 60, 90 and "over" days.
If the invoice date is in the same month as the statment date (statment date will be the current date) then the invoice total goes into group "Current"
If the invoice date is in the month before the statment date then the invoice total goes in group "OneMonth"
If the invoice date is 2 months before the statment date then the invoice total goes in group "TwoMonths"
If the invoice date is 3 months before the statment date then the invoice total goes in group "ThreeMonths"
Any thing greater than 4 months goes in the "OverDue" group.
Is there a way to do this in expression builder in the the query builder? so the query will output 4 totals, current, onemonth, twomonths, theemonths and overdue
Any help would be greatly appriceted.