Running totals on Pivot table

29 views
Skip to first unread message

Rich Taylor

unread,
Jun 22, 2015, 12:31:02 AM6/22/15
to intersystems-de...@googlegroups.com, Ussaleseng

I am trying to develop a deepsee pivot that looks a financial transactions.  Particularly an income and expense budget.  I can get the view to show the income and expense in rows with columns defined by the year and month of the transaction.  I also can get the totals for each time period (each month).  However what I want to see also is a running total of the total from each month.  So after the first month the answer would be the previous running total plus the sum of income and expenses in the current month.   I cannot determine how to achieve this.  Any ideas?

 

Richard S Taylor
Sales Engineer
InterSystems Corporation
Office: 443-340-8614
FAX: 440-815-5805

Advanced Software technologies for Breakthrough applications 

 

Rich Taylor

unread,
Jun 22, 2015, 10:00:51 AM6/22/15
to Joe Gallant, intersystems-de...@googlegroups.com, Ussaleseng, DSII

Great Joe!

 

Thanks.  I looked through a few samples, but didn’t hit on this one.

 

Richard S Taylor
Sales Engineer
InterSystems Corporation
Office: 443-340-8614
FAX: 440-815-5805

Advanced Software technologies for Breakthrough applications 

 

From: Joe Gallant
Sent: Monday, June 22, 2015 9:53 AM
To: Rich Taylor
Cc: intersystems-de...@googlegroups.com; Ussaleseng; DSII
Subject: Re: Running totals on Pivot table

 

 

Rich,

 

In the SAMPLES namespace look at the pivot table:

                        Pareto Charts/Category Pareto Data

 

It shows a column that is "Revenue Cumulative Percentage", a calculated member (measure) which is a running total using the MDX function %CELL. Each value is being added the the previous running total, which is in the same column and one row above: %CELL(0.-1)

 

In this example, the running total is based on another calculated member "Revenue as Percent of Total”, but it could be based on any measure.

 

The pivot is use in the dashboard:

            Pareto Charts/Pareto Chart for Category

which uses a Combo Chart with multiple axes to create a Pareto Chart.

 

Joe G

 

 

<image001.jpg>

 

Reply all
Reply to author
Forward
0 new messages