Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Periods in Crosstab Query 1

Status
Not open for further replies.

BikeToWork

Programmer
Jun 16, 2010
50
0
0
US
I am making a crosstab query based on a fiscal year of invoice amounts in monthly invoice periods. Is there some way to make a crosstab query show periods such as months, even if that period contains no invoice amounts? Currently the query does not display invoice periods as column headers if there is no invoice data for that period. My question is how to make all the months show up as column headers and have zero show up as the amount for months where there is no invoice data. Thanks in advance for any help.
 
Have a look at the IN operator in the PIVOT clause.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top