Difficult problem - Pivot table help

C

Clemens

I have a table with record.
Each record has an opening date and most records have a closing time.

What I would like is to see a pivot table or chart where I can see per year
and month the ammount of opened records and closed records.

I have allready create a query which reports a count of opened records per
year/month and I have also created another query which counts each closed
records (without the records with no closing time yet)

How can I combine these 2 queries?
 
J

Jahanzaib

Write this sql as Source of your pivot table;
SELECT Table1.*, IIf(IsNull([ClosingTime]),"Opened","Closed") AS Status,
Format([OrdDate],"yyyy") AS OrdMonth, Format([OrdDate],"mmm") AS OrdYear
FROM Table1;

Now you can easily design a pivot tabe by wizard (get help from local help
about pivot table report)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top