Solved

Trouble with multi field running totals

Posted on 2011-03-15
3
342 Views
Last Modified: 2012-05-12
I have to produce multi field running totals for the following criteria.

Area Sales Manager
Type
Business Unit
Month
Year

what I'm trying to acheive is the running total for each ASM for each month for each business unit.

EE_shot1 =  is how my solution using a subquery is looking for a single ASM. It's not right.

EE_shot 2 =  the data  on which it's working upon.

EE_shot3 = My attempt to code te solution.

I would really appreciate any help I can get.

thanks, as always...





EE-shot1.png
EE-shot2.png
EE-shot3.png
0
Comment
Question by:STOCRIC
  • 3
3 Comments
 

Author Comment

by:STOCRIC
ID: 35135666
There are 7 ASM, 5 Business Units.
0
 

Accepted Solution

by:
STOCRIC earned 0 total points
ID: 35136823
I have solved this one myself!

0
 

Author Closing Comment

by:STOCRIC
ID: 35136828
I found the solution myself
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

680 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