Solved

Alternative for Runningsum

Posted on 2011-02-14
4
462 Views
Last Modified: 2013-11-16
Hi All,

I would like to is there any alternative menthod for runningsum instead of using running sum function?

Thanks,
0
Comment
Question by:Subash2023
  • 2
4 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 34888434
I am assuming you are using Crystal Reports.

Yes you can do your own running sum instead of using a running totals field.

Basically you have 3 formula fields.

Report header...initialise the variable

whileprintingrecords;
numbervar myrunningsum:=0;
""


Detail line...accumulate the sum

whileprintingrecords;
numbervar myrunningsum;
if <somecondition is true> then
myrunningsum:=myrunningsum + {table.field};
""

In the report foooter..print the value

whileprintingrecords;
numbervar myrunningsum;
myrunningsum


If you have a grouped structure you might want to modify this pattern to use group header and footer instead of report header and footer.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 34888816
What are you trying to accomplish?

mlmcc
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 35163507
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now