Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:18:53+00:00 2026-05-27T23:18:53+00:00

I have a query: SELECT Format(dateOpened,mmmm) AS [Month], Format(dateOpened, yyyy) AS [Year], sum(holdQty) AS

  • 0

I have a query:

SELECT Format(dateOpened,"mmmm") AS [Month], Format(dateOpened, "yyyy") AS [Year], sum(holdQty) AS [Total]
FROM record_holdData
GROUP BY Format(dateOpened,"mmmm"), Format(dateOpened, "yyyy")
ORDER BY Format(dateOpened,"yyyy"), Format(dateOpened,"mmmm") DESC;

And what I’m trying to do is use this saved query to build a line chart in Access where each year is a different series. The x axis is the month and y axis is the hold quantity. So for example, the chart will plot a different line for 2009, 2010, 2011 that all run over the same time line, January through December. The problem that I’m running into with this query is that instead of running the same time line, it’s appending the series. So for instance, it’ll show january-dec 2009, then it’ll start a new line at the end of that one for 2010. Can someone show me how to fix this and maybe explain the error in my logic here? TIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:18:54+00:00Added an answer on May 27, 2026 at 11:18 pm

    Try using a crosstab query to separate the years into separate data series:

    TRANSFORM Sum(holdQty) AS Total
    SELECT Format([dateOpened],"yyyy") AS [Year]
    FROM record_holdData
    GROUP BY Format([dateOpened],"yyyy")
    PIVOT Format([dateOpened],"mm-mmmm");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large query that follows the format below: select ... from
Ok, say I have a query: SELECT * FROM TABLE_AWESOME WHERE YEAR = :AMAZINGYEAR;
I have a query in the following format select * from Table1 t1 inner
I have the following query SELECT Count(*) as Total_Count, Col1 FROM Table1 GROUP BY
I have a MySQL query: SELECT COUNT(*) AS total, DATE_FORMAT(event.serverTime,'%Y-%m-%d') AS sdate FROM event
I have this query: SELECT page.id, revision.title, revision.number FROM page INNER JOIN revision ON
I have a query: SELECT ID FROM requests WHERE date <operator> <expression> I need
i have sql query select * from Roles Join Users On Roles.Role=Users.RoleId it return
I have this query: select BUnit, value from myTable where BUnit in (555,556,557,558) and
I have this query: SELECT * FROM sample INNER JOIN test ON sample.sample_number =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.