Solved

Sum of Weekending

Posted on 2014-02-13
2
230 Views
Last Modified: 2014-02-13
Is there a way to give total for the week ending for each week in the Year
Grand total for each week would be put into field [SumOftotalWorkWeek]

I included a Test Database for this scenario.
Table: Copy Of Date_Sales
Query: Query1
WeekEndingTotals.mdb
0
Comment
Question by:ca1358
2 Comments
 
LVL 10

Accepted Solution

by:
Gozreh earned 500 total points
ID: 39856849
Change your Query1 to this
SELECT Max([Copy Of Date_Sales].SalesDate) AS LastDateOfWeek, (DatePart("ww",[SalesDate])) AS WorkWeek, Sum([Copy Of Date_Sales].LoanAmt) AS SumOfLoanAmt
FROM [Copy Of Date_Sales]
GROUP BY (DatePart("ww",[SalesDate]))
ORDER BY Max([Copy Of Date_Sales].SalesDate);

Open in new window

0
 

Author Closing Comment

by:ca1358
ID: 39856892
Thank you very much!!
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question