Hi to all,
I have a cross tab query that show totals per month.
The outcome of the query is:
The cross tab query is:
I want to add a new column after Dec to show the total for each year (example: horizontal total for the year 2024).Code:TRANSFORM NZ(Count(tblBorrowedBooks.DateBorrowed),0) AS CountOfDateBorrowed SELECT Year([DateBorrowed]) AS SelectYear FROM tblBorrowedBooks GROUP BY Year([DateBorrowed]) ORDER BY Year([DateBorrowed]) DESC PIVOT Format([DateBorrowed],"mmm") In (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec);
Can this be done? How?
Thank you
Khalil