Question Data analysis using Cross tab (1 Viewer)

Lanason

Registered User.
Local time
Today, 22:09
Joined
Sep 12, 2003
Messages
258
I have a bunch of data and I want to create totals per month.
When I use the cross tab it works fine BUT if there is a month with no records it misses the month out rather than reporting Zero. Is there an easy way of including a zero?
 

theDBguy

I’m here to help
Staff member
Local time
Today, 14:09
Joined
Oct 29, 2018
Messages
21,469
Hi Adrian,


You can include all the months by specifying them in the Column Headings property.
 

isladogs

MVP / VIP
Local time
Today, 22:09
Joined
Jan 14, 2017
Messages
18,217
Depending on how you calculate your totals, you may need to use e.g. Nz(Totalsfield,0). Without that it may just be blank (null)
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 17:09
Joined
Feb 19, 2002
Messages
43,266
If you are using a single calendar year, you can use the technique suggested by theDBGuy. If you need to display more than twelve months or a rolling 12 months with some months in one year and others in the next year, you can't because year will be required as part of the column name.

Tell us the situation you have and we'll continue with other solutions if necessary.
 

Lanason

Registered User.
Local time
Today, 22:09
Joined
Sep 12, 2003
Messages
258
I am actually using rolling 12 months in the output
 

Users who are viewing this thread

Top Bottom